/* C:\Users\user\.gemini\antigravity-ide\scratch\tiradentes-virtual\assets\css\custom.css */

/* Define core dynamic CSS custom properties for World Cup stadium theme */
:root {
    --accent-primary: #FACC15;   /* Canary Yellow */
    --accent-secondary: #16A34A; /* Emerald Green */
    --font-family: 'Outfit', sans-serif;
    --bg-dark-900: #020a04; /* Pitch black with deep green soccer turf tint */
    --bg-dark-800: #051408;
    --bg-dark-700: #0b2210;
}

/* Set up the typography and global smooth behavior */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark-900);
    color: #f3f4f6;
    font-family: var(--font-family);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark-900);
    background-image: 
        linear-gradient(to bottom, rgba(2, 10, 4, 0.88) 0%, rgba(5, 20, 8, 0.94) 100%),
        url('../images/stadium_pitch_bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Glassmorphism Styles themed with soccer field tint */
.glass-panel {
    background: rgba(5, 20, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(11, 34, 16, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(250, 204, 21, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8),
                0 0 25px -5px rgba(22, 163, 74, 0.2);
}

/* Neon glow highlight borders with Brazilian colors */
.neon-border-yellow {
    box-shadow: 0 0 20px -3px rgba(250, 204, 21, 0.25);
    border-color: var(--accent-primary) !important;
}

.neon-border-green {
    box-shadow: 0 0 20px -3px rgba(22, 163, 74, 0.25);
    border-color: var(--accent-secondary) !important;
}

/* Glow ring accents representing stadium floodlights */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
}

/* 3D Tab Slide transitions */
@keyframes slide-fade {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.game-tab-active {
    display: block !important;
    animation: slide-fade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animation utilities */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.14; transform: scale(1); }
    50% { opacity: 0.28; transform: scale(1.03); }
}
.pulse-glow-bg {
    animation: pulse-glow 8s ease-in-out infinite;
}

/* Scrolling Custom Scrollbar inside indexation grids */
.tab-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.tab-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.tab-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.tab-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Glowing text highlight */
.glow-text {
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.2);
}

/* Custom Soccer elements: Stadium Floodlights Glow */
.stadium-halo {
    position: relative;
}
.stadium-halo::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 25%;
    width: 50%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(250, 204, 21, 0.5) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 1;
}

/* Floating Soccer Balls */
@keyframes drift-ball-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -30px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
.floating-ball-1 {
    animation: drift-ball-1 25s infinite ease-in-out;
}

@keyframes drift-ball-2 {
    0% { transform: translate(0, 0) rotate(360deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.floating-ball-2 {
    animation: drift-ball-2 30s infinite ease-in-out;
}

/* Flag circles */
.flag-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    background-color: rgba(255,255,255,0.05);
}

/* Pulsing play button overlays for matches */
@keyframes pulse-play {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.pulse-play-btn {
    animation: pulse-play 1.6s infinite;
}
