/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Theme 1 - Original (default) */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-silver: #94a3b8;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --hero-gradient-from: #f0f9ff;
    --hero-gradient-to: #e0f2fe;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

[data-theme="cowboys-awayish"] {
    /* Theme 2 - Cowboys-inspired (Silver accents - near but not exact) */
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #6b7280;
    --accent-silver: #94a3b8;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #cbd5e1;
    --hero-gradient-from: #e2e8f0;
    --hero-gradient-to: #cbd5e1;
}

[data-theme="cowboys-homeish"] {
    /* Theme 3 - Cowboys-inspired (Silver-Green accents - near but not exact) */
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #829896;
    --accent-silver: #829896;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #a8b8b6;
    --hero-gradient-from: #e8f0ef;
    --hero-gradient-to: #d4e0de;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header .tagline {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--hero-gradient-from) 0%, var(--hero-gradient-to) 100%);
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
}

.button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button.secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* About Section */
.about {
    max-width: 900px;
    margin: 0 auto;
}

.profile-photo-container {
    text-align: center;
    margin: 2rem 0 3rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    display: inline-block;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.credential-item .icon {
    font-size: 2.5rem;
}

.credential-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.credential-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.bio em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

/* Subjects Section */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subject-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.subject-card h3 {
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 1.5rem;
}

.subject-card ul {
    list-style: none;
}

.subject-card li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.subject-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

[data-theme="cowboys-awayish"] .subject-card li:before,
[data-theme="cowboys-homeish"] .subject-card li:before {
    color: var(--primary-color);
}

/* Approach Section */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

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

.approach-item .number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.approach-item h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.approach-item p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.detail-box {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.detail-box h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.detail-box ul {
    list-style: none;
}

.detail-box li {
    padding: 0.6rem 0;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-box strong {
    color: var(--text-dark);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    font-size: 2.25rem;
}

.cta > .container > p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-item .icon {
    font-size: 2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-item a:hover {
    border-bottom-color: white;
}

.response-time {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Cowboys Controls (theme selector + back button) */
.cowboys-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cowboys-game-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
    position: relative;
}

.cowboys-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
}

.cowboys-left-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

.cowboys-right-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 0;
    background-color: var(--bg-white);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    padding: 0;
    border: 1.5px solid var(--border-color);
}

.theme-selector button {
    background-color: transparent;
    color: var(--text-medium);
    border: none;
    padding: 0.35rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    letter-spacing: -0.01em;
}

.theme-selector button:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.theme-selector button.active {
    background-color: var(--primary-color);
    color: white;
}

.theme-selector button.active:hover {
    background-color: var(--primary-dark);
}

/* Back to Main Button */
.back-to-main {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.back-to-main:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.2);
}

/* Game Display */
.game-display-container {
    position: relative;
}

.game-display {
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: default;
    width: max-content;
    display: inline-block;
    letter-spacing: -0.01em;
    line-height: 1;
}

/* Home/Bye games use homeish background (fixed color, not theme-dependent) */
.game-display.game-home {
    background-color: #e8f0ef;
}

/* Away games use awayish background (fixed color, not theme-dependent) */
.game-display.game-away {
    background-color: #e2e8f0;
}

.game-display-container:hover .game-display.game-home {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.game-display-container:hover .game-display.game-away {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.game-schedule-popup {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 8px 24px -4px rgb(0 0 0 / 0.3);
    padding: 0.4rem;
    width: max-content;
    max-width: 350px;
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.game-display-container:hover .game-schedule-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.game-schedule-item {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-dark);
    cursor: default;
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1;
}

.game-schedule-item:first-child {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.game-schedule-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* Schedule items use fixed colors based on location, not theme */
.game-schedule-item.schedule-home {
    background-color: #e8f0ef;
}

.game-schedule-item.schedule-away {
    background-color: #e2e8f0;
}

.game-schedule-item.current {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .tagline {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }

    .credentials {
        grid-template-columns: 1fr;
    }

    .subject-grid,
    .approach-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .cowboys-controls {
        bottom: 1rem;
        right: 1rem;
        gap: 0.4rem;
        flex-direction: column;
    }
    
    .cowboys-bottom-row {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.35rem;
    }
    
    .cowboys-left-group {
        gap: 0.3rem;
    }

    .theme-selector {
        padding: 0.12rem;
    }

    .theme-selector button {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
        min-width: 38px;
    }

    .back-to-main {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .game-display {
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .credential-item {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

