/* FutbolRD Pro 2.0 - Elite Professional Sports Portal */

:root {
    --espn-red: #CC0000;
    --espn-black: #212121;
    --espn-gray-bg: #F5F5F7;
    --espn-border: #E2E8F0;
    --espn-blue: #0066CC;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    background-color: var(--espn-gray-bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

.font-outfit { font-family: 'Outfit', sans-serif; }

/* Layout Grid */
.pro-3-col-grid {
    display: grid;
    grid-template-columns: 240px 1fr 310px;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 15px;
}

@media (max-width: 1024px) {
    .pro-3-col-grid {
        grid-template-columns: 1fr;
    }
    .pro-left-sidebar { display: none; }
    .pro-right-sidebar { 
        order: 10; /* Move to bottom */
    }
}

@media (max-width: 768px) {
    .pro-3-col-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
    .pro-left-sidebar { display: none; }
    .hidden-mobile { display: none !important; }
}

/* Header & Ticker */
.espn-top-bar {
    background: #272829;
    border-bottom: 2px solid #CC0000;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-overlap {
    height: 85px !important; /* Slightly larger to emphasize overlap */
    position: relative;
    top: 10px;
    z-index: 1010;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.logo-overlap:hover {
    transform: scale(1.05);
}

.espn-score-ticker {
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 10px;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.espn-score-ticker::-webkit-scrollbar { display: none; }

.ticker-item {
    border-right: 1px solid #333;
    padding: 8px 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    transition: background 0.2s ease;
    gap: 2px;
}

.ticker-item:hover {
    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.ticker-team {
    display: flex;
    justify-content: space-between;
    width: 100px;
    font-size: 11px;
    line-height: 1.2;
}

.ticker-team.winner { 
    font-weight: 800;
    color: #4ADE80;
}

/* Components */
.espn-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--espn-border);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.espn-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.espn-card-title {
    padding: 12px 20px;
    border-bottom: 1px solid var(--espn-border);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--espn-black);
    background: linear-gradient(to bottom, #FAFAFA 0%, #FFFFFF 100%);
}

/* Left Nav */
.left-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.left-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--espn-blue);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.left-nav-item:hover {
    background: linear-gradient(90deg, #F0F4FF 0%, #FFFFFF 100%);
    padding-left: 18px;
}

.left-nav-item:hover::before {
    transform: scaleY(1);
}

.left-nav-item.active {
    font-weight: 700;
    color: var(--espn-blue);
    background: linear-gradient(90deg, #E8F0FF 0%, #F5F9FF 100%);
}

.left-nav-item.active::before {
    transform: scaleY(1);
}

/* Buttons */
.btn-espn {
    background: linear-gradient(135deg, var(--espn-blue) 0%, #0052A3 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,102,204,0.2);
    position: relative;
    overflow: hidden;
}

.btn-espn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-espn:hover::before {
    left: 100%;
}

.btn-espn:hover { 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.3);
}

/* Hero styles */
.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.1;
    color: var(--espn-black);
    padding: 20px;
    transition: color 0.3s ease;
}

.hero-headline:hover {
    color: var(--espn-blue);
}

.hero-description {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--espn-red) 0%, #A00000 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(204,0,0,0.2);
}

/* Utilities */
.text-red { color: var(--espn-red); }
.border-red-t { 
    border-top: 3px solid var(--espn-red);
    box-shadow: inset 0 3px 0 rgba(204,0,0,0.1);
}

/* News List */
.headline-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--espn-border);
    text-decoration: none;
    color: var(--text-main);
    display: block;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.headline-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--espn-blue);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.headline-list-item:hover {
    color: var(--espn-blue);
    background: linear-gradient(90deg, #F8FBFF 0%, #FFFFFF 100%);
    padding-left: 24px;
}

.headline-list-item:hover::before {
    transform: scaleX(1);
}

.headline-list-item:last-child { border-bottom: none; }

/* Match Card Enhanced */
.match-card {
    padding: 20px;
    border-bottom: 1px solid #EEE;
    border-right: 1px solid #EEE;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.match-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--espn-blue) 0%, transparent 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.match-card:hover {
    background: linear-gradient(135deg, #FAFBFF 0%, #FFFFFF 100%);
    box-shadow: inset 0 0 0 1px var(--espn-blue);
}

.match-card:hover::after {
    transform: scaleX(1);
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--espn-red);
    text-transform: uppercase;
}

.live-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--espn-red);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Image Overlay Effects */
.image-overlay-wrapper {
    position: relative;
    overflow: hidden;
}

.image-overlay-wrapper img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-overlay-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay-wrapper:hover::after {
    opacity: 1;
}

/* Stats Module */
.stats-module {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--espn-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.stat-item {
    background: white;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--espn-blue);
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* Global Image Constraints - Prevent Overflow */
.espn-card img,
.pro-center-content img {
    max-width: 100%;
    height: auto;
}

/* Ensure content images never overflow */
img {
    max-width: 100%;
    height: auto;
}
