/* timeline.css */
:root { 
    --primary-blue: #1877f2; 
    --bg-body: #f0f2f5; 
    --text-dark: #1c1e21;
    --text-gray: #65676b;
    --vip-diamond: #1877f2; /* Diamante Azul */
    --btn-orange: #f39c12;
}

* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background-color: var(--bg-body); margin: 0; padding-bottom: 50px; overflow-x: hidden; }

/* NAVBAR TIMELINE TOP */
.top-header-wrapper { width: 100%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.top-row-logo { height: 50px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid #f0f0f0; }
.brand-logo-top { font-size: 1.4rem; font-weight: 900; color: #1c1e21; display: flex; align-items: center; gap: 5px; text-decoration: none; }
.brand-logo-top i { color: var(--primary-blue); }
.top-row-user { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fff; font-size: 0.9rem; }
.user-info-top { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #333; }
.top-auth-buttons { display: flex; align-items: center; gap: 10px; }

/* BADGES TOPO */
.badge-diamante-top { background: #000; color: #fff; border: 1px solid var(--primary-blue); padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-vipone-top { background: #4a148c; color: #fff; padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 800; }
.badge-free-top { background: #e4e6eb; color: #666; padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }

/* BOTOES TOPO */
.btn-login-small { background: var(--primary-blue); color: white; padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; text-decoration: none; cursor: pointer; border: none; font-weight: bold; transition: background 0.2s; }
.btn-login-small:hover { background: #145dbf; }
.btn-register-small { background: var(--btn-orange); color: white; padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; text-decoration: none; font-weight: bold; transition: background 0.2s; border: none;}
.btn-register-small:hover { background: #d68910; }
.btn-logout-top { color: #555; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 5px; font-size: 0.85rem; }
.btn-logout-top:hover { color: #d32f2f; }

/* MODAL LOGIN */
#loginModalOverlay { display: none; position: fixed; z-index: 10002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.login-modal-box { background: #fff; width: 90%; max-width: 350px; padding: 30px 25px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative; text-align: center; animation: slideDown 0.3s ease; }
@keyframes slideDown { from {transform: translateY(-20px); opacity:0;} to {transform: translateY(0); opacity:1;} }
.close-login-btn { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; color: #999; cursor: pointer; }
.modal-logo-login { font-size: 2rem; font-weight: 900; color: #1c1e21; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.modal-logo-login i { color: var(--primary-blue); }
.inp-login-modal { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; background: #f9f9f9; }
.inp-login-modal:focus { border-color: var(--primary-blue); background: #fff; }
.btn-login-modal { width: 100%; padding: 12px; background: var(--primary-blue); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; margin-top: 5px; }
.btn-login-modal:hover { background: #145dbf; }
.link-recover { display: inline-block; margin-top: 15px; font-size: 0.85rem; color: #666; text-decoration: none; }
.link-register-modal { display: block; margin-top: 10px; font-size: 0.95rem; font-weight: bold; color: var(--btn-orange); text-decoration: none; }

/* WIDGETS GERAIS */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
.gallery-thumb { width: 100%; aspect-ratio: 1/1; background-size: cover; background-position: center; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.gallery-thumb:hover { opacity: 0.8; }
.btn-view-all { display: block; text-align: center; color: var(--primary-blue); font-size: 0.85rem; text-decoration: none; font-weight: 600; padding: 5px; }
.cashback-box { border-left: 4px solid #27ae60; }
.btn-indique { background: #27ae60; color: white; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; font-size: 0.9rem; display: inline-block; transition: 0.2s; }
.btn-indique:hover { background: #219150; transform: scale(1.05); }

/* LAYOUT PRINCIPAL */
.global-container { max-width: 1000px; margin: 20px auto; display: flex; gap: 25px; padding: 0 15px; align-items: flex-start; width: 100%; }
.col-feed { flex: 1; min-width: 0; }

/* CONFIGURAÇÃO DA SIDEBAR (ROLA E FIXA NO FUNDO) */
.col-sidebar { 
    width: 320px; 
    position: sticky; 
    bottom: 20px; /* Gruda na parte inferior */
    align-self: flex-end; /* Alinha o container ao fundo do feed */
    flex-shrink: 0; 
    display: block; 
}
@media (max-width: 850px) {
    .global-container { flex-direction: column; }
    .col-sidebar { display: none; } 
    .col-feed { width: 100%; }
    .mobile-only-widget { display: block; margin-bottom: 20px; } 
}

/* CARDS E SUGESTÕES */
.sidebar-card, .feed-widget { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 15px; margin-bottom: 20px; border: 1px solid #e4e6eb; }
.sidebar-title { font-weight: bold; color: var(--text-gray); margin-bottom: 15px; font-size: 0.85rem; text-transform: uppercase; border-bottom: 1px solid #f0f2f5; padding-bottom: 10px;}
.btn-subscribe-sidebar { display: block; width: 100%; text-align: center; background: linear-gradient(45deg, var(--primary-blue), #0056b3); color: white; padding: 12px; border-radius: 8px; font-weight: bold; text-decoration: none; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3); transition: transform 0.2s; }
.btn-subscribe-sidebar:hover { transform: scale(1.02); }
.suggestion-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; text-decoration: none; color: inherit; padding: 5px; border-radius: 8px; transition: background 0.2s;}
.suggestion-item:hover { background-color: #f8f9fa; }
.suggestion-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.suggestion-info h5 { margin: 0; font-size: 0.95rem; color: #050505; display: flex; align-items: center; gap: 4px; }
.suggestion-info span { font-size: 0.8rem; color: var(--text-gray); }

/* UTILITARIOS GERAIS */
.search-form { display: flex; gap: 5px; }
.search-input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 20px; outline: none; background: #f0f2f5; font-size: 1rem;}
.search-btn { background: none; border: none; cursor: pointer; color: var(--text-gray); font-size: 1.1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: #e4e6eb; color: #050505; padding: 6px 12px; border-radius: 15px; font-size: 0.85rem; text-decoration: none; transition: background 0.2s; }
.tag-pill:hover { background: #d8dbdf; }
.chat-banner { display: block; background: linear-gradient(90deg, #28a745 0%, #218838 100%); color: white; text-align: center; padding: 15px; border-radius: 12px; text-decoration: none; font-weight: bold; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3); margin-bottom: 20px; }

/* PERFIL HEADER */
.profile-card { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; position: relative; }
.profile-cover { height: 130px; background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); border-radius: 12px 12px 0 0; }
.profile-avatar-wrapper { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; z-index: 10; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid white; object-fit: cover; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.status-dot-profile { width: 24px; height: 24px; border: 3px solid white; border-radius: 50%; position: absolute; bottom: 5px; right: 5px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
.status-online { background-color: #28a745; }
.status-offline { background-color: #dc3545; }
.fire-icon { position: absolute; top: -12px; right: -6px; font-size: 22px; }
.profile-info { padding: 75px 20px 20px 20px; text-align: center; }
.profile-info h1 { margin: 5px 0; font-size: 1.5rem; color: #1c1e21; font-weight: 800; }
.profile-info p { color: var(--text-gray); margin: 0 0 15px 0; font-size: 0.95rem; }
.btn-chat-big { display: inline-flex; align-items: center; gap: 8px; background-color: #28a745; color: white; padding: 10px 30px; border-radius: 30px; text-decoration: none; font-weight: bold; }
.profile-sub-bar { background-color: #f0f2f5; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e4e6eb; border-radius: 0 0 12px 12px; }
.sub-bar-btn { background-color: var(--primary-blue); color: white; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; font-size: 0.9rem; }

/* POSTS */
.post { background: white; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); margin-bottom: 20px; }
.post-header { padding: 12px 15px; display: flex; align-items: center; text-decoration: none; color: inherit; }
.mini-wrapper { position: relative; width: 42px; height: 42px; margin-right: 0px; flex-shrink: 0; }
.mini-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.post-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid white; position: absolute; bottom: 0; right: 0; }
.post-meta { flex-grow: 1; min-width: 0; }
.post-meta h4 { margin: 0; font-size: 0.95rem; font-weight: 600; color: #050505; display: flex; align-items: center; gap: 5px; }
.btn-chat-mini { background-color: #28a745; color: white; padding: 5px 12px; border-radius: 15px; font-size: 0.75rem; font-weight: bold; text-decoration: none; display: flex; align-items: center; gap: 5px; margin-left: 10px; }
.post-caption { padding: 0 15px 12px 15px; font-size: 0.9rem; }
.post-img-box { position: relative; width: 100%; background: #f0f2f5; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.post-img { width: 100%; display: block; height: auto; object-fit: contain; }

/* FOTOS BLOQUEADAS E VIP AZUL */
.locked .post-img { filter: blur(20px); opacity: 0.8; pointer-events: none; }
.lock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; background: rgba(0,0,0,0.1); cursor: pointer; z-index: 10; }
.lock-circle { background: rgba(0,0,0,0.6); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; backdrop-filter: blur(5px); }
.lock-tag { font-weight: bold; font-size: 0.9rem; background: #dc3545; padding: 6px 15px; border-radius: 20px; }

/* O DIAMANTE AGORA É AZUL */
.vip-overlay { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); padding: 8px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; z-index: 10; font-size: 1.1rem; color: var(--vip-diamond); }
.icon-diamante-nome { color: var(--vip-diamond); font-size: 0.9rem; margin-left: 5px; }

.tags { padding: 12px 15px; border-top: 1px solid #f0f2f5; font-size: 0.8rem; color: var(--primary-blue); }

/* MODAL ASSINATURA E AGE-GATE */
#subscription-modal, #age-gate-modal { display: none; position: fixed; z-index: 20000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
.sub-modal-box, .modal-content { background: #fff; width: 95%; max-width: 900px; border-radius: 16px; padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-sub-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #999; cursor: pointer; }

#age-gate-modal { background: rgba(255, 255, 255, 0.98); display: flex; z-index: 99999; }
#age-gate-modal .modal-content { max-width: 450px; text-align: center; border: 1px solid #eee; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.is-restricted #main-content { filter: blur(15px); pointer-events: none; user-select: none; }

  .pulse-dot {
            width: 12px;
            height: 12px;
            background-color: #2ecc71;
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
            animation: pulse 1.5s infinite;
        }
		
		.dot-off { background-color: #ccc; box-shadow: none; animation: none; width: 12px; height: 12px; border-radius: 50%;}

        @keyframes pulse {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
        }
		
		.nav-logo{
			margin-right: 10px !important;
			
		}
		
		.btn-login-header {
		font-size: 0.65rem !important;	
		padding: 6px 10px !important;
		}
		
		.nav-right {
			gap: 5px !important;
		}