/*
Theme Name: Soccer Tickets
Theme URI: https://soccertickets.ca
Author: Your Name
Author URI: https://yourwebsite.com
Description: A modern WordPress theme for soccer ticket sales using TicketNetwork API
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soccer-tickets
Tags: soccer, tickets, e-commerce, sports, mls
*/

/* Reset and Base Styles */
:root {
    /* Primary palette */
    --primary-color: #46bd9b; /* brand teal */
    --primary-600: #3aa78f;   /* hover/darker */
    --primary-rgb: 70,189,155;

    --secondary-color: #34a853; /* green */
    --secondary-rgb: 52,168,83;

    --accent-color: #ea4335; /* red */
    --accent-rgb: 234,67,53;

    /* Surfaces and neutrals */
    --background-color: #f6f7fb; /* page background */
    --surface: #ffffff; /* cards, panels */
    --muted: #f4f6f8;
    --border-color: #e6e6e6;

    /* Text */
    --text-color: #202124;
    --text-rgb: 32,33,36;
    --muted-text: #5f6368;

    /* Status colors */
    --success: #28a745;
    --warning: #fbbc05;
    --danger: #ea4335;

    /* Gray scale */
    --gray-light: #f8f9fa;
    --gray-medium: #dadce0;
    --gray-dark: #5f6368;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-main,
#page > .container {
    margin-top: 80px;
} 

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
:root{
    /* Header theme (tweak these to match your logo) */
    --header-bg: #031241;           /* dark slate (compliments many logos) */
    --header-text: #ffffff;         /* header text color */
    --header-text-muted: #d1d5db;   /* subtle text */
    --header-accent: #46bd9b;       /* CTA accent (brand teal) */
}

.site-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Make header full width (content spans viewport) */
.site-header .container {
    max-width: 100%;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.site-branding > a > img {
    width: 265px;
    height: auto;
}

/* Navigation */
.main-navigation {
    display: grid;
    grid-template-columns: auto 1fr auto; /* branding | nav | right */
    align-items: center;
    padding: 1rem 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--header-text-muted);
}

/* Navigation sub-blocks */
.navigation-menu { margin: 0 24px; justify-self: center; }
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding .site-title a { color: var(--header-text); }
.header-right { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.account-link { color: var(--header-text); opacity: .9; }
.account-link:hover { color: var(--header-text); opacity: 1; }

/* Hamburger toggle (hidden on desktop) */
.menu-toggle { display: none; background: transparent; border: 0; color: var(--header-text); cursor: pointer; padding: 8px; }
.menu-toggle .menu-icon { display: inline-block; width: 22px; height: 2px; background: var(--header-text); position: relative; vertical-align: middle; }
.menu-toggle .menu-icon::before, .menu-toggle .menu-icon::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--header-text); }
.menu-toggle .menu-icon::before { top: -6px; }
.menu-toggle .menu-icon::after { top: 6px; }

/* Header Search (desktop) */
.header-search form { display: flex; align-items: center; }
.header-search input[type="search"],
.header-search input[type="text"]{
    appearance: none;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: var(--header-text);
    border-radius: 999px;
    padding: 10px 14px;
    min-width: 260px;
}
.header-search input::placeholder { color: rgba(255,255,255,0.7); }
.header-search .search-submit,
.header-search input[type="submit"] { display: none; }
.desktop-only { display: block; }

/* Date range input in header */
.date-input-wrap { position: relative; display: inline-block; }
.date-input-wrap .icon-calendar { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: rgba(255,255,255,0.85); pointer-events: none; }
.date-range-input {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: var(--header-text);
    border-radius: 999px;
    padding: 10px 12px 10px 38px; /* left space for calendar icon */
    margin-right: 10px;
    min-width: 220px;
}
/* Increase specificity to override generic input padding in header */
.header-search #matchDateRange.date-range-input { padding-left: 38px; }
@media (max-width: 768px) {
    .date-range-input { min-width: 0; width: 100%; margin: 8px 0; }
}

/* CTA */
.btn-cta {
    background: var(--header-accent);
    color: #111827;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
}
.btn-cta:hover { filter: brightness(0.95); }

/* Hero Slider */
.hero-slider {
    margin-top: 80px;
    position: relative;
}

/* Match Cards */
.match-card {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

/* Sections */
.section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* FAQ */
.faq .faq-list { max-width: 900px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--gray-medium); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; transition: transform .2s ease; }
.faq details[open] summary::after { content: '–'; }
.faq .faq-answer { margin-top: 8px; color: var(--muted-text); }

/* Sidebar */
.sidebar {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 0;
    margin-top: 4rem;
}
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 { color: var(--header-text); }
.site-footer a { color: var(--header-text); opacity: .9; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin: 6px 0; }
.site-footer .site-info { border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0; color: var(--header-text); }
.footer-widgets {
    padding: 3rem 0 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    /* Match mobile padding for full-width header */
    .site-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure nav area spans available space on mobile for dropdown width */
    .navigation-menu { justify-self: stretch; }
    
    /* Mobile nav behavior */
    #site-navigation { position: relative; }
    .main-navigation ul { display: none; }
    #site-navigation.toggled ul { 
        display: flex; 
        flex-direction: column; 
        gap: 12px; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: var(--header-bg);
        padding: 12px 16px; 
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    /* Show hamburger on mobile */
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .desktop-only { display: none; }
    .navigation-menu { margin: 0 12px 0 16px; }
    .header-actions .account-link { display: none; }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-600);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}