﻿:root {
    /* Brand Palette from Logo */
    --brand-navy: #001f6b; /* Deep Navy from "FRANZ" outline */
    --brand-cyan: #00acc1; /* Vibrant Teal from "SOCCER" */
    --brand-light: #e1f5fe; /* Very Pale Blue background hint */

    --background-color: #f7fff7;
    --text-color: var(--brand-navy);
    --navbar-bg: #ffffff;
    --navbar-text: var(--brand-navy);
    --navbar-border: var(--brand-cyan);
    --nav-link-hover: var(--brand-cyan);
    --ball-color: #ffffff;
    --slider-bg: rgba(0, 31, 107, 0.1);
}

[data-theme="dark-soccer"] {
    --background-color: #000a1a; /* Very deep navy "Stadium" black */
    --text-color: #00acc1;
    --navbar-bg: #000a1a;
    --navbar-text: #ffffff;
    --navbar-border: var(--brand-cyan);
    --nav-link-hover: var(--brand-cyan);
    --ball-color: #eeeeee;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background 0.4s, color 0.4s;
}

/* Apply variables to the Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 3px solid var(--navbar-border) !important; /* Reactive border */
    transition: background-color 0.4s, border-color 0.4s;
}

.navbar-brand, .nav-link {
    color: var(--navbar-text) !important;
    transition: color 0.4s;
}

    .nav-link:hover {
        color: var(--nav-link-hover) !important;
    }

/* Container for the toggle */
.soccer-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

    .soccer-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The Track (The Pitch Line) - Merged & Reactive */
.slider {
    position: absolute; /* Keep: Required for layout */
    cursor: pointer; /* Keep: UI feedback */
    top: 0; /* Keep: Positioning */
    left: 0; /* Keep: Positioning */
    right: 0; /* Keep: Positioning */
    bottom: 0; /* Keep: Positioning */
    border-radius: 34px; /* Keep: Rounded shape */
    transition: background 0.3s, border-color 0.3s; /* Keep: Smooth transition */
    /* Update: Use variables for reactive colors */
    background: var(--slider-bg);
    border: 2px solid var(--navbar-border);
}

/* The Ball - Merged & Reactive */
.soccer-ball {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 24px;
    height: 24px;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: var(--ball-color); /* Uses reactive variable [cite: 2] */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

    /* The Soccer Ball Icon Pattern */
    .soccer-ball::after {
        content: '⚽';
        font-size: 22px;
        line-height: 24px;
        display: block;
        /* Adjust visibility based on theme */
        filter: var(--ball-filter, grayscale(1));
        transition: filter 0.4s;
    }

/* Movement and Rolling Animation */
.soccer-switch input:checked + .slider .soccer-ball {
    left: 30px;
    transform: rotate(360deg); /* This makes it "roll" */
}

[data-theme="dark-soccer"] .soccer-ball {
    --ball-filter: grayscale(0) brightness(1.2);
}

/* Dark mode specific adjustments for blocks */
.column-block-item {
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(0, 77, 0, 0.1);
}

[data-theme="dark-soccer"] .column-block-item {
    background: #122612;
    color: #a2f9a2;
    border: 1px solid #1b5e20;
}

    [data-theme="dark-soccer"] .column-block-item h1,
    [data-theme="dark-soccer"] .column-block-item h2,
    [data-theme="dark-soccer"] .column-block-item h3 {
        color: #ffffff;
    }
