:root {
    --primary: #F05A28;
    --primary-hover: #D44E22;
    --bg-color: #F7F9FC;
    --surface: #FFFFFF;
    --text-primary: #1A1D20;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --verified-color: #3B82F6;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
    --bg-color: #0F1113;
    --surface: #1A1D20;
    --text-primary: #F0F2F5;
    --text-secondary: #9CA3AF;
    --border-color: #2D3135;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Inverter logo para branco no tema escuro se for a logo dark padrão */
[data-theme='dark'] .site-logo, 
[data-theme='dark'] .hero-logo {
    filter: brightness(0) invert(1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card, .plan-card, .profile-container {
    animation: fadeIn 0.5s ease-out forwards;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    user-select: none; /* Desativa seleção de texto global */
}

/* Proteção contra cópia */
.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Base UI */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-icon:hover { background: rgba(0,0,0,0.1); }
[data-theme='dark'] .btn-icon:hover { background: rgba(255,255,255,0.1); }

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 66, 77, 0.2);
}

.post-card, .plan-card {
    transition: var(--transition);
}

.post-card:hover, .plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover { background-color: #f3f4f6; }

/* Navbar Default */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

[data-theme='dark'] .navbar {
    background-color: rgba(26, 29, 32, 0.8);
}
.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    height: 80px;
    display: block;
    transition: var(--transition);
}
/* Muda a cor da logo no modo escuro para laranja/branco */
[data-theme='dark'] .site-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.site-logo:hover {
    transform: scale(1.05);
}

/* Interações de Engajamento */
.stat-btn { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; transition: 0.2s; padding: 0.5rem 0.75rem; border-radius: 20px; }
.stat-btn:hover { background: rgba(255, 66, 77, 0.05); color: var(--primary); }
.stat-btn span.material-symbols-outlined { font-size: 1.4rem; }

.pulse-anim { animation: pulseBtn 0.3s ease-out; }
@keyframes pulseBtn {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.comment-section { border-radius: 0 0 12px 12px; transition: height 0.3s; }
.comment-list { max-height: 300px; overflow-y: auto; }
.comment-list::-webkit-scrollbar { width: 4px; }
.comment-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

/* User Profile specific */
.cover-image {
    height: 220px;
    width: 100%;
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -65px;
    margin-bottom: 1.5rem;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    background-color: var(--surface);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name-area h1 {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-primary);
}

.profile-username {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stats-grid {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item { display: flex; flex-direction: column; }
.stat-value { font-weight: 800; font-size: 1.25rem; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

.profile-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 800px;
    white-space: pre-wrap;
}

/* Feed & Sidebar Layout */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 3rem 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .navbar { position: sticky; top: 0; }
    .nav-container { padding: 0.35rem 0.5rem; gap: 0.25rem; }
    .site-logo { height: 51px; } /* Logo aumentada em 85% no celular (28px * 1.85) */
    .nav-actions { gap: 0.2rem !important; }
    #themeToggle { display: none !important; } /* Esconde lua/tema no mobile */
    .nav-actions .btn-outline { padding: 0.3rem 0.5rem; font-size: 0.7rem; border: none; font-weight: 600; }
    .nav-actions .btn-primary { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
    .locked-media { min-height: 200px; background: linear-gradient(135deg, #1a1d20, #2d3135); border-radius: 12px; }
    
    .main-content { 
        grid-template-columns: 1fr; 
        padding: 0 0 5rem 0; /* Extra padding at bottom on mobile */
    }
    
    .profile-top { 
        flex-direction: column; 
        align-items: center; 
        gap: 0.75rem; 
        margin-top: -50px; 
        text-align: center; 
    }
    
    .avatar-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .profile-name-area { text-align: center; }
    .profile-name-area h1 { justify-content: center; font-size: 1.5rem; }
    
    .stats-grid { 
        justify-content: space-evenly; 
        text-align: center; 
        gap: 0.5rem; 
        padding: 1rem 0;
    }
    
    .stat-item { align-items: center; }
    .stat-value { font-size: 1.1rem; }

    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem 0.5rem;
    }

    .plans-wrapper {
        padding: 0 1rem;
    }
}

/* Feed UI */
.feed-section {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.tab {
    flex: 1;
    text-align: center;
    padding: 1.25rem 0;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s;
}
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab:hover:not(.active) { color: var(--text-primary); }

.post-card {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.post-header-info {
    display: flex;
    flex-direction: column;
}

.post-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    padding: 0 0.25rem;
}

.post-media-wrapper {
    position: relative;
    border-radius: 8px; /* Slightly more rounded for premium feel */
    overflow: hidden;
    background: #f1f3f4;
    width: 100%;
    margin: 0.75rem 0;
}

.post-media-wrapper img, .post-media-wrapper video {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.25rem 0 0.25rem;
}

.post-stats {
    display: flex;
    gap: 1rem;
}

.stat-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.stat-btn:hover { opacity: 0.7; }
.stat-btn .material-symbols-outlined { font-size: 1.6rem; }
.stat-btn span { font-weight: 600; font-size: 0.9rem; }

.post-save .material-symbols-outlined { font-size: 1.6rem; cursor: pointer; color: var(--text-primary); }

/* Locked Media Effects */
.locked-media { 
    background: #000;
    position: relative;
    overflow: hidden;
}
.locked-media img {
    filter: blur(25px); /* Menos blur para ver formas e gerar desejo */
    opacity: 0.6;
    transform: scale(1.15); /* Zoom para preencher bordas do blur */
    transition: all 0.5s ease;
}
.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    backdrop-filter: blur(5px); /* Efeito glassmorphism */
    color: white;
    padding: 2rem;
    text-align: center;
    z-index: 10;
}
.lock-overlay .material-symbols-outlined { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Pulsing Button for conversion */
.lock-overlay .btn-primary {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(240, 90, 40, 0.7);
    padding: 0.75rem 2.5rem;
    font-weight: 800;
    font-size: 1.1rem;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 90, 40, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(240, 90, 40, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 90, 40, 0); }
}

.media-watermark {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.media-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
}

/* Plans Sidebar */
.plans-wrapper {
    position: sticky;
    top: 5rem;
}

.plans-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.plan-card {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 66, 77, 0.1);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-title { font-weight: 800; margin-bottom: 0.5rem; font-size: 1.15rem; color: var(--text-primary);}
.plan-price { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem;}
.plan-features { list-style: none; margin-bottom: 1.5rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.4; }
.plan-features li span { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-color) 25%, var(--border-color) 50%, var(--bg-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Micro-interactions */
.stat-btn { transition: transform 0.2s; }
.stat-btn:hover { transform: scale(1.1); }
