/* Football Hub Theme — Ignite Edition */

:root {
    --green:       #16a34a;
    --green-bright:#22c55e;
    --green-glow:  rgba(34,197,94,0.18);
    --green-dim:   rgba(22,163,74,0.12);
    --black:       #080808;
    --surface:     #111111;
    --card:        #181818;
    --border:      #252525;
    --border-lit:  #2e2e2e;
    --white:       #ffffff;
    --gray-hi:     #cccccc;
    --gray-mid:    #888888;
    --gray-lo:     #444444;
    --live:        #ef4444;
    --yellow:      #facc15;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

[x-cloak] { display: none !important; }

/* ══════════════════════════════════
   LAYOUT
══════════════════════════════════ */
.fh-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ══════════════════════════════════
   SECTION HEADER
══════════════════════════════════ */
.sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.sec-head::before {
    content: '';
    display: block;
    width: 3px;
    height: 20px;
    background: var(--green-bright);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--green-bright);
    flex-shrink: 0;
}
.sec-head span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-bright);
}

/* ══════════════════════════════════
   LIVE BADGE
══════════════════════════════════ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--live);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px 2px 6px;
    border-radius: 3px;
    line-height: 1.6;
}
.live-badge::before {
    content: '';
    width: 5px; height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* ══════════════════════════════════
   CATEGORY BADGE
══════════════════════════════════ */
.cat-badge {
    display: inline-block;
    padding: 2px 9px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 3px;
    background: var(--green);
    color: #fff;
}

/* ══════════════════════════════════
   HERO CARD
══════════════════════════════════ */
.hero-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: var(--card);
}
.hero-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.hero-card:hover img { transform: scale(1.04); }
.hero-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.45) 45%,
        transparent 100%);
}
/* neon-green border on hover */
.hero-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 10px;
    border: 1.5px solid transparent;
    transition: border-color 0.3s;
    pointer-events: none;
}
.hero-card:hover::after { border-color: var(--green); }

.hero-card-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 18px;
}
.hero-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.22;
    color: #fff;
    margin-top: 7px;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
    transition: color .2s;
}
.hero-card:hover .hero-card-title { color: var(--green-bright); }

/* small variant */
.hero-card-sm .hero-card-title { font-size: 0.92rem; margin-top: 5px; }

/* ══════════════════════════════════
   ARTICLE ROW
══════════════════════════════════ */
.article-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: background .15s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: rgba(255,255,255,.02); border-radius: 6px; }

.article-row-img {
    width: 96px; height: 64px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--surface);
}
.article-row-content { flex: 1; min-width: 0; }
.article-row-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gray-hi);
    display: block;
    transition: color .2s;
}
.article-row:hover .article-row-title,
.article-row-title:hover { color: var(--green-bright); }
.article-row-meta { font-size: 0.72rem; color: var(--gray-lo); margin-top: 4px; }

/* ══════════════════════════════════
   FH CARD
══════════════════════════════════ */
.fh-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.fh-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px var(--green-dim);
}
.fh-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fh-card-body { padding: 14px; }
.fh-card-title {
    font-size: 0.92rem; font-weight: 700; line-height: 1.35; color: var(--gray-hi);
    transition: color .2s;
}
.fh-card:hover .fh-card-title { color: var(--green-bright); }
.fh-card-meta { font-size: 0.72rem; color: var(--gray-mid); margin-top: 6px; }

/* ══════════════════════════════════
   SIDEBAR BLOCK
══════════════════════════════════ */
.sidebar-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}
.sidebar-block-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-bright);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 9px 22px;
    background: var(--green);
    color: #fff;
    font-weight: 700; font-size: 0.83rem;
    border-radius: 6px; border: none; cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 0 0 0 var(--green-glow);
}
.btn-primary:hover {
    background: var(--green-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--green-glow);
}
.btn-outline {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 8px 20px;
    background: transparent;
    color: var(--gray-hi);
    font-weight: 700; font-size: 0.83rem;
    border-radius: 6px;
    border: 1px solid var(--border-lit);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green-bright); }

/* ══════════════════════════════════
   FORMS
══════════════════════════════════ */
.fh-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-lit);
    border-radius: 6px;
    padding: 10px 13px;
    color: var(--white);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.fh-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}
.fh-input::placeholder { color: var(--gray-lo); }
.fh-input:disabled { opacity: .4; cursor: not-allowed; }

.fh-label {
    display: block;
    font-size: 0.78rem; font-weight: 600;
    color: var(--gray-mid); margin-bottom: 5px;
}

.fh-textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-lit);
    border-radius: 6px;
    padding: 10px 13px;
    color: var(--white);
    font-size: 0.88rem; font-family: inherit;
    resize: vertical; min-height: 110px;
    transition: border-color .2s, box-shadow .2s;
}
.fh-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}
.fh-textarea::placeholder { color: var(--gray-lo); }

/* ══════════════════════════════════
   ALERTS
══════════════════════════════════ */
.alert { padding: 11px 14px; border-radius: 6px; font-size: 0.85rem; }
.alert-success { background: rgba(22,163,74,.15); border: 1px solid rgba(22,163,74,.4); color: #86efac; }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.alert-warning { background: rgba(250,204,21,.1);  border: 1px solid rgba(250,204,21,.3); color: #fde047; }

/* ══════════════════════════════════
   ARTICLE CONTENT
══════════════════════════════════ */
.article-content {
    color: #d0d0d0;
    font-size: 1.05rem;
    line-height: 1.82;
}
.article-content h2 { font-size:1.45rem; margin:2.2em 0 .8em; color:#fff; }
.article-content h3 { font-size:1.15rem; margin:1.8em 0 .6em; color:#eee; }
.article-content p  { margin-bottom:1.4em; }
.article-content a  { color: var(--green-bright); text-decoration: underline; }
.article-content blockquote {
    border-left: 3px solid var(--green);
    padding: 12px 18px;
    background: var(--surface);
    border-radius: 0 6px 6px 0;
    margin: 1.5em 0;
    font-style: italic;
    color: #aaa;
}
.article-content ul, .article-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.article-content li { margin-bottom: .35em; }
.article-content img { border-radius: 8px; margin: 1em 0; }

/* ══════════════════════════════════
   FAVORITE BUTTON
══════════════════════════════════ */
.fav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--border-lit);
    border-radius: 100px;
    background: transparent; color: var(--gray-mid);
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.fav-btn:hover   { border-color: var(--green); color: var(--green-bright); }
.fav-btn.saved   { background: var(--green); border-color: var(--green); color: #fff; }

/* ══════════════════════════════════
   COMMENTS
══════════════════════════════════ */
.comment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 6px;
    padding: 13px 15px;
    margin-bottom: 10px;
}

/* ══════════════════════════════════
   PAGINATION
══════════════════════════════════ */
nav.pagination, .pagination {
    display: flex; gap: 5px; flex-wrap: wrap;
}
nav[role=navigation] { margin-top: 0; }

/* Laravel's default pagination wrapper */
nav[role=navigation] > div:first-child { display: none; }
nav[role=navigation] > div:last-child {
    display: flex; gap: 5px; flex-wrap: wrap;
}
nav[role=navigation] span,
nav[role=navigation] a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    border-radius: 5px; font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--border-lit);
    background: var(--card); color: var(--gray-lo);
    transition: all .2s;
}
nav[role=navigation] a:hover       { border-color: var(--green); color: var(--green-bright); }
nav[role=navigation] span[aria-current] {
    background: var(--green); border-color: var(--green); color: #fff;
}
nav[role=navigation] span.cursor-default { opacity: .35; }

/* ══════════════════════════════════
   LOAD MORE
══════════════════════════════════ */
.load-more-btn {
    display: block; width: 100%;
    padding: 13px;
    background: var(--card);
    border: 1px solid var(--border-lit);
    border-radius: 8px;
    color: var(--gray-mid);
    font-weight: 700; font-size: 0.83rem; font-family: inherit;
    text-align: center; cursor: pointer;
    transition: border-color .2s, color .2s;
    margin-top: 20px;
}
.load-more-btn:hover { border-color: var(--green); color: var(--green-bright); }
.load-more-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ══════════════════════════════════
   UTILITY
══════════════════════════════════ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════
   GRID HELPERS
══════════════════════════════════ */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:900px) {
    .grid-3 { grid-template-columns:repeat(2,1fr); }
    .grid-4 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
    .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
}

/* ══════════════════════════════════
   PITCH STRIPE  (footer top accent)
══════════════════════════════════ */
.pitch-stripe {
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--green) 0, var(--green) 18px,
        transparent 18px, transparent 26px
    );
}

/* ══════════════════════════════════
   FIRE / GLOW DECORATION
══════════════════════════════════ */
.glow-dot {
    width: 6px; height: 6px;
    background: var(--green-bright);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-bright), 0 0 14px var(--green-bright);
    display: inline-block;
    animation: blink 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════
   HERO SECTION GLOW BG
══════════════════════════════════ */
.hero-glow {
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(22,163,74,.18) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════
   SIDEBAR LIVE TICKER (vertical scroll)
══════════════════════════════════ */
.sidebar-ticker {
    height: 280px;
    overflow: hidden;
    position: relative;
}
.sidebar-ticker-inner {
    display: flex;
    flex-direction: column;
    animation: sidebar-scroll 20s linear infinite;
}
.sidebar-ticker:hover .sidebar-ticker-inner { animation-play-state: paused; }
.sidebar-ticker-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-hi);
    line-height: 1.35;
    transition: color .2s;
    flex-shrink: 0;
}
.sidebar-ticker-item:hover { color: var(--green-bright); }
.sidebar-ticker-dot {
    width: 5px; height: 5px;
    background: var(--green-bright);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 5px var(--green-bright);
}
@keyframes sidebar-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ══════════════════════════════════
   CATEGORY HERO GRADIENT
══════════════════════════════════ */
.cat-hero {
    background: linear-gradient(135deg, #0a2e18 0%, #111 100%);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}
.cat-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(22,163,74,.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ══════════════════════════════════
   ARTICLE PAGE HEADER
══════════════════════════════════ */
.article-hero-bg {
    background: linear-gradient(to bottom, #0a1f10 0%, var(--black) 100%);
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
}

/* ══════════════════════════════════
   LIVE SCORES PANEL
══════════════════════════════════ */
.ls-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: 310px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
}
.ls-section-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-lo);
    padding: 8px 14px 4px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid var(--border);
}
.ls-row {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.ls-row:last-child { border-bottom: none; }
.ls-row:hover { background: rgba(255,255,255,.03); }
.ls-row--live { border-left: 2px solid var(--live); }
.ls-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}
.ls-team {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-hi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-team--away { text-align: right; }
.ls-team--winner { color: var(--green-bright); }
.ls-score {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    background: rgba(255,255,255,.05);
    padding: 2px 7px;
    border-radius: 4px;
    min-width: 48px;
}
.ls-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.65rem;
    color: var(--gray-lo);
}
.ls-pulse {
    width: 5px; height: 5px;
    background: var(--live);
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 1s ease-in-out infinite;
}
.ls-status {
    font-weight: 700;
    color: var(--gray-mid);
}
.ls-league { margin-left: auto; }
.ls-empty {
    padding: 32px 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-lo);
}
