/* ==========================================================================
   90+ FOOTBALL MAGAZINE - MAIN STYLESHEET
   ========================================================================== */

:root {
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-dark: #111625;
    --bg-dark-card: #1a2035;
    
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --accent-red: #e63946;
    --accent-red-hover: #c92a37;
    --accent-blue-soft: #e0f2fe;
    --accent-gold-soft: #fef3c7;

    --border-color: #e2e8f0;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --container-max: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* LAYOUT CONTAINERS */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding: 3.5rem 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    color: var(--bg-dark);
    font-weight: 700;
    line-height: 1.25;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    background-color: var(--accent-red);
    margin-top: 8px;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    margin: 8px auto 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    background-color: var(--bg-dark);
    color: #fff;
}

.badge-red {
    background-color: var(--accent-red);
    color: #fff;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.article-meta .category {
    color: var(--accent-red);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* NAVBAR */
.navbar {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.logo-accent {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    font-weight: 700;
}

/* HERO SECTION */
.hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.hero-slider-container {
    position: relative;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: 1px solid var(--border-color);
}

.hero-slider .slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slider .slide.active {
    display: grid;
    opacity: 1;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wrapper .badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
}

.hero-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.75rem 0 1rem 0;
}

.hero-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.25rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots .dot.active {
    background-color: var(--accent-red);
}

/* MAIN CONTENT & SIDEBAR */
.layout-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 2.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    height: 190px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .badge {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    font-size: 0.7rem;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.15rem;
    margin: 0.4rem 0 0.6rem 0;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.card-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.widget {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.widget-accent {
    background-color: var(--bg-dark);
    color: #ffffff;
    border: none;
}

.widget-accent .widget-title {
    color: #ffffff;
}

.widget-accent .widget-text {
    color: #cbd5e1;
    margin: 0.8rem 0 1.2rem 0;
}

.widget-accent .widget-link {
    color: var(--accent-red);
    font-weight: 700;
}

.quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 1rem;
    margin: 0.75rem 0;
}

cite {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* STORIES SECTION */
.stories-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.story-box {
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-red);
}

.story-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-red);
    display: block;
    margin-bottom: 0.5rem;
}

/* LEAGUES & MEGA MENU SYSTEM */
.leagues-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.league-pill-wrapper {
    position: relative;
}

.league-pill {
    background-color: var(--bg-card);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.league-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.league-pill:hover,
.league-pill-wrapper.is-open .league-pill {
    background-color: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
}

/* MEGA MENU POPUP BOXES */
.league-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    background-color: #111625;
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    z-index: 200;
    border: 1px solid #1e293b;
}

.league-mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #111625 transparent;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 1.5rem;
    text-align: left;
}

.mega-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.4rem;
}

.mega-list {
    list-style: none;
}

.mega-list li {
    margin-bottom: 0.5rem;
}

.mega-list a {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
}

.mega-list a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.top-clubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

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

.club-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.4rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.club-item:hover {
    background: rgba(230, 57, 70, 0.2);
}

.club-item img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.club-item span {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

/* EUROPE MEGA MENU & TABS */
.europe-mega-menu {
    width: 820px !important;
    left: auto !important;
    right: -40px !important;
    transform: none !important;
}

.europe-mega-menu::before {
    left: auto;
    right: 70px;
    transform: none;
}

.europe-container-flex {
    display: flex;
    gap: 1.5rem;
}

.europe-tabs-nav {
    width: 210px;
    flex-shrink: 0;
    border-right: 1px solid #1e293b;
    padding-right: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.euro-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.euro-tab-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.euro-tab-btn:hover,
.euro-tab-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
}

.europe-tabs-content {
    flex-grow: 1;
}

.euro-panel {
    display: none;
}

.euro-panel.active {
    display: block;
}

/* ABOUT & FOOTER */
.about-card {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a233a 100%);
    color: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.about-card h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.about-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-slogan {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem !important;
    color: var(--accent-red) !important;
    font-weight: 700;
}

.footer {
    background-color: #0b0e17;
    color: #94a3b8;
    padding: 3rem 0 2rem 0;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.8rem;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-card { grid-template-columns: 1fr; }
    .layout-grid { grid-template-columns: 1fr; }
}