/* ==========================================================================
   CHURCH DO ALTO - STYLESHEET PRINCIPAL (PRETO & AMARELO DOURADO)
   ========================================================================== */

:root {
    --church-black: #09090b;
    --church-black-secondary: #121215;
    --church-card: #16161a;
    --church-card-hover: #1c1c22;
    --church-border: #27272a;
    --church-yellow: #FFCC00;
    --church-yellow-light: #FFE066;
    --church-yellow-dark: #D4A800;
    --church-yellow-glow: rgba(255, 204, 0, 0.25);
    --church-text-main: #FFFFFF;
    --church-text-muted: #A1A1AA;
}

body {
    background-color: var(--church-black);
    color: var(--church-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--church-yellow);
}

/* Church Golden Accents & Badges */
.bg-church-yellow {
    background-color: var(--church-yellow);
}
.text-church-yellow {
    color: var(--church-yellow);
}
.border-church-yellow {
    border-color: var(--church-yellow);
}
.border-church-dark {
    border-color: var(--church-border);
}
.bg-church-card {
    background-color: var(--church-card);
}
.bg-church-black {
    background-color: var(--church-black);
}
.bg-church-secondary {
    background-color: var(--church-black-secondary);
}

.gold-gradient-bg {
    background: linear-gradient(135deg, #FFCC00 0%, #F59E0B 100%);
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF099 0%, #FFCC00 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-glow {
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.25);
}

.gold-glow-sm {
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.2);
}

/* Story Rings */
.story-ring-active {
    background: linear-gradient(45deg, #FFCC00, #F59E0B, #EAB308, #FFE066);
    padding: 2.5px;
    border-radius: 9999px;
    animation: storyPulse 4s infinite alternate;
}

.story-ring-seen {
    background: #3f3f46;
    padding: 2.5px;
    border-radius: 9999px;
}

@keyframes storyPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,204,0,0.3)); }
    100% { transform: scale(1.02); filter: drop-shadow(0 0 6px rgba(255,204,0,0.6)); }
}

/* Instagram Notes / Balão de Pensamento */
.note-bubble {
    position: relative;
    background: rgba(26, 26, 31, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 204, 0, 0.35);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.note-bubble:hover {
    transform: translateY(-2px);
    border-color: var(--church-yellow);
}

.note-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(26, 26, 31, 0.95);
}

/* Double-Tap Heart Animation */
.like-heart-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 20;
}

.like-heart-anim.animate {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
}

/* Story Viewer Progress Bar */
.story-progress-container {
    display: flex;
    gap: 4px;
    width: 100%;
    padding: 12px 16px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
}

.story-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.story-progress-fill {
    height: 100%;
    background: var(--church-yellow);
    width: 0%;
    transition: width linear;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Post Cards */
.church-post-card {
    background-color: var(--church-card);
    border: 1px solid var(--church-border);
    border-radius: 16px;
    transition: border-color 0.2s ease;
}

.church-post-card:hover {
    border-color: rgba(255, 204, 0, 0.3);
}

/* Interactive Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    color: #e4e4e7;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(255, 204, 0, 0.12);
    color: var(--church-yellow);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 204, 0, 0.05) 100%);
    color: var(--church-yellow);
    border-left: 3px solid var(--church-yellow);
}

/* Pulse badge */
.badge-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background-color: var(--church-yellow);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        backdrop-filter: blur(12px);
        background-color: rgba(9, 9, 11, 0.92);
        border-top: 1px solid var(--church-border);
    }
}
