:root {
    --nexus-cyan: #00f3ff;
    --nexus-magenta: #ff00ff;
    --nexus-bg: #050505;
    --nexus-card: rgba(10, 15, 20, 0.85);
    --nexus-border: rgba(0, 243, 255, 0.2);
    --nexus-glow: rgba(0, 243, 255, 0.4);
    --text-primary: #e0faff;
    --text-dim: #8b9ea3;
    --nav-height: 80px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-tech: 'Orbitron', 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background-color: var(--nexus-bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Digital Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Scanning Line Animation */
body::after {
    content: '';
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(180deg, transparent, rgba(0, 243, 255, 0.05), transparent);
    z-index: 1000;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    from {
        top: -100%;
    }

    to {
        top: 200%;
    }
}

/* Premium Top Navigation */
.spd-top-nav {
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--nexus-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    gap: 1.5rem;
    padding: 0 2rem;
}

.spd-top-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.spd-top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nexus-cyan);
    transition: 0.4s;
    transform: translateX(-50%);
}

.spd-top-nav a:hover,
.spd-top-nav a.active {
    color: var(--nexus-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.spd-top-nav a:hover::after,
.spd-top-nav a.active::after {
    width: 80%;
}

/* High-Tech Hero */
.spd-hero {
    height: 480px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    overflow: hidden;
    border-bottom: 1px solid var(--nexus-border);
}

.spd-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://screenplaydaily.com/assets/images/brand/tech-001.png') center/cover;
    opacity: 0.15;
    filter: grayscale(1) invert(1);
    animation: slowSpin 120s linear infinite;
    z-index: -1;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spd-hero-title {
    font-family: var(--font-tech);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -5px;
    background: linear-gradient(to bottom, #fff 30%, var(--nexus-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--nexus-glow));
    position: relative;
    z-index: 10;
}

.spd-hero-title::before {
    content: 'SILICA NEXUS';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    letter-spacing: 12px;
    color: var(--nexus-magenta);
    opacity: 0.8;
    font-weight: 700;
}

/* Layout Container */
.spd-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 5rem;
}

/* Post Cards Grid */
.spd-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3.5rem;
}

.spd-post-card {
    background: var(--nexus-card);
    border: 1px solid var(--nexus-border);
    border-radius: 0;
    /* Square edges for tech look */
    overflow: hidden;
    position: relative;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.spd-post-card.spd-visible {
    opacity: 1;
    transform: translateY(0);
}

.spd-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--nexus-cyan) 50%, transparent 52%);
    background-size: 300% 300%;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
    z-index: 2;
}

.spd-post-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--nexus-cyan);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.15), 0 0 20px rgba(0, 243, 255, 0.05);
}

.spd-post-card:hover::before {
    opacity: 0.1;
    background-position: 100% 100%;
}

.spd-post-thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.1);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.spd-post-card:hover .spd-post-thumbnail {
    filter: saturate(1.2) contrast(1.2);
    transform: scale(1.1);
}

.spd-post-meta {
    padding: 2.2rem;
}

.spd-post-timestamp {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--nexus-magenta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spd-comments-badge {
    background: rgba(255, 0, 255, 0.1);
    padding: 2px 10px;
    border: 1px solid var(--nexus-magenta);
    border-radius: 20px;
}

.spd-post-title {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.2rem;
    display: block;
    transition: 0.3s;
}

.spd-post-title:hover {
    color: var(--nexus-cyan);
    text-shadow: 0 0 10px var(--nexus-glow);
}

.spd-post-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spd-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

/* Futuristic Sidebar */
aside {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.spd-sidebar-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.spd-sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--nexus-cyan);
    box-shadow: 0 0 15px var(--nexus-glow);
}

.spd-sidebar-title {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.spd-sidebar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--nexus-border), transparent);
}

.spd-trending-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spd-trending-item:last-child {
    border: none;
}

.spd-trending-title {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.5rem;
}

.spd-trending-title:hover {
    color: var(--nexus-cyan);
}



.spd-ad-box {
    border: 1px dashed var(--nexus-border);
    transition: 0.4s;
    overflow: hidden;
}

.spd-ad-box.spd-collapsed {
    height: 50px;
}

.spd-ad-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Footer - Upgraded */
.voidFooterRealm {
    background: #000;
    padding: 8rem 2rem;
    border-top: 1px solid var(--nexus-border);
}

.nebulaFooterCore {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 3.5fr 1fr;
    gap: 6rem;
}

.lunarLogoHub img {
    width: 200px;
    filter: drop-shadow(0 0 10px var(--nexus-glow));
}

.astroNavCluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.astroNavCluster ul {
    list-style: none;
}

.astroNavCluster a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: block;
    margin-bottom: 1rem;
}

.astroNavCluster a:hover {
    color: var(--nexus-cyan);
    transform: translateX(10px);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .spd-container {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .nebulaFooterCore {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .astroNavCluster {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spd-top-nav {
        gap: 0.5rem;
        padding: 0 1rem;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .spd-top-nav a {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
        flex-shrink: 0;
    }

    .spd-hero-title {
        font-size: 4.5rem;
    }
}