/* ==========================================================================
   WAZOO 2026: OFFICIAL UI DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Core Palette */
    --fifa-navy: #020617;
    --fifa-gold: #d4af37;
    --fifa-silver: #94a3b8;
    --card-bg: #0f172a;
    --hairline: rgba(255, 255, 255, 0.1);
    
    /* Host Accents */
    --can-red: #ef4444;
    --usa-blue: #3b82f6;
    --mex-green: #22c55e;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--fifa-navy);
    color: white;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- 1. TYPOGRAPHY --- */
h1, h2, h3, .glory-text, .official-btn-gold, .nav-item, .wazoo-table th {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.glory-text {
    font-size: 4rem;
    line-height: 0.9;
    margin: 1rem 0;
    background: linear-gradient(to bottom, #fff 40%, var(--fifa-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-text {
    color: var(--fifa-silver);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.step-indicator {
    color: var(--fifa-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 0;
    color: white;
}

/* --- 2. LAYOUT & NAVIGATION --- */
.official-header {
    background: var(--fifa-navy);
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    justify-content: center;
    align-items: center;
}

.host-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--can-red) 33%, var(--usa-blue) 33% 66%, var(--mex-green) 66%);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.official-logo {
    height: 80px;
    margin-top: 10px;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.15));
}

#app-shell {
    padding: 2rem 1.5rem 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.official-hero {
    text-align: center;
    margin-top: 10vh;
    max-width: 600px;
    margin-inline: auto;
}

/* --- 3. CARDS & PREDICTIONS --- */
.prediction-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card.can-accent { border-left: 4px solid var(--can-red); }
.card.usa-accent { border-left: 4px solid var(--usa-blue); }
.card.mex-accent { border-left: 4px solid var(--mex-green); }

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--fifa-silver);
    margin: 0;
}

.pts-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--fifa-gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- 4. FORM ELEMENTS --- */
.official-select {
    width: 100%;
    background: rgba(2, 6, 23, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.official-select:focus {
    border-color: var(--fifa-gold);
}

/* --- 5. BUTTONS --- */
.official-btn-gold {
    background: var(--fifa-gold);
    color: var(--fifa-navy);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    transition: 0.2s;
    box-shadow: 0 4px 0px #b08d26;
}

.official-btn-gold:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #b08d26;
}

.auth-pill {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--fifa-silver);
    color: var(--fifa-silver);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- 6. LEAGUE TABLE --- */
.wazoo-table {
    width: 100%;
    border-collapse: collapse;
}

.wazoo-table th {
    text-align: left;
    color: var(--fifa-gold);
    font-size: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hairline);
}

.wazoo-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- 7. BOTTOM NAVIGATION --- */
.official-bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--hairline);
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    background: none;
    border: none;
    color: var(--fifa-silver);
    font-size: 1.2rem;
    opacity: 0.5;
    padding: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.nav-item.active {
    opacity: 1;
    color: var(--fifa-gold);
}

/* --- 8. RESPONSIVE BREAKPOINTS --- */
@media (min-width: 768px) {
    .prediction-grid { grid-template-columns: repeat(2, 1fr); }
    .glory-text { font-size: 6rem; }
    .official-header { height: 120px; }
    .official-logo { height: 100px; }
    .official-bottom-nav { justify-content: center; gap: 4rem; }
}

@media (min-width: 1024px) {
    .prediction-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- 9. RULES & SCORING PAGE --- */
.rule-category {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--fifa-gold);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 5px;
}

.rule-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--fifa-silver);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rule-list li strong {
    color: white;
}

.rule-highlight {
    background: rgba(212, 175, 55, 0.15);
    color: var(--fifa-gold);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}
/* --- 10. AUTHENTICATION CARD --- */
.auth-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.input-group {
    margin-bottom: 1rem;
}

.wazoo-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.wazoo-input:focus {
    border-color: var(--fifa-gold);
}

.small-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 10px;
}

.outline-btn {
    background: transparent;
    color: var(--fifa-silver);
    border: 1px solid var(--fifa-silver);
    padding: 0.8rem 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.outline-btn:hover {
    border-color: white;
    color: white;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
}

.auth-links a {
    color: var(--fifa-gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    border-top: 1px solid var(--hairline);
    margin: 25px 0;
    position: relative;
}

.auth-divider span {
    background: var(--card-bg);
    padding: 0 10px;
    color: var(--fifa-silver);
    font-size: 0.85rem;
    position: relative;
    top: -10px;
}

.google-btn {
    background: white;
    color: #333;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.google-btn:hover {
    background: #f1f5f9;
}