:root {
    --of-blue: #00AFF0;
    --of-blue-hover: #0091c7;
    --of-text-dark: #242529;
    --of-text-gray: #8A96A3;
    --of-bg-light: #F4F6F9;
    --of-border: #E8EBF0;
    --of-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--of-bg-light);
    color: var(--of-text-dark);
    display: flex;
    justify-content: center;
}

/* Container Principal, imitando a largura do aplicativo */
.app-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--of-white);
    min-height: 100vh;
    border-left: 1px solid var(--of-border);
    border-right: 1px solid var(--of-border);
    position: relative;
}

/* Top Navigation Bar */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--of-border);
}

.back-button {
    margin-right: 20px;
    color: var(--of-text-dark);
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

.nav-title {
    display: flex;
    flex-direction: column;
}

.nav-title h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.nav-title span {
    font-size: 12px;
    color: var(--of-text-gray);
}

/* Header / Cover Area */
.profile-header {
    position: relative;
}

.cover-photo {
    width: 100%;
    height: 200px;
    background-color: #DDE2E8;
    /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--of-text-gray);
    font-size: 14px;
    background-image: url('img/capa.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}


/* Profile Info Area */
.profile-info {
    padding: 0 16px;
    position: relative;
}

.avatar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -45px;
    margin-bottom: 12px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--of-white);
    background-color: #C0C8D1;
    /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--of-white);
    font-size: 12px;
    text-align: center;
    background-image: url('img/perfil.jpeg');
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
}
.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    
}

.action-buttons {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--of-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--of-text-gray);
    font-size: 18px;
}

/* Nome e Bio */
.user-name{
    display:flex;
    align-items:center;
    gap:8px;
}

.user-name h2{
    font-size:22px;
    font-weight:800;
    margin:0;
}

.verified{
    width:22px;
    height:22px;
    margin-top:2px;
}
.user-details h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.user-handle {
    color: var(--of-text-gray);
    font-size: 15px;
    margin-bottom: 12px;
}

.user-bio {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.user-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--of-text-gray);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Subscription Box */
.subscription-box {
    border: 1px solid var(--of-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 600;
}

.sub-btn {
    display: block;
    width: 100%;
    background-color: var(--of-blue);
    color: var(--of-white);
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.sub-btn:hover {
    background-color: var(--of-blue-hover);
}

.promotions{
    margin-top:15px;
}

.promo-card{
    text-decoration:none;
    color:inherit;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px;
    border:1px solid #E8EBF0;
    border-radius:10px;
    margin-top:10px;
    cursor:pointer;
    transition:.3s;

}

.promo-card:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.promo-left{
    display:flex;
    align-items:center;
    gap:10px;

}

.promo-time{
    font-weight:600;
    font-size:14px;

}

.promo-badge{
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;

}

.economy{
    background:#E6F4FF;
    color:#00AFF0;

}

.best{
    background:#FFF3D6;
    color:#FF9900;

}

.promo-price{
    font-weight:700;
    color:#555;

}

/* Tabs */
.tabs {
    display: flex;
    border-top: 1px solid var(--of-border);
    border-bottom: 1px solid var(--of-border);
    background: #fff;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--of-text-gray);
    transition: all .3s ease;
}

.tab:hover {
    background: rgba(0,175,240,.05);
    color: var(--of-blue);
}

.tab.active {
    color: var(--of-blue);
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background: var(--of-blue);
    border-radius: 20px;
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }

    to {
        width: 70%;
        left: 15%;
    }
}

/* Feed / Posts */
.feed {
    background: var(--of-bg-light);
    padding-bottom: 20px;
    transition: all .35s ease;
}

.post {
    background: var(--of-white);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--of-border);
    padding: 16px 0;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #C0C8D1;
    margin-right: 12px;
    background-image: url('img/perfil.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 700;
    font-size: 15px;
    display:flex;
    align-items:center;
    gap:8px;
}

.post-handle {
    color: var(--of-text-gray);
    font-size: 13px;
}

.post-time {
    color: var(--of-text-gray);
    font-size: 13px;
}

.post-content {
    padding: 0 16px;
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Área de Mídia Bloqueada / Placeholder */
.post-media-locked {
    width: 100%;
    height: 460px;
    background-color: #E8EBF0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--of-text-gray);
    position: relative;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}


#post2{
    background-image: url(img/post2.jpeg);
    background-position: center 25%;
}
#post3{
    background-image: url(img/post3.JPG);
    background-position: center 25%;
}
#post4{
    background-image: url(img/post4.JPG);
    background-position: center 25%;
}

#postMedia1{
    background-image: url(img/media1.jpeg);
    background-position: center 20%;
}

#postMedia3{
    background-image: url(img/media3.JPG);
    background-position: center 10%;
}

#postMedia5{
    background-image: url(img/media5.JPG);
    background-position: center 10%;
}

.post-media-locked{

    width:100%;
    height:490px;

    position:relative;

    overflow:hidden;

    background-size:cover;

    background-position:center;

}

.post-media-locked::before{

    content:"";

    position:absolute;

    inset:0;

    background:inherit;

    background-size:cover;

    background-position:center;

    filter:blur(7.5px);

    transform:scale(1.1);

}
/* Área de Mídia não Bloqueada / Placeholder */
.post-media-no-locked {
    width: 100%;
    height: 460px;
    background-color: #E8EBF0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--of-text-gray);
    position: relative;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

#post1{
    background-image: url(img/post1.jpeg);
    background-position: center 15%;
}

#post5{
    background-image: url(img/post5.JPG);
    background-position: center 25%;
}


#postMedia2{
    background-image: url(img/media2.jpeg);
    background-position: center 10%;
}

#postMedia4{
    background-image: url(img/media4.JPG);
    background-position: center 10%;
}


.post-media-no-locked{

    width:100%;
    height:490px;

    position:relative;

    overflow:hidden;

    background-size:cover;

    background-position:center;

}

.post-media-no-locked::before{

    content:"";

    position:absolute;

    inset:0;

    background:inherit;

    background-size:cover;

    background-position:center;

    /* filter:blur(3.5px); */

    transform:scale(1.1);

}

.lock{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:90px;
    z-index:5;

}

.post-actions {
    display: flex;
    padding: 12px 16px 0;
    gap: 20px;
    color: var(--of-text-gray);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-icon{
    transition: all .3s ease;
}

.btn-icon:hover{
    transform: translateY(-3px);
    background:#00AFF0;
    color:white;
    box-shadow:0 0 15px rgba(0,175,240,.5);
}

.btn-icon:active{
    transform: scale(.9);
}
