/* ====================================================================
   CONCURSO MUNDIALERO - CHARL'S CAFÉ - STYLE
   ==================================================================== */

:root {
    --stadium-green: #155e2a;
    --stadium-light-green: #248f43;
    --neon-green: #39ff14;
    --neon-gold: #ffd700;
    --chocolate-dark: #24110a;
    --chocolate-medium: #422218;
    --chocolate-light: #6e3d2c;
    --creamy-bg: #f5efe6;
    --creamy-card: #ffffff;
    --gold: #ffcc00;
    --gold-light: #ffee99;
    --gold-dark: #cc9900;
    --text-dark: #20120d;
    --text-muted: #73625b;
    --border-color: #e3d2c8;
}

/* Base resets & typography */
body.mundial-theme {
    background-color: #11361b;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    background-image: 
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(24, 92, 44, 0.4) 0%, transparent 80%),
        linear-gradient(to bottom, #11361b 0%, #1c100c 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.font-lora {
    font-family: 'Lora', Georgia, serif;
}

/* Navbar overrides */
.bg-chocolate-header {
    background-color: var(--chocolate-dark);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero-section {
    background: 
        radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.25) 0%, transparent 70%),
        repeating-linear-gradient(90deg, rgba(24, 92, 44, 0.9) 0px, rgba(24, 92, 44, 0.9) 60px, rgba(20, 80, 38, 0.9) 60px, rgba(20, 80, 38, 0.9) 120px);
    border-bottom: 6px solid var(--gold);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 60%),
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0h30v30H0zm30 30h30v30H30z" fill="white" fill-opacity="0.02"/></svg>');
}

/* Party Badge */
.party-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff4500, #ff8800, #248f43, #ff4500);
    background-size: 300% 100%;
    color: #fff;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    animation: partyGradient 4s linear infinite, bounce 2s infinite alternate;
    margin-bottom: 15px;
    border: 2px solid rgba(255,255,255,0.2);
}

@keyframes partyGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Prize Badge / Prize Card */
.prize-card-wrapper {
    margin: 15px 0;
}

.prize-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
    color: #0d0807;
    font-weight: 900;
    padding: 12px 28px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    border: 3px solid #ffffff;
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    100% { transform: scale(1.06); box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

/* Interactive Football in Hero */
.interactive-football-container {
    position: relative;
    display: inline-block;
    width: 170px;
    height: 170px;
    margin: 15px auto;
    animation: ballBounce 4s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.interactive-football {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-football-container:hover .interactive-football {
    transform: rotate(360deg) scale(1.12);
}

.interactive-football-container:active .interactive-football {
    transform: scale(0.9);
}

.football-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

.click-hint {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    color: var(--chocolate-dark);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: hintPulse 1s infinite alternate;
    border: 1.5px solid #ffffff;
}

@keyframes ballBounce {
    0%, 100% { transform: translateY(0) scaleY(1); }
    45% { transform: translateY(-32px) scaleY(1); }
    50% { transform: translateY(-32px) rotate(15deg) scaleY(1); }
    90% { transform: translateY(6px) scaleY(0.94); }
    95% { transform: translateY(0) scaleY(1); }
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes hintPulse {
    0% { transform: translateX(-50%) scale(0.94); }
    100% { transform: translateX(-50%) scale(1.06); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Steps Progress Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    text-align: center;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-item.active {
    opacity: 1;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--chocolate-medium);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 10px auto;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.step-item.active .step-num {
    background: linear-gradient(135deg, #1c7c39 0%, #39ff14 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    border-color: #ffffff;
    transform: scale(1.12);
}

/* Form Styles */
.card-form {
    background-color: var(--creamy-card);
    border: 3px solid #1c7c39;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1c7c39, #ffcc00, #3a1d11, #1c7c39);
}

.form-control:focus, .form-check-input:focus {
    border-color: #1c7c39;
    box-shadow: 0 0 0 0.25rem rgba(28, 124, 57, 0.25);
}

.form-check-input:checked {
    background-color: #1c7c39;
    border-color: #1c7c39;
}

/* Match Cards grid */
.date-header {
    background: linear-gradient(90deg, #1c7c39 0%, #155e2a 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 35px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.match-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.match-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(24, 92, 44, 0.15);
    border-color: #1c7c39;
}

/* Highlight when inputs inside match-card are focused */
.match-card:focus-within {
    border-color: #1c7c39;
    box-shadow: 0 0 15px rgba(28, 124, 57, 0.25);
    background-color: #f7faf8;
}

.match-info-top {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.match-teams-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.team-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-flag-placeholder {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1c7c39 0%, #155e2a 100%);
    color: #ffffff;
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.match-card:hover .team-flag-placeholder {
    transform: rotate(360deg);
}

.team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.match-vs-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-input {
    width: 52px;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--chocolate-dark);
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

.score-input:focus {
    outline: none;
    border-color: #39ff14;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

/* Hide spin buttons */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.score-input[type=number] {
    -moz-appearance: textfield;
}

.match-vs-text {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Leaderboard Glassmorphism Styles */
.leaderboard-container {
    background: #ffffff;
    border: 3px solid #c5a880;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.leaderboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #c5a880, #3a1d11, #c5a880);
}

.table-leaderboard {
    vertical-align: middle;
}

.table-leaderboard th {
    background-color: var(--chocolate-dark);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    padding: 15px;
    border: none;
    border-bottom: 2px solid var(--gold);
}

.table-leaderboard td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.leaderboard-row {
    transition: background-color 0.2s ease;
}

.leaderboard-row:hover {
    background-color: rgba(28, 124, 57, 0.08);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    background-color: #eee;
    color: #555;
    border: 1px solid #ddd;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    color: var(--chocolate-dark);
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.5);
    border: 2px solid #ffffff;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    color: #111;
    box-shadow: 0 3px 10px rgba(169, 169, 169, 0.4);
    border: 2px solid #ffffff;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(184, 115, 51, 0.4);
    border: 2px solid #ffffff;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
    color: var(--chocolate-dark) !important;
    font-weight: 800;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 18px rgba(255, 153, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    pointer-events: none;
    opacity: 0;
}

.btn-gold:hover::after {
    left: 130%;
    opacity: 1;
    transition: all 0.5s ease;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.55);
}

.btn-chocolate-outline {
    border: 2px solid var(--chocolate-medium);
    color: var(--chocolate-medium);
    background-color: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-chocolate-outline:hover {
    background-color: var(--chocolate-medium);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Policy text container */
.policy-box {
    max-height: 120px;
    overflow-y: scroll;
    border: 2px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background-color: #fafafa;
    margin-bottom: 15px;
}

/* Footer & Credits style */
.footer-credits {
    background-color: var(--chocolate-dark);
    color: rgba(255, 255, 255, 0.85);
    border-top: 4px solid var(--gold);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.astra-logo-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.astra-logo-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.social-icons-astra a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    font-size: 1.25rem;
    transition: all 0.2s;
    display: inline-block;
}

.social-icons-astra a:hover {
    color: var(--gold);
    transform: scale(1.2);
}

/* Confetti Particle styles */
.confetti-particle {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-5vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

/* Match Selection & Blocking Styles */
.match-selection-header {
    background-color: var(--chocolate-dark);
    color: #ffffff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.match-card-selected {
    border-color: #1c7c39 !important;
    background-color: #f7faf8 !important;
    box-shadow: 0 8px 20px rgba(28, 124, 57, 0.15) !important;
}

.match-card-blocked {
    opacity: 0.7;
    background-color: #f2edf0 !important;
    border-color: #d1c7bd !important;
}

.match-card-blocked .score-input {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #ced4da !important;
    cursor: not-allowed;
}

.match-card-blocked .team-flag-placeholder {
    background: linear-gradient(135deg, #7a6e67 0%, #524741 100%) !important;
}

.selection-counter-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
    color: var(--chocolate-dark);
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

