/* ========================================
   WWM Brasileiro - Estilos Compartilhados
   ======================================== */

/* ========== VARIÁVEIS ========== */
:root {
    --bg-dark: #0a0a0f;
    --bg-medium: #12121a;
    --bg-light: #1a1a24;
    --bg-card: #1e1e2a;
    
    --gold-primary: #c9a227;
    --gold-light: #e6c355;
    --gold-dark: #8b7019;
    
    --red-primary: #8b2635;
    --red-light: #a63446;
    
    --text-primary: #e8e6e3;
    --text-secondary: #9d9d9d;
    --text-muted: #5a5a5a;
    
    --success: #2e7d32;
    --gradient-gold: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo i {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a.nav-highlight {
    color: var(--gold-primary);
    background: rgba(201, 162, 39, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.nav-links a.nav-highlight:hover {
    background: rgba(201, 162, 39, 0.25);
}

.nav-github {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-github:hover {
    background: var(--gold-dark);
    color: var(--bg-dark);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--gold-dark);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--gold-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========== SECTIONS ========== */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

/* ========== LOADING ========== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ========== HALL DA FAMA COMPARTILHADO ========== */
.contributors-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contributors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.contributors-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.4);
}

.contributors-section > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Hall Container */
.hall-wrapper {
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.hall-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    text-align: left;
}

/* ===== LEFT COLUMN - DEVELOPERS CASTLE ===== */
.devs-castle {
    background: linear-gradient(180deg, rgba(30, 25, 15, 0.6) 0%, rgba(20, 15, 10, 0.8) 100%);
    border: 2px solid rgba(201, 162, 39, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.devs-castle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: castleGlow 4s ease-in-out infinite;
}

@keyframes castleGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.castle-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.castle-title i {
    margin-right: 0.5rem;
    color: #ffd700;
}

/* Developer Cards */
.dev-card {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dev-card:last-child {
    margin-bottom: 0;
}

.dev-card.lead {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 180, 0, 0.08) 50%, rgba(255, 215, 0, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), inset 0 0 30px rgba(255, 215, 0, 0.05); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.35), inset 0 0 40px rgba(255, 215, 0, 0.1); }
}

.dev-card.secondary {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.12) 0%, rgba(160, 160, 170, 0.06) 50%, rgba(192, 192, 192, 0.12) 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.15);
}

.dev-card:hover {
    transform: translateY(-3px);
}

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

.dev-rank-badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.dev-card.lead .dev-rank-badge {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.dev-avatar {
    position: relative;
}

.dev-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: all 0.3s;
}

.dev-card.lead .dev-avatar img {
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.dev-card.secondary .dev-avatar img {
    border: 3px solid #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.dev-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    z-index: -1;
}

.dev-card.lead .dev-avatar-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.dev-info {
    flex: 1;
}

.dev-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dev-card.lead .dev-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.dev-card.secondary .dev-name {
    color: #e0e0e0;
}

.dev-name a {
    color: inherit;
    text-decoration: none;
}

.dev-name a:hover {
    text-decoration: underline;
}

.dev-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-card.lead .dev-title {
    color: rgba(255, 215, 0, 0.8);
}

.dev-card.secondary .dev-title {
    color: rgba(192, 192, 192, 0.8);
}

.dev-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dev-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.dev-card.lead .dev-stat {
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.dev-card.secondary .dev-stat {
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.dev-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.dev-card.lead .dev-stat-value {
    color: #ffd700;
}

.dev-card.secondary .dev-stat-value {
    color: #c0c0c0;
}

.dev-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RIGHT COLUMN - COMMUNITY RANKING ===== */
.community-ranking {
    background: linear-gradient(180deg, rgba(25, 20, 15, 0.6) 0%, rgba(15, 12, 10, 0.8) 100%);
    border: 2px solid rgba(205, 127, 50, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
}

.ranking-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #cd7f32;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ranking-title i {
    margin-right: 0.5rem;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(205, 127, 50, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(205, 127, 50, 0.15);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(205, 127, 50, 0.15);
    border-color: rgba(205, 127, 50, 0.4);
    transform: translateX(5px);
}

.ranking-position {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cd7f32, #b8722d);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.ranking-item:first-child .ranking-position {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.ranking-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(205, 127, 50, 0.5);
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-name a {
    color: inherit;
    text-decoration: none;
}

.ranking-name a:hover {
    color: #cd7f32;
}

.ranking-role {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.ranking-score {
    text-align: right;
    flex-shrink: 0;
}

.ranking-score-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: #cd7f32;
    font-family: 'Courier New', monospace;
}

.ranking-score-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ranking-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

/* Hall Loading */
.hall-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    grid-column: 1 / -1;
}

.contributors-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.contributors-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--gold-primary);
    text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hall-container {
        grid-template-columns: 1fr;
    }
    
    .dev-header {
        flex-direction: column;
        text-align: center;
    }
    
    .dev-stats {
        justify-content: center;
    }
    
    .dev-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   🏆 CELEBRATION MODAL - OFFICIAL LAUNCH
   Modal permanente de agradecimento
   ======================================== */

.celebration-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 10, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: celebrationFadeIn 1s ease-out;
}

@keyframes celebrationFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Partículas flutuantes douradas */
.celebration-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.celebration-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd700 0%, #c9a227 50%, transparent 100%);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
    opacity: 0.6;
}

.celebration-particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 10s; }
.celebration-particle:nth-child(2) { left: 15%; animation-delay: 1s; animation-duration: 8s; }
.celebration-particle:nth-child(3) { left: 25%; animation-delay: 2s; animation-duration: 12s; }
.celebration-particle:nth-child(4) { left: 35%; animation-delay: 0.5s; animation-duration: 9s; }
.celebration-particle:nth-child(5) { left: 45%; animation-delay: 1.5s; animation-duration: 11s; }
.celebration-particle:nth-child(6) { left: 55%; animation-delay: 2.5s; animation-duration: 7s; }
.celebration-particle:nth-child(7) { left: 65%; animation-delay: 0.8s; animation-duration: 13s; }
.celebration-particle:nth-child(8) { left: 75%; animation-delay: 1.8s; animation-duration: 10s; }
.celebration-particle:nth-child(9) { left: 85%; animation-delay: 3s; animation-duration: 8s; }
.celebration-particle:nth-child(10) { left: 95%; animation-delay: 0.3s; animation-duration: 12s; }

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* Modal principal - COMPACTO */
.celebration-modal {
    position: relative;
    /* Background e Border movidos para ::after e ::before para animação */
    /* background: transparent; */
    border: none;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 98vh;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(201, 162, 64, 0.3),
        0 0 120px rgba(201, 162, 64, 0.15),
        inset 0 0 60px rgba(201, 162, 64, 0.05);
    animation: modalEnter 0.8s ease-out 0.3s both;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animação Lendária de Fundo - Fluxo de Qi Dourado */
.celebration-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(201, 162, 39, 0.05) 60deg,
        rgba(255, 215, 0, 0.3) 120deg,
        rgba(255, 255, 255, 0.5) 130deg,
        rgba(255, 215, 0, 0.3) 140deg,
        rgba(201, 162, 39, 0.05) 200deg,
        transparent 360deg
    );
    animation: legendaryRotate 4s linear infinite;
    z-index: -2;
    filter: blur(20px);
}


.celebration-modal::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(180deg, 
        rgba(15, 12, 5, 1) 0%, 
        rgba(10, 8, 5, 1) 100%
    );
    border-radius: 18px;
    z-index: -1;
}

/* Brilho pulsante externo */
.celebration-modal {
    box-shadow: 
        0 0 30px rgba(201, 162, 39, 0.2),
        0 0 60px rgba(201, 162, 39, 0.1),
        inset 0 0 20px rgba(201, 162, 39, 0.05);
    animation: modalPulse 3s ease-in-out infinite alternate;
}

@keyframes legendaryRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalPulse {
    0% { box-shadow: 0 0 30px rgba(201, 162, 39, 0.2); }
    100% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.4), 0 0 80px rgba(201, 162, 39, 0.2); }
}

/* Header do modal - COMPACTO */
.celebration-header {
    text-align: center;
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Botão de fechar do modal de celebração */
.celebration-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(139, 112, 25, 0.15) 100%);
    border: 2px solid rgba(201, 162, 39, 0.5);
    color: var(--gold-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.celebration-close-btn:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.5);
}

.celebration-close-btn:active {
    transform: scale(0.95);
}

/* Animação de pulso para chamar atenção */
.celebration-close-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    animation: closeButtonPulse 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes closeButtonPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.celebration-trophy {
    font-size: 2.5rem;
    display: block;
    animation: trophyBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.celebration-header-text {
    text-align: left;
}

.celebration-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.celebration-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.celebration-subtitle i {
    color: var(--gold-primary);
    font-size: 0.75rem;
}

/* Corpo do modal - COMPACTO com 2 colunas */
.celebration-body {
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Mensagem principal - coluna esquerda */
.celebration-message {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(139, 112, 25, 0.05) 100%);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.celebration-message p {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.celebration-message p:last-child {
    margin-bottom: 0;
}

.celebration-message .highlight {
    color: #ffd700;
    font-weight: 600;
}

.celebration-message .heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

/* Assinatura */
.celebration-signature {
    text-align: right;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.celebration-signature-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
}

.celebration-signature-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Seção de heróis - coluna direita */
.celebration-heroes {
    display: flex;
    flex-direction: column;
}

.celebration-heroes-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.celebration-heroes-title i {
    font-size: 0.8rem;
}

/* Desenvolvedores principais - INLINE */
.celebration-devs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.celebration-dev {
    text-align: center;
    transition: transform 0.3s;
}

.celebration-dev:hover {
    transform: translateY(-3px);
}

.celebration-dev-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    margin-bottom: 0.25rem;
}

.celebration-dev.secondary .celebration-dev-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
}

.celebration-dev-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.75rem;
}

.celebration-dev.lead .celebration-dev-name {
    color: #ffd700;
}

.celebration-dev.secondary .celebration-dev-name {
    color: #e0e0e0;
}

.celebration-dev-role {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celebration-dev-badge {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

/* Ranking de contribuidores */
.celebration-contributors {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
}

.celebration-contributors-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.celebration-contributors-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Item do ranking */
.celebration-contributor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.celebration-contributor:hover {
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--gold-primary);
}

.celebration-contributor-rank {
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.celebration-contributor img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.celebration-contributor-info {
    flex: 1;
    min-width: 0;
}

.celebration-contributor-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celebration-contributor-thanks {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
}

.celebration-contributor-score {
    font-weight: 700;
    color: var(--gold-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Links de ação - FOOTER */
.celebration-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.celebration-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.celebration-link i {
    font-size: 1rem;
}

.celebration-link.discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.celebration-link.discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.5);
}

.celebration-link.steam {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(27, 40, 56, 0.3);
}

.celebration-link.steam:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 71, 94, 0.5);
}

.celebration-link.epic {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(42, 42, 42, 0.3);
}

.celebration-link.epic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 42, 42, 0.5);
}

.celebration-link.github {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}

.celebration-link.github:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.5);
}

/* Footer do modal - COMPACTO */
.celebration-footer {
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.celebration-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.celebration-footer-text .gold {
    color: var(--gold-primary);
}

/* Loading dos contribuidores */
.celebration-contributors-loading {
    color: var(--text-muted);
    padding: 1rem;
}

.celebration-contributors-loading i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 800px) {
    .celebration-body {
        grid-template-columns: 1fr;
    }
    
    .celebration-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .celebration-modal {
        margin: 0.25rem;
        border-radius: 12px;
    }
    
    .celebration-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .celebration-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem 0.5rem;
        padding-top: 2.5rem; /* Espaço extra para o botão de fechar */
    }
    
    .celebration-header-text {
        text-align: center;
    }
    
    .celebration-trophy {
        font-size: 2rem;
    }
    
    .celebration-title {
        font-size: 1.1rem;
    }
    
    .celebration-body {
        padding: 0.75rem;
    }
    
    .celebration-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .celebration-link {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .celebration-link i {
        font-size: 0.9rem;
    }
}

/* ========================================
   🎵 MUSIC PLAYER - WUXIA AMBIENT
   Player de música ambiente flutuante
   ======================================== */

.music-player-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Botão principal circular */
.music-player-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 
        0 4px 20px rgba(201, 162, 39, 0.4),
        0 0 30px rgba(201, 162, 39, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.music-player-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 30px rgba(201, 162, 39, 0.5),
        0 0 40px rgba(201, 162, 39, 0.3);
}

.music-player-btn:active {
    transform: scale(0.95);
}

/* Efeito de ondas sonoras quando tocando */
.music-player-btn.playing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: musicWave 1.5s ease-out infinite;
}

.music-player-btn.playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: musicWave 1.5s ease-out infinite 0.7s;
}

@keyframes musicWave {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* Ícone com animação */
.music-player-btn i {
    transition: transform 0.3s ease;
}

.music-player-btn.playing i {
    animation: musicPulse 0.8s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Tooltip de hover */
.music-player-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 8px;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.music-player-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(20, 20, 30, 0.95);
}

.music-player-container:hover .music-player-tooltip {
    opacity: 1;
    visibility: visible;
}

.music-tooltip-title {
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-tooltip-title i {
    font-size: 0.75rem;
}

.music-tooltip-track {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Controle de volume (aparece ao clicar) */
.music-volume-control {
    display: none;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.music-volume-control.active {
    display: flex;
}

.music-volume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.music-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(201, 162, 39, 0.2);
    outline: none;
    cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
    transition: transform 0.2s;
}

.music-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.music-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}

.music-track-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.music-track-info i {
    color: var(--gold-primary);
}

/* Responsivo */
@media (max-width: 768px) {
    .music-player-container {
        bottom: 80px;
        left: 15px;
    }
    
    .music-player-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .music-player-tooltip {
        display: none;
    }
}

/* ========================================
   🎵 MUSIC ENTRY MODAL - FORÇA AUTOPLAY
   Modal de entrada para ativar áudio
   ======================================== */

.music-entry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 15, 0.97);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.music-entry-overlay.active {
    opacity: 1;
    visibility: visible;
}

.music-entry-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.music-entry-modal {
    text-align: center;
    max-width: 450px;
    padding: 3rem 2.5rem;
    background: linear-gradient(180deg, rgba(30, 25, 20, 0.95) 0%, rgba(15, 12, 10, 0.98) 100%);
    border: 2px solid rgba(201, 162, 39, 0.5);
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(201, 162, 39, 0.3),
        0 0 120px rgba(201, 162, 39, 0.1),
        inset 0 0 60px rgba(201, 162, 39, 0.05);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.music-entry-overlay.active .music-entry-modal {
    transform: scale(1);
}

/* Decoração de fundo */
.music-entry-modal::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    animation: entryGlow 3s ease-in-out infinite;
}

.music-entry-modal::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    animation: entryGlow 3s ease-in-out infinite 1.5s;
}

@keyframes entryGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.music-entry-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.music-entry-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
    position: relative;
    z-index: 1;
}

.music-entry-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.music-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 4px 20px rgba(201, 162, 39, 0.4),
        0 0 40px rgba(201, 162, 39, 0.2);
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4), 0 0 40px rgba(201, 162, 39, 0.2); }
    50% { box-shadow: 0 6px 30px rgba(201, 162, 39, 0.6), 0 0 60px rgba(201, 162, 39, 0.3); }
}

.music-entry-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 30px rgba(201, 162, 39, 0.6),
        0 0 60px rgba(201, 162, 39, 0.4);
}

.music-entry-btn i {
    font-size: 1.2rem;
}

.music-entry-hint {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.music-entry-hint i {
    margin-right: 0.3rem;
}

/* Responsivo */
@media (max-width: 480px) {
    .music-entry-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .music-entry-icon {
        font-size: 3rem;
    }
    
    .music-entry-title {
        font-size: 1.4rem;
    }
    
    .music-entry-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
