/* ============================================================
   MATCHWIRE PREMIUM STYLING – ESPN + Sky Sports inspired
   ============================================================ */

/* Import modern sports fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    /* ESPN-inspired dark palette */
    --mw-bg-primary: #0a0a0c;
    --mw-bg-secondary: #141418;
    --mw-bg-card: #1c1c22;
    --mw-bg-card-hover: #24242d;
    --mw-bg-nav: #0d0d11;
    --mw-border: #2a2a35;
    --mw-border-light: #3a3a48;
    
    /* Sky Sports-inspired accents */
    --mw-accent: #e30613;
    --mw-accent-hover: #c70510;
    --mw-accent-glow: rgba(227, 6, 19, 0.3);
    --mw-accent-soft: rgba(227, 6, 19, 0.1);
    --mw-blue: #0068ff;
    --mw-blue-hover: #0056d6;
    --mw-yellow: #ffc107;
    --mw-green: #00c853;
    --mw-live: #ff1744;
    
    /* Text */
    --mw-text-primary: #f5f5f7;
    --mw-text-secondary: #b0b0ba;
    --mw-text-muted: #6b6b78;
    
    /* Shadows & Effects */
    --mw-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --mw-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --mw-shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --mw-shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
    --mw-shadow-accent: 0 4px 16px rgba(227, 6, 19, 0.25);
    
    /* Transitions */
    --mw-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mw-transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --mw-radius-sm: 8px;
    --mw-radius: 12px;
    --mw-radius-lg: 16px;
    --mw-radius-xl: 20px;
}

/* ---- GLOBAL RESETS ---- */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--mw-bg-primary);
    color: var(--mw-text-primary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 1.85rem; font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

/* ---- NAVIGATION BAR ---- */
.matchwire-nav {
    background: linear-gradient(180deg, rgba(13,13,17,0.98) 0%, rgba(13,13,17,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--mw-border);
    box-shadow: var(--mw-shadow-md);
}

.matchwire-nav .nav-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--mw-radius-sm);
    transition: var(--mw-transition);
    position: relative;
}

.matchwire-nav .nav-link:hover {
    background: var(--mw-accent-soft);
    color: var(--mw-accent);
}

.matchwire-nav .nav-link.active {
    color: var(--mw-accent);
    background: var(--mw-accent-soft);
}

.matchwire-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--mw-accent);
    border-radius: 2px;
}

/* ---- CARDS (News, Predictions, Events, Products) ---- */
.mw-card {
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    overflow: hidden;
    transition: var(--mw-transition-slow);
    box-shadow: var(--mw-shadow-sm);
}

.mw-card:hover {
    border-color: var(--mw-border-light);
    box-shadow: var(--mw-shadow-lg);
    transform: translateY(-3px);
}

.mw-card .mw-card-image {
    position: relative;
    overflow: hidden;
}

.mw-card .mw-card-image img {
    transition: var(--mw-transition-slow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-card:hover .mw-card-image img {
    transform: scale(1.05);
}

.mw-card .mw-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--mw-accent);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.mw-card .mw-card-content {
    padding: 1.25rem;
}

.mw-card .mw-card-category {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mw-accent);
    margin-bottom: 0.5rem;
}

.mw-card .mw-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mw-text-primary);
    line-height: 1.3;
    transition: var(--mw-transition);
}

.mw-card:hover .mw-card-title {
    color: var(--mw-accent);
}

/* ---- HERO SECTION ---- */
.mw-hero {
    position: relative;
    background: linear-gradient(135deg, var(--mw-bg-secondary) 0%, var(--mw-bg-primary) 100%);
    border-bottom: 1px solid var(--mw-border);
}

.mw-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, var(--mw-accent-soft) 0%, transparent 60%);
    pointer-events: none;
}

.mw-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ---- BUTTONS ---- */
.mw-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--mw-radius-sm);
    transition: var(--mw-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.mw-btn-primary {
    background: linear-gradient(135deg, var(--mw-accent) 0%, #c70510 100%);
    color: white;
    box-shadow: var(--mw-shadow-accent);
}

.mw-btn-primary:hover {
    background: linear-gradient(135deg, #f40615 0%, var(--mw-accent) 100%);
    box-shadow: 0 6px 24px rgba(227, 6, 19, 0.4);
    transform: translateY(-1px);
}

.mw-btn-outline {
    background: transparent;
    border: 2px solid var(--mw-border-light);
    color: var(--mw-text-primary);
}

.mw-btn-outline:hover {
    border-color: var(--mw-accent);
    color: var(--mw-accent);
    background: var(--mw-accent-soft);
}

.mw-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

/* ---- LIVE BADGE ---- */
.mw-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mw-live);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 4px;
    animation: mw-pulse 2s infinite;
}

.mw-live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: mw-pulse-dot 1s infinite;
}

@keyframes mw-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes mw-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ---- FIXTURES TABLE ---- */
.mw-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mw-table th {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mw-text-muted);
    padding: 1rem;
    border-bottom: 2px solid var(--mw-border);
}

.mw-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--mw-border);
    transition: var(--mw-transition);
}

.mw-table tbody tr:hover td {
    background: var(--mw-bg-card-hover);
}

/* ---- ADMIN SIDEBAR ---- */
.mw-admin-sidebar {
    background: linear-gradient(180deg, #0d0d14 0%, #0a0a10 100%);
    border-right: 1px solid var(--mw-border);
}

.mw-admin-sidebar a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--mw-radius-sm);
    transition: var(--mw-transition);
    color: var(--mw-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mw-admin-sidebar a:hover {
    background: var(--mw-accent-soft);
    color: white;
}

.mw-admin-sidebar a.active {
    background: var(--mw-accent);
    color: white;
    font-weight: 600;
}

/* ---- SEARCH BAR ---- */
.mw-search-input {
    background: var(--mw-bg-secondary);
    border: 1px solid var(--mw-border);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    color: var(--mw-text-primary);
    font-size: 0.9rem;
    transition: var(--mw-transition);
    width: 100%;
    outline: none;
}

.mw-search-input:focus {
    border-color: var(--mw-accent);
    box-shadow: 0 0 0 3px var(--mw-accent-soft);
    width: 280px;
}

/* ---- PREDICTION CARDS ---- */
.mw-prediction-card {
    background: linear-gradient(135deg, var(--mw-bg-card) 0%, var(--mw-bg-secondary) 100%);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.mw-prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mw-yellow);
}

.mw-prediction-card .confidence-high {
    background: var(--mw-green);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---- EVENT CARDS ---- */
.mw-event-card {
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-lg);
    overflow: hidden;
    transition: var(--mw-transition-slow);
}

.mw-event-card:hover {
    border-color: var(--mw-blue);
    box-shadow: 0 8px 32px rgba(0, 104, 255, 0.15);
}

/* ---- SLIDER ---- */
.mw-slider {
    border-radius: var(--mw-radius-lg);
    overflow: hidden;
    box-shadow: var(--mw-shadow-xl);
}

.mw-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: var(--mw-transition);
}

.mw-slider-dot.active {
    background: var(--mw-accent);
    width: 28px;
    border-radius: 5px;
}

/* ---- COUNTDOWN ---- */
.mw-countdown {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--mw-yellow);
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* ---- NEWSLETTER ---- */
.mw-newsletter {
    background: linear-gradient(135deg, var(--mw-bg-card) 0%, var(--mw-bg-secondary) 100%);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.mw-newsletter::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: var(--mw-accent-soft);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- FOOTER ---- */
.mw-footer {
    background: var(--mw-bg-nav);
    border-top: 2px solid var(--mw-border);
    padding: 3rem 0;
}

.mw-footer a {
    color: var(--mw-text-secondary);
    transition: var(--mw-transition);
}

.mw-footer a:hover {
    color: var(--mw-accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .mw-hero-title {
        font-size: 2rem;
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    .mw-card .mw-card-title {
        font-size: 1rem;
    }
}