/*
Theme Name: ILIN Sports News
Theme URI: https://insoccernet.com/
Author: Dustin Fuller & ChatGPT
Author URI: https://insoccernet.com/
Description: A clean, modern sports news & magazine WordPress theme inspired by "The League" – built for scoreboards, schedules, highlights, and podcasts.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ilin-sports-news
Tags: news, magazine, sports, responsive, two-columns, right-sidebar
*/

/* Reset-ish */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f2f3f7;
    color: #111;
    line-height: 1.6;
}

a {
    color: #0b7ac3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.custom-logo {
    max-height: 56px;
    width: auto;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar */
.top-bar {
    background: #111827;
    color: #f9fafb;
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.top-bar-label {
    background: #10b981;
    color: #022c22;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.top-bar-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.top-bar-ticker span {
    margin-right: 24px;
}

.top-bar-menu {
    display: flex;
    gap: 12px;
}

.top-bar-menu a {
    color: #e5e7eb;
    font-weight: 500;
}

/* Header & branding */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #10b981;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0;
}

.site-branding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.site-description {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.header-ad {
    min-width: 300px;
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
}

/* Primary nav */
.main-nav {
    background: #111827;
}

.main-nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav .menu > li {
    position: relative;
}

.main-nav .menu > li > a {
    display: block;
    padding: 10px 14px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.main-nav .menu > li:hover > a {
    background: #0f172a;
    color: #ffffff;
}

.main-nav .sub-menu {
    list-style: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #020617;
    padding: 8px 0;
    margin: 0;
    display: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
    z-index: 100;
}

.main-nav .menu > li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu li a {
    display: block;
    padding: 8px 14px;
    color: #e5e7eb;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

.main-nav .sub-menu li a:hover {
    background: #0b1120;
}

.main-nav-search {
    margin-left: auto;
}

.main-nav-search form {
    display: flex;
    align-items: center;
}

.main-nav-search input[type="search"] {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 999px;
    padding: 4px 10px;
    color: #e5e7eb;
    font-size: 13px;
    min-width: 140px;
}

.main-nav-search input[type="submit"] {
    display: none;
}

/* Score strip / scoreboard */
.score-strip {
    background: #0f172a;
    color: #e5e7eb;
    font-size: 13px;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.score-strip-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.score-strip-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.score-pill {
    background: #020617;
    border-radius: 999px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    border: 1px solid #111827;
}

.score-pill-league {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6ee7b7;
}

.score-pill-match {
    font-weight: 600;
}

.score-pill-score {
    background: #10b981;
    color: #022c22;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.score-pill-status {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

/* Layout */
.site-main .container-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 320px);
    gap: 24px;
    margin-top: 18px;
    margin-bottom: 32px;
}

/* Featured area */
.featured-area {
    margin-bottom: 24px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
}

.section-label::before {
    content: "";
    width: 22px;
    height: 2px;
    background: #10b981;
    border-radius: 999px;
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 16px;
}

.featured-main {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-main-thumb {
    position: relative;
    overflow: hidden;
}

.featured-main-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-main:hover .featured-main-thumb img {
    transform: scale(1.04);
}

.featured-main-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #064e3b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.featured-main-title {
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
    font-weight: 800;
}

.post-meta {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.featured-main-excerpt {
    font-size: 14px;
    color: #4b5563;
    margin: 6px 0 0;
}

.featured-side-list {
    display: grid;
    gap: 10px;
}

.featured-side-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.featured-side-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-side-body h3 {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 700;
}

.featured-side-body .post-meta {
    font-size: 11px;
}

/* Article grid / listing */
.section-title {
    font-size: 18px;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-thumb img {
    height: 170px;
    width: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-card-title {
    font-size: 16px;
    margin: 0;
    font-weight: 700;
}

.post-card-excerpt {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
}

.post-card-footer {
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.pagination .page-numbers.current {
    background: #10b981;
    color: #022c22;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.widget-title {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 2px solid #10b981;
    padding-bottom: 4px;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* Single & page */
.single-header {
    margin-bottom: 12px;
}

.single-title {
    font-size: 30px;
    margin: 0 0 6px;
    font-weight: 800;
}

.single-meta {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}

.single-thumb {
    margin: 14px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.entry-content {
    font-size: 16px;
    color: #111827;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.2em;
}

/* Footer */
.site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 24px 0 18px;
    margin-top: 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.footer-bottom {
    border-top: 1px solid #111827;
    padding-top: 10px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-logo-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #e5e7eb;
}

/* Responsive */
@media (max-width: 960px) {
    .site-main .container-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-ad {
        display: none;
    }

    .featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .site-branding-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav .menu {
        flex-wrap: wrap;
    }
}
