/* ============================================
   WilcoChess Design System
   WILCO CHESS CLUB
   ============================================ */

:root {
    /* Primary Colors - WilcoChess Brand Palette */
    --cedar-green: #2D5016;
    --limestone-cream: #E8DCC4;
    --wilson-blue: #4A6FA5;

    /* Secondary Colors */
    --wheat-gold: #D4AF37;
    --river-pearl: #F5F5F0;
    --tobacco-barn-red: #8B4513;

    /* Legacy color aliases (for gradual migration) */
    --mtsu-blue: var(--wilson-blue);
    --mtsu-navy: var(--cedar-green);
    --mtsu-light-blue: var(--wilson-blue);

    /* Accent Colors */
    --color-gold: var(--wheat-gold);
    --color-green: var(--cedar-green);
    --color-purple: #91268f;
    --color-pink: #d0146f;

    /* Semantic Colors */
    --color-success: var(--cedar-green);
    --color-error: #dc2626;
    --color-warning: var(--wheat-gold);

    /* Light Mode Colors */
    --color-dark: var(--cedar-green);
    --color-gray-dark: #374151;
    --color-gray: #6b7280;
    --color-gray-light: #d1d5db;
    --color-gray-lighter: #e5e7eb;
    --color-gray-lightest: var(--river-pearl);
    --color-white: #ffffff;
    --color-background: var(--limestone-cream);
    --color-surface: #ffffff;
    --color-text: var(--cedar-green);
    --color-text-secondary: #6b7280;
    --color-border: #e5e7eb;

    /* Typography */
    --font-sans: 'source-sans-pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'proxima-nova', 'Bebas Neue', sans-serif;
    --font-serif: 'freight-display-pro', 'Kepler', Georgia, serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    --font-size-7xl: 4.5rem;    /* 72px */

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius - Modern, more rounded */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* Shadows - Enhanced depth */
    --shadow-sm: 0 1px 2px 0 rgba(45, 80, 22, 0.05);
    --shadow: 0 1px 3px 0 rgba(45, 80, 22, 0.1), 0 1px 2px 0 rgba(45, 80, 22, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(45, 80, 22, 0.1), 0 2px 4px -1px rgba(45, 80, 22, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(45, 80, 22, 0.15), 0 4px 6px -2px rgba(45, 80, 22, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(45, 80, 22, 0.2), 0 10px 10px -5px rgba(45, 80, 22, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(45, 80, 22, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cedar-green) 0%, var(--wilson-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--wilson-blue) 0%, var(--wheat-gold) 100%);
    --gradient-accent: linear-gradient(135deg, var(--wheat-gold) 0%, var(--cedar-green) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(74, 111, 165, 0.9) 100%);
}

/* Dark mode removed - light mode only */

/* ============================================
   Global Reset & Base Styles
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: #000000;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    letter-spacing: -0.02em;
}
h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
}
h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

h1:focus {
    outline: none;
}

p {
    margin: 0 0 var(--spacing-md) 0;
}

a {
    color: var(--wilson-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--cedar-green);
}

/* ============================================
   Form Validation Styles
   ============================================ */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-success);
}

.invalid {
    outline: 1px solid var(--color-error);
}

.validation-message {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtc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ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--color-error);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: var(--color-gray);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--color-gray);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   Utility Classes
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-mtsu-blue {
    color: var(--wilson-blue);
}

.text-wilson-blue {
    color: var(--wilson-blue);
}

.text-cedar-green {
    color: var(--cedar-green);
}

.bg-mtsu-blue {
    background-color: var(--wilson-blue);
}

.bg-mtsu-navy {
    background-color: var(--cedar-green);
}

.bg-wilson-blue {
    background-color: var(--wilson-blue);
}

.bg-cedar-green {
    background-color: var(--cedar-green);
}

.bg-limestone-cream {
    background-color: var(--limestone-cream);
}

/* ============================================
   Focus and Scroll Management
   ============================================ */

/* Remove focus outline from programmatic focus (FocusOnNavigate) */
#main-content:focus {
    outline: none;
}

/* Ensure smooth scroll behavior */
html {
    scroll-behavior: smooth;
}