/* ==============================================================================
   AFROREDE — DESIGN SYSTEM & IDENTIDADE VISUAL "CONECTANDO A NOSSA GENTE"
   Paleta Pan-Africana Nobre:
   - Ébano Noturno Profundo: #0B0B0E / #121318 / #181920
   - Ouro Solar Imperial: #FFC400 / #F59E0B / #D48B1E
   - Vermelho Ancestral / Paixão: #DC2626 / #B91C1C
   - Verde Esmeralda Vitalidade & Diáspora: #10B981 / #059669
   - Terracota & Cobre: #C45A2C / #E26838
   - Púrpura Real & Conexão: #8B5CF6 / #6D28D9
============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Syne:wght@600;700;800&family=Manrope:wght@600;700;800;900&display=swap');

:root {
    --bg-main: #0B0B0E;
    --bg-card: rgba(18, 19, 24, 0.88);
    --bg-card-hover: rgba(28, 29, 38, 0.94);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(255, 196, 0, 0.35);
    
    --color-gold: #FFC400;
    --color-gold-deep: #E5A93C;
    --color-gold-dark: #B8860B;
    
    --color-terracotta: #C45A2C;
    --color-terracotta-vivid: #E26838;
    
    --color-emerald: #10B981;
    --color-emerald-deep: #0D694B;
    
    --color-purple: #8B5CF6;
    --color-purple-dark: #6D28D9;
    
    --color-danger: #EF4444;
    --color-danger-dark: #B91C1C;
    
    --text-primary: #F8F8FC;
    --text-secondary: #9E9EB2;
    --text-muted: #6C6C7E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(ellipse 80% 40% at 50% -5%, rgba(229, 169, 60, 0.09), transparent 70%),
        radial-gradient(circle at 92% 15%, rgba(196, 90, 44, 0.07), transparent 45%),
        radial-gradient(circle at 8% 65%, rgba(16, 185, 129, 0.05), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.04), transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 84px; /* Espaço para o menu inferior móvel */
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title, .title-display {
    font-family: 'Syne', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

/* Scrollbar moderna */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0E0F14;
}
::-webkit-scrollbar-thumb {
    background: #2A2B36;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-deep);
}

/* Animações fluidas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 196, 0, 0.25); }
    50% { box-shadow: 0 0 24px rgba(255, 196, 0, 0.55); }
}

.pulse-gold {
    animation: pulseGlow 2.5s infinite;
}

/* Cartões com Vidro Translúcido e Bordas Orgânicas */
.afro-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    border-radius: 1.1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.afro-card:hover {
    border-color: rgba(255, 196, 0, 0.32);
    box-shadow: 0 10px 32px rgba(255, 196, 0, 0.08), 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* Botões do Ecossistema AfroGira */
.afro-btn-gold {
    background: linear-gradient(135deg, #FFC400 0%, #E5A93C 60%, #D48B1E 100%);
    color: #0B0B0E;
    font-weight: 800;
    border-radius: 0.85rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(255, 196, 0, 0.25);
    cursor: pointer;
    border: none;
}
.afro-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 196, 0, 0.4);
    filter: brightness(1.05);
}
.afro-btn-gold:active {
    transform: translateY(0);
}

.afro-btn-terracotta {
    background: linear-gradient(135deg, #E26838 0%, #C45A2C 100%);
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 0.85rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(196, 90, 44, 0.3);
    cursor: pointer;
    border: none;
}
.afro-btn-terracotta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(196, 90, 44, 0.45);
}

.afro-btn-emerald {
    background: linear-gradient(135deg, #10B981 0%, #0D694B 100%);
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 0.85rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    border: none;
}
.afro-btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.afro-btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 0.85rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    cursor: pointer;
    border: none;
}
.afro-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.45);
}

.afro-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 700;
    border-radius: 0.85rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}
.afro-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Badges e Emblemas Oficiais */
.badge-verified {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.2) 0%, rgba(229, 169, 60, 0.1) 100%);
    border: 1px solid rgba(255, 196, 0, 0.55);
    color: #FFC400;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.2);
}

.badge-telehealth {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34D399;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-admin-official {
    background: linear-gradient(135deg, #EF4444 0%, #C45A2C 100%);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

/* Post de Comunicado Oficial do Administrador (Destaque exclusivo) */
.admin-sticky-announcement {
    background: linear-gradient(135deg, rgba(196, 90, 44, 0.25) 0%, rgba(139, 92, 246, 0.18) 100%);
    border: 2px solid #FFC400;
    border-left: 6px solid #FFC400;
    border-radius: 1.1rem;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 8px 30px rgba(255, 196, 0, 0.16);
}

/* Anéis de Fóruns & Stories */
.afro-story-ring {
    padding: 2.5px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.afro-story-ring-gold {
    background: linear-gradient(135deg, #FFC400 0%, #E26838 50%, #C45A2C 100%);
    box-shadow: 0 0 16px rgba(255, 196, 0, 0.45);
}
.afro-story-ring-gold:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(255, 196, 0, 0.7);
}

.afro-story-ring-subdued {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.afro-story-ring-subdued:hover {
    transform: scale(1.04);
    background: rgba(255, 255, 255, 0.22);
}

/* Barra de Navegação Inferior (Mobile Bottom Navigation) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(13, 14, 18, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 50;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    transition: all 0.2s ease;
    gap: 0.25rem;
    position: relative;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--color-gold);
}

.bottom-nav-item.active svg,
.bottom-nav-item.active .nav-icon {
    transform: translateY(-2px);
    color: var(--color-gold);
    filter: drop-shadow(0 0 8px rgba(255, 196, 0, 0.5));
}

.nav-badge-alert {
    position: absolute;
    top: 6px;
    right: 22%;
    background: var(--color-danger);
    color: #FFFFFF;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 9999px;
    border: 1.5px solid #0B0B0E;
    line-height: 1.2;
}

/* Padrões geométricos em estilo Kente / Adinkra */
.pattern-kente-bar {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 196, 0, 0.2),
        rgba(255, 196, 0, 0.2) 10px,
        rgba(196, 90, 44, 0.25) 10px,
        rgba(196, 90, 44, 0.25) 20px,
        rgba(16, 185, 129, 0.2) 20px,
        rgba(16, 185, 129, 0.2) 30px
    );
    height: 4px;
    width: 100%;
}

/* Modal e Overlays com efeito Blur */
.afro-modal-backdrop {
    background-color: rgba(6, 6, 9, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* WhatsApp CTA Button Styling */
.afro-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 0.85rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.afro-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    filter: brightness(1.05);
}

/* Toast de notificação fluida */
#afro-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    transform: translateY(-100px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#afro-toast.show {
    transform: translateY(0);
}

/* Faixa Pan-Africana Oficial (Verde, Dourado, Vermelho, Preto) */
.pattern-pan-african {
    background: linear-gradient(90deg, 
        #DC2626 0%, #DC2626 25%, 
        #F59E0B 25%, #F59E0B 50%, 
        #10B981 50%, #10B981 75%, 
        #0F0F11 75%, #0F0F11 100%
    );
    height: 4px;
    width: 100%;
}

.pattern-pan-african-thick {
    background: linear-gradient(90deg, 
        #DC2626 0%, #DC2626 25%, 
        #F59E0B 25%, #F59E0B 50%, 
        #10B981 50%, #10B981 75%, 
        #0F0F11 75%, #0F0F11 100%
    );
    height: 8px;
    width: 100%;
}

/* Botões de Reação Comunitária nos Fóruns (Axé, Poder, Amor, Visão) */
.post-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.post-reaction-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #F59E0B;
    transform: scale(1.05);
}
.post-reaction-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #F59E0B;
    color: #F59E0B;
}

/* Mídia nos Fóruns: Imagens e Vídeos */
.forum-media-container {
    margin-top: 0.75rem;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000000;
}
.forum-media-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.forum-media-img:hover {
    transform: scale(1.01);
}
.forum-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.forum-video-wrapper iframe,
.forum-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Banner de Patrocínio / Anúncio nos Fóruns (Monetização) */
.forum-ad-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(245, 158, 11, 0.14) 50%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Interstitial de Abertura Direcionada (Splash Screen Aquilombar) */
#app-opening-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 11, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 0.3s ease-out;
}
#app-opening-splash.hidden,
#app-opening-splash[style*="display: none"] {
    display: none !important;
}
.splash-modal-card {
    background: linear-gradient(180deg, #181920 0%, #0F0F14 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.18);
    border-radius: 1.5rem;
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: splashPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes splashPop {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.splash-hero-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.splash-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.2s;
}
.splash-close-btn:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: rotate(90deg);
}

/* Floating Push Notification Toast para Visitantes / PWA */
#afrorede-push-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    left: 18px;
    max-width: 420px;
    margin: 0 auto;
    z-index: 9998;
    background: rgba(18, 19, 24, 0.96);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.25);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateY(-120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
#afrorede-push-toast.show {
    transform: translateY(0);
    opacity: 1;
}

