/*
Theme Name: DGM Basketball Hub
Author: PBN Creative
Description: High-octane analytical portal for basketball. NBA coverage, expert breakdowns, and deep statistics in a modern "Urban Night" aesthetic.
Version: 1.2.1
*/

:root {
    /* Basketball Arena & Urban Palette */
    --primary: #FF6B00;        /* Electric Orange (NBA-inspired) */
    --secondary: #121212;      /* Night Court Black (Main Background) */
    --accent: #2D2D2D;         /* Slate Grey (Surface Element) */
    --bg-light: #1A1A1B;       /* Secondary Background */
    --white: #FFFFFF;
    --text-main: #E2E8F0;      /* Soft White/Grey for Readability */
    --text-muted: #94A3B8;
    --border: #334155;
    
    --container-width: 1200px;
    --content-width: 900px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--secondary);
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 80px;
}

h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.1; color: var(--white); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.1; color: var(--white); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; color: var(--white); letter-spacing: -0.02em; }
h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; color: var(--white); }

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Modern & Tech-y */
.site-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
    padding: 0.1rem 0.5rem;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 4px;
}

.main-nav ul {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--white);
}

/* Hero */
.hero-basketball {
    background: radial-gradient(circle at 70% 50%, rgba(255, 107, 0, 0.15), transparent);
    padding: clamp(4rem, 10vw, 10rem) 0;
    margin-bottom: clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--primary);
    opacity: 0.2;
    z-index: -1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat-item {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.hero-stat-item.active {
    border-color: var(--primary);
}

.hero-stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--white);
    font-family: 'Space Grotesk';
}

.hero-stat-item.active strong {
    color: var(--primary);
}

.hero-stat-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    z-index: -1;
    border-radius: 8px;
}

/* Features */
.bball-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: clamp(4rem, 10vw, 8rem);
}

.f-card {
    background: var(--bg-light);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.f-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.05);
}

.f-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.f-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.f-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Performance Lab */
.lab-section {
    background: var(--bg-light);
    padding: clamp(3rem, 8vw, 6rem);
    margin-bottom: clamp(4rem, 12vw, 9rem);
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.lab-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 107, 0, 0.02) 40px, rgba(255, 107, 0, 0.02) 80px);
    pointer-events: none;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.lab-bg-text {
    position: absolute;
    right: -50px;
    top: -50px;
    font-size: clamp(10rem, 25vw, 30rem);
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    opacity: 0.05;
    pointer-events: none;
    line-height: 1;
}

.lab-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    line-height: 1.8;
}

.lab-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.lab-stat-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.lab-stat-item strong {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    font-family: 'Space Grotesk';
}

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

.lab-ball-wrap {
    width: clamp(150px, 30vw, 250px);
    height: clamp(150px, 30vw, 250px);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 10vw, 8rem);
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.2);
}

/* Post Grid */
.grid-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.grid-header h2 {
    text-transform: uppercase;
}

.view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.bball-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: clamp(4rem, 10vw, 8rem);
}

.post-card-bball {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card-bball:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.post-card-bball .thumb {
    height: 240px;
    position: relative;
    overflow: hidden;
}

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

.post-card-bball .cat {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.post-card-bball .content {
    padding: 2rem;
    flex-grow: 1;
}

.post-card-bball h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-card-bball .btn {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Draft Board */
.draft-section {
    background: #000000;
    padding: clamp(3rem, 10vw, 7rem);
    border-radius: 12px;
    margin-bottom: clamp(4rem, 12vw, 9rem);
    position: relative;
    border: 1px solid var(--primary);
}

.draft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

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

.draft-icon-wrap {
    display: inline-block;
    padding: clamp(1rem, 4vw, 2rem);
    background: var(--bg-light);
    border-radius: 50%;
    border: 2px dashed var(--primary);
}

.draft-icon-wrap div {
    font-size: clamp(3rem, 8vw, 6rem);
}

.draft-info-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.draft-info-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    flex: 1;
    min-width: 200px;
    border-left: 4px solid var(--primary);
}

.draft-info-box strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.draft-info-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Single Post */
.post-main-bball {
    max-width: var(--content-width);
    margin: clamp(3rem, 8vw, 6rem) auto;
    background: var(--bg-light);
    padding: clamp(2rem, 6vw, 6rem);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.post-header-bball {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.post-meta-bball {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.post-body-bball {
    font-size: 1.15rem;
}

.post-body-bball p {
    margin-bottom: 2.5rem;
}

.post-body-bball h2, .post-body-bball h3 {
    margin-top: clamp(3rem, 8vw, 5rem);
    margin-bottom: 2.5rem;
    color: var(--white);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.post-thumbnail-wrap {
    margin-bottom: clamp(3rem, 8vw, 6rem);
    border-left: 8px solid var(--primary);
}

.post-thumbnail-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Bball Lists */
.post-body-bball ul {
    list-style: none;
    margin: 4rem 0;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: var(--secondary);
    border-radius: 12px;
    border-left: 6px solid var(--primary);
}

.post-body-bball li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.post-body-bball li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Footer - Dark & Heavy */
.site-footer {
    background: #000000;
    color: var(--white);
    padding: clamp(4rem, 10vw, 8rem) 0 4rem;
    border-top: 4px solid var(--primary);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(3rem, 8vw, 8rem);
    margin-bottom: 6rem;
}

.footer-logo {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3.5rem;
    font-size: 1.15rem;
    max-width: 550px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Archive & Categories */
.archive-hero {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-light);
}

.archive-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: block;
}

.archive-grid {
    margin-top: clamp(4rem, 10vw, 8rem);
}

.no-posts-msg {
    padding: 10rem 0;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk';
    grid-column: 1 / -1;
}
.pagi-wrap {
    display: flex;
    justify-content: center;
    margin: 6rem 0;
}

.pagi-list {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.pagi-list a, .pagi-list span {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    border-radius: 6px;
}

.pagi-list .is-active, .pagi-list a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 404 */
.error-404-wrap {
    text-align: center;
    padding: clamp(5rem, 15vw, 15rem) 0;
}

.error-404-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 2rem 0;
    text-transform: uppercase;
    font-family: 'Space Grotesk';
}

.error-404-text {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1.8rem 5rem;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Space Grotesk';
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary);
        padding: 2rem;
        border-bottom: 2px solid var(--primary);
    }
    .main-nav ul { flex-direction: column; gap: 1.5rem; }
    
    .hero-stats { flex-direction: column; }
    .hero-stat-item { text-align: center; }

    .lab-stats { grid-template-columns: 1fr; gap: 2rem; }
    .lab-visual { order: -1; }
    
    .draft-visual { order: -1; }

    .footer-inner { text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
}
