/* ========================================
   CROWNTOWN CUP 2026 – Shared Styles
   ======================================== */

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

* { font-family: 'Inter', system-ui, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

/* ---------- Glassmorphism Nav ---------- */
.glass {
    background: rgba(6, 95, 70, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ---------- Live Pulse ---------- */
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}
.live-dot { animation: livePulse 1.2s ease-in-out infinite; }

/* ---------- Sponsor Logos ---------- */
.sponsor-logo {
    filter: grayscale(100%);
    transition: filter .3s, transform .3s;
}
.sponsor-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ---------- Hero ---------- */
.hero-overlay {
    background: linear-gradient(135deg, rgba(6,95,70,.88) 0%, rgba(16,185,129,.65) 50%, rgba(6,78,59,.85) 100%);
}

/* Logo in hero: transparent PNG floats cleanly on any background */
.hero-logo {
    filter: drop-shadow(0 8px 40px rgba(0,0,0,0.45));
}

/* Info chips in hero */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.92);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Grass Pattern ---------- */
.grass-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Sections Fade-In ---------- */
.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Tabs ---------- */
.tab-active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,.4);
}
.tab-inactive { background: white; color: #065f46; }
.tab-inactive:hover { background: #ecfdf5; }

/* ---------- Info Cards ---------- */
.info-card { transition: transform .25s, box-shadow .25s; }
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,.4);
}
.btn-sun {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transition: transform .2s, box-shadow .2s;
}
.btn-sun:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,.4);
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transition: transform .2s, box-shadow .2s;
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239,68,68,.4);
}
.btn-outline {
    border: 2px solid #d1d5db;
    color: #374151;
    background: white;
    transition: all .2s;
}
.btn-outline:hover {
    border-color: #10b981;
    color: #065f46;
    background: #f0fdf4;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* ---------- Match Cards ---------- */
.match-card { transition: transform .2s, box-shadow .2s; }
.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* ---------- Success Anim ---------- */
@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.success-check { animation: checkmark .5s ease forwards; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 4px; }

/* ---------- Admin Specific ---------- */
.admin-glass {
    background: rgba(6, 95, 70, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-card {
    transition: transform .2s, box-shadow .2s;
}
.admin-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.admin-sidebar-link {
    transition: all .2s;
    border-left: 3px solid transparent;
}
.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: rgba(16,185,129,.1);
    border-left-color: #10b981;
    color: #065f46;
}

/* ---------- Status Badges ---------- */
.badge-live {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.badge-finished {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.badge-upcoming {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ---------- Table ---------- */
.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.admin-table td {
    border-top: 1px solid #f3f4f6;
}
.admin-table tr:hover td {
    background: #f0fdf4;
}

/* ---------- Modal Overlay ---------- */
.modal-overlay {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    transition: opacity .2s;
}

/* ---------- Toast Notification ---------- */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}
.toast-enter { animation: slideIn .3s ease forwards; }
.toast-exit  { animation: slideOut .3s ease forwards; }

/* ---------- Score Input ---------- */
.score-input {
    width: 3.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.score-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}

/* ============================================
   REDESIGN – Light Theme (index.html)
   ============================================ */

/* Light navbar */
.nav-light {
    background: #ffffff;
    border-bottom: 1px solid #f0f0ee;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* Countdown timer */
.countdown-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: #065f46;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
@media (max-width: 639px) {
    .countdown-num { font-size: 2.25rem; }
    .countdown-sep { font-size: 1.75rem; }
}
@media (max-width: 380px) {
    .countdown-num { font-size: 1.85rem; }
    .countdown-sep { font-size: 1.5rem; }
}
.countdown-sep {
    font-size: 2.25rem;
    font-weight: 200;
    color: #e5e7eb;
    line-height: 1;
    padding-top: 0.1em;
}
.countdown-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-top: 0.35rem;
}

/* Mobile: kein horizontales Überlaufen */
@media (max-width: 639px) {
    .hero-float-card { display: none !important; }
}

/* Hero right side: ring & logo visual */
.hero-ring {
    background: radial-gradient(ellipse at 35% 35%, rgba(16,185,129,0.13), rgba(6,95,70,0.05) 70%);
    border-radius: 50%;
}
.hero-ring-border {
    border-radius: 50%;
    border: 1.5px solid rgba(16,185,129,0.18);
}

/* Floating info chips on hero right */
.hero-float-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #f0f0ee;
}

/* Hero dot-grid background */
.hero-bg-dots {
    background-image: radial-gradient(circle, rgba(16,185,129,0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}
