/* ================================================================
   WORLD CUP 2026 — MATCH REPORTS STOREFRONT
   Design: Stadium-inspired, scoreboard-style match cards
   Brand: #0a2540 (navy), #f5a623 (gold), #e8340a (red)
   ================================================================ */

/* ── Google Font ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
    --hwcr-navy: #0a2540;
    --hwcr-gold: #f5a623;
    --hwcr-red: #e8340a;
    --hwcr-dark: #060e1a;
    --hwcr-card-bg: rgba(255, 255, 255, 0.04);
    --hwcr-card-border: rgba(255, 255, 255, 0.08);
    --hwcr-text-primary: #ffffff;
    --hwcr-text-secondary: rgba(255, 255, 255, 0.6);
    --hwcr-text-muted: rgba(255, 255, 255, 0.35);
    --hwcr-radius: 12px;
    --hwcr-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Full-Width Override ─────────────────────────────────────── */
.hwcr-world-cup-page {
    font-family: var(--hwcr-font);
    background: var(--hwcr-dark);
    color: var(--hwcr-text-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Subtle stadium field pattern behind everything */
.hwcr-world-cup-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(10, 37, 64, 0.6) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 100%, rgba(245, 166, 35, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hwcr-world-cup-page > * {
    position: relative;
    z-index: 1;
}

/* ── Hero Header ─────────────────────────────────────────────── */
.hwcr-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hwcr-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hwcr-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hwcr-hero h1 {
    font-family: var(--hwcr-font) !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #fff !important;
    line-height: 1.1 !important;
}

.hwcr-hero h1 span {
    background: linear-gradient(135deg, var(--hwcr-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hwcr-hero-subtitle {
    font-size: 16px;
    color: var(--hwcr-text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Global Price Banner ─────────────────────────────────────── */
.hwcr-global-price-banner-wrapper {
    text-align: center;
    margin: 10px 0 40px;
}

.hwcr-global-price-banner {
    font-size: 24px;
    font-weight: 800;
    color: var(--hwcr-gold);
    padding: 15px 30px;
    display: inline-block;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 50px;
}

/* ── Stage Section ───────────────────────────────────────────── */
.hwcr-stage-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.hwcr-stage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hwcr-card-border);
}

.hwcr-stage-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(245, 166, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.hwcr-stage-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--hwcr-text-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
}

.hwcr-stage-count {
    font-size: 12px;
    color: var(--hwcr-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Match Cards Grid ────────────────────────────────────────── */
.hwcr-matches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Individual Match Card ───────────────────────────────────── */
.hwcr-match-card {
    background: var(--hwcr-card-bg);
    border: 1px solid var(--hwcr-card-border);
    border-radius: var(--hwcr-radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.hwcr-match-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hwcr-match-card.hwcr-purchased {
    border-color: rgba(245, 166, 35, 0.2);
}

.hwcr-match-card.hwcr-purchased::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--hwcr-gold);
    color: var(--hwcr-navy);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* RTL fix for checkmark */
html[dir="rtl"] .hwcr-match-card.hwcr-purchased::after,
html[lang="ar"] .hwcr-match-card.hwcr-purchased::after {
    right: auto;
    left: 8px;
}

/* ── Match Title (Team vs Team) ──────────────────────────────── */
.hwcr-match-teams {
    font-size: 14px;
    font-weight: 700;
    color: var(--hwcr-text-primary);
    line-height: 1.3;
    text-decoration: none !important;
}

.hwcr-match-card:hover .hwcr-match-teams {
    color: var(--hwcr-gold);
}

/* ── Match Meta (date, group, etc) ───────────────────────────── */
.hwcr-match-meta {
    font-size: 11px;
    color: var(--hwcr-text-muted);
    line-height: 1;
}

/* ── Match Action Button ─────────────────────────────────────── */
.hwcr-match-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.hwcr-match-btn.hwcr-btn-buy {
    background: var(--hwcr-gold) !important;
    color: var(--hwcr-navy) !important;
}

.hwcr-match-btn.hwcr-btn-buy:hover {
    background: #ffd700 !important;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.hwcr-match-btn.hwcr-btn-view {
    background: rgba(245, 166, 35, 0.12) !important;
    color: var(--hwcr-gold) !important;
    border: 1px solid rgba(245, 166, 35, 0.2) !important;
}

.hwcr-match-btn.hwcr-btn-view:hover {
    background: rgba(245, 166, 35, 0.2) !important;
}

/* ── No Reports State ────────────────────────────────────────── */
.hwcr-no-reports {
    text-align: center;
    padding: 80px 20px;
    color: var(--hwcr-text-secondary);
}

.hwcr-no-reports-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.hwcr-no-reports p {
    font-size: 16px;
    margin: 0;
}

/* ── Telegram CTA ────────────────────────────────────────────── */
.hwcr-telegram-section {
    max-width: 800px;
    margin: 20px auto 60px;
    padding: 0 16px;
}

.hwcr-telegram-card {
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.1), rgba(42, 171, 238, 0.05));
    border: 1px solid rgba(42, 171, 238, 0.2);
    border-radius: var(--hwcr-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hwcr-telegram-card .hwcr-telegram-icon {
    width: 48px;
    height: 48px;
    background: #2AABEE;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hwcr-telegram-card .hwcr-telegram-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.hwcr-telegram-card .hwcr-telegram-text {
    flex-grow: 1;
}

.hwcr-telegram-card .hwcr-telegram-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hwcr-text-primary);
    margin-bottom: 2px;
}

.hwcr-telegram-card .hwcr-telegram-desc {
    font-size: 13px;
    color: var(--hwcr-text-secondary);
}

.hwcr-telegram-card .hwcr-telegram-join {
    background: #2AABEE !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease;
    border: none !important;
}

.hwcr-telegram-card .hwcr-telegram-join:hover {
    background: #1e96d0 !important;
}

/* ── Existing Dynamic Buttons (Single Product Page) ──────────── */
.wc-report-purchased-wrap .button {
    background-color: var(--hwcr-gold) !important;
    color: var(--hwcr-navy) !important;
    border-color: var(--hwcr-gold) !important;
    font-weight: 700 !important;
}

.wc-report-purchased-wrap .button:hover {
    background-color: #ffd700 !important;
    border-color: #ffd700 !important;
}

/* ── Account Tab Styling ─────────────────────────────────────── */
.woocommerce-MyAccount-navigation-link--world-cup-reports a {
    color: var(--hwcr-gold) !important;
    font-weight: bold;
}

.woocommerce-MyAccount-navigation-link--world-cup-reports.is-active a {
    background-color: var(--hwcr-navy) !important;
    color: #fff !important;
}

/* ── Telegram Button Shortcode (standalone) ──────────────────── */
.elite-telegram-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #2AABEE !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: background-color 0.2s ease;
    border: none !important;
}

.elite-telegram-btn:hover {
    background-color: #1e96d0 !important;
    color: #fff !important;
}

.elite-telegram-btn svg {
    margin: 0 8px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hwcr-hero {
        padding: 40px 16px 30px;
    }
    
    .hwcr-hero h1 {
        font-size: 30px !important;
    }
    
    .hwcr-stats-bar {
        gap: 24px;
    }
    
    .hwcr-stat-number {
        font-size: 22px;
    }
    
    .hwcr-matches-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .hwcr-match-card {
        padding: 12px;
        gap: 10px;
    }
    
    .hwcr-match-teams {
        font-size: 13px;
    }
    
    .hwcr-match-btn {
        font-size: 11px;
        padding: 7px 0;
    }
    
    .hwcr-telegram-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .hwcr-matches-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (min-width: 901px) {
    .hwcr-matches-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
}
