/* ============================================================
   INDEX.CSS — Page-specific styles for index.html (Sportstify Home)
   ============================================================ */

/* ============ SECTION TITLES ============ */
.section-title {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-header .section-title { margin-bottom: 0; }
.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}
.view-all:hover { text-decoration: underline; }

/* ============ HERO SLIDER ============ */
.hero {
    position: relative;
    height: 530px;
    overflow: hidden;
    background: var(--primary);
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: flex-end;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.1) 100%);
}
.slide-content {
    position: relative;
    z-index: 1;
    padding: 40px 60px 50px;
    max-width: 680px;
}
.slide-content .badge { margin-bottom: 14px; }
.slide-content h1 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.slide-content p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 520px;
}
.slide-meta {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.slide-meta span { display: flex; align-items: center; gap: 6px; }
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all var(--transition);
    cursor: pointer;
}
.hero-dots span.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px 24px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 26px; color: var(--accent); }
.stat-num {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ============ MAIN LAYOUT ============ */
.main-wrap {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 16px;
}
.main-layout {
    display: grid;
    grid-template-columns: 270px 1fr 300px;
    gap: 20px;
    padding: 28px 0;
    align-items: start;
}

/* ============ LEFT SIDEBAR ============ */
.sidebar-left { display: flex; flex-direction: column; gap: 18px; }
.sidebar-widget {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--accent);
}

.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}
.category-item:hover { background: var(--surface2); }
.cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #fff;
}
.cat-count {
    background: var(--surface2);
    color: var(--text2);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.view-all-cats {
    margin-top: 10px;
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    padding: 9px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.view-all-cats:hover { background: var(--surface2); }

.newsletter-box { background: linear-gradient(135deg, var(--primary), #1e3a5f); }
.newsletter-box .widget-title { color: #fff; border-color: var(--accent); }
.newsletter-box p { font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 12px; line-height: 1.5; }

.nl-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 12px;
    margin-bottom: 8px;
    outline: none;
    transition: border var(--transition);
}
.nl-input::placeholder { color: rgba(255,255,255,0.5); }
.nl-input:focus { border-color: var(--accent); }
.nl-btn {
    width: 100%;
    padding: 9px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all var(--transition);
}
.nl-btn:hover { background: #c7152a; }
.nl-note { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 7px; text-align: center; }

.social-list { display: flex; flex-direction: column; gap: 7px; }
.social-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: opacity var(--transition);
    gap: 8px;
}
.social-item i { font-size: 14px; }
.social-item:hover { opacity: 0.9; }
.social-item.fb  { background: #1877f2; }
.social-item.tw  { background: #000; }
.social-item.ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-item.yt  { background: #ff0000; }
.social-followers { font-size: 12px; font-weight: 700; opacity: 0.9; margin-left: auto; }

.ad-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    text-align: center;
    padding: 22px 14px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.ad-banner::before {
    content: "AD";
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    opacity: 0.4;
    letter-spacing: 2px;
}
.ad-banner h3 {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}
.ad-banner p { font-size: 12px; opacity: 0.8; margin-bottom: 14px; }
.ad-img {
    width: 70px;
    height: 70px;
    margin: 10px auto;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: var(--gold);
}
.ad-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}
.ad-btn:hover { background: #c7152a; }

/* ============ CENTER ============ */
.center-content { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.featured-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.featured-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    height: 420px;
}
.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-main:hover img { transform: scale(1.04); }
.featured-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.featured-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px;
}
.featured-main-content h3 {
    font-family: "Oswald", sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 8px 0 6px;
}
.featured-main-content p { font-size: 13px; color: rgba(255,255,255,0.75); }
.featured-main-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.featured-main-meta span { display: flex; align-items: center; gap: 4px; }

.featured-small-col { display: flex; flex-direction: column; gap: 14px; }
.featured-small {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    flex: 1;
}
.featured-small:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.featured-small-img {
    width: 130px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.featured-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-small:hover .featured-small-img img { transform: scale(1.07); }
.featured-small-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.featured-small-body h4 {
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.featured-small-body .meta { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.featured-small-body p { font-size: 12px; color: var(--text2); line-height: 1.45; }

.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.blog-card { cursor: pointer; }
.blog-card-img { height: 180px; }
.blog-card-body { padding: 14px; }
.blog-card-body .badge { margin-bottom: 8px; }
.blog-card-body h4 {
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 8px;
}
.blog-card-body .meta { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 6px; }

.trending-list { display: flex; flex-direction: column; gap: 10px; }
.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.trending-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.trending-num {
    font-family: "Oswald", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--border);
    min-width: 32px;
    line-height: 1;
}
.trending-item:nth-child(1) .trending-num { color: var(--accent); }
.trending-item:nth-child(2) .trending-num { color: var(--accent2); }
.trending-item:nth-child(3) .trending-num { color: var(--gold); }
.trending-img { width: 72px; height: 58px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.trending-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.trending-item:hover .trending-img img { transform: scale(1.1); }
.trending-body h5 { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 4px; }
.trending-body .meta { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }

.two-col-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.editors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-card { cursor: pointer; }
.editor-card-img { height: 140px; }
.editor-card-body { padding: 12px; }
.editor-card-body h4 { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; margin: 6px 0; }
.editor-card-body .meta { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }

/* ============ RIGHT SIDEBAR ============ */
.sidebar-right { display: flex; flex-direction: column; gap: 18px; }

.live-widget { display: flex; flex-direction: column; gap: 10px; }
.live-match {
    background: var(--surface2);
    border-radius: var(--radius-sm);
    padding: 13px;
    transition: all var(--transition);
    cursor: pointer;
}
.live-match:hover { background: var(--border); }
.match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.league-name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text2); }
.match-time { font-size: 11px; color: var(--text3); }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team { text-align: center; flex: 1; }
.team-logo { font-size: 26px; margin-bottom: 4px; }
.team-name { font-size: 12px; font-weight: 700; color: var(--text); }
.match-score {
    font-family: "Oswald", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    min-width: 65px;
    text-align: center;
}
.match-score span { display: block; font-size: 10px; font-weight: 400; color: var(--text3); font-family: "DM Sans", sans-serif; }

.trending-sidebar { display: flex; flex-direction: column; gap: 9px; }
.trending-sid-item {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    cursor: pointer;
    padding: 7px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.trending-sid-item:hover { background: var(--surface2); }
.trend-sid-num {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--border);
    min-width: 26px;
    line-height: 1;
}
.trend-sid-num.t1 { color: var(--accent); }
.trend-sid-num.t2 { color: var(--accent2); }
.trend-sid-num.t3 { color: var(--gold); }
.trend-sid-img { width: 56px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.trend-sid-img img { width: 100%; height: 100%; object-fit: cover; }
.trend-sid-body h5 { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; }
.trend-sid-body .meta { font-size: 10px; color: var(--text3); margin-top: 3px; }

.sidebar-ad-box {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}
.sidebar-ad-box::before { content: "AD"; display: block; font-size: 9px; opacity: 0.4; letter-spacing: 2px; margin-bottom: 8px; }
.sidebar-ad-box h3 { font-family: "Oswald", sans-serif; font-size: 17px; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.sidebar-ad-box p { font-size: 12px; opacity: 0.8; margin: 5px 0 12px; }
.app-features { text-align: left; margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
.app-features li { font-size: 12px; display: flex; align-items: center; gap: 6px; opacity: 0.85; }
.app-features li i { color: #4ade80; font-size: 11px; }
.app-rating { font-size: 12px; opacity: 0.7; margin-bottom: 10px; }
.download-btn {
    display: block;
    padding: 9px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}
.download-btn:hover { background: #c7152a; }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
    padding: 4px 11px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: all var(--transition);
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.sid-nl { background: linear-gradient(135deg, #0a0f1e, #1a3a5c); }
.sid-nl .widget-title { color: #fff; }
.sid-nl p { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 10px; }

/* ============ RESPONSIVE — INDEX SPECIFIC ============ */
@media (max-width: 1400px) {
    .main-layout { grid-template-columns: 250px 1fr 280px; }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-left, .sidebar-right { display: none; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero { height: 420px; }
    .slide-content { padding: 28px 22px 38px; }
    .stats-inner { display: grid; grid-template-columns: 1fr 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-main { height: 280px; }
    .two-col-row { grid-template-columns: 1fr; }
    .editors-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero { height: 340px; }
    .slide-content h1 { font-size: 21px; }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-inner { display: grid; grid-template-columns: 1fr; }
    .stat-item { border-right: none; }
    .slide-btns { gap: 8px; }
}