:root {
    --retro-cyan: #00f3ff;
    --retro-magenta: #ff00ff;
    --retro-amber: #ffb000;
    --bg-deep: #050507;
    --bg-card: #0c0c12;
    --text-main: #e0e0e5;
    --text-dim: #888895;
    --glow: 0 0 15px rgba(0, 243, 255, 0.3);
    --border: rgba(255, 255, 255, 0.05);
}

@font-face {
    font-family: 'RetroPixels';
    src: local('Courier New'), local('Monaco');
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scanline Overlay Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
}

/* Top Nav - Retro Glass */
.spd-top-nav {
    height: 70px;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--retro-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1.2rem;
    padding: 0 2rem;
}

.spd-top-nav a {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    transition: 0.3s;
    text-decoration: none;
}

.spd-top-nav a:hover,
.spd-top-nav a.active {
    color: var(--retro-cyan);
    text-shadow: var(--glow);
}

/* Hero - CRT Terminal Style */
.spd-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.spd-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.spd-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.spd-hero-tag {
    font-family: 'RetroPixels', monospace;
    color: var(--retro-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.spd-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 3px 3px 0px var(--retro-magenta), -3px -3px 0px var(--retro-cyan);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 3px 3px 0px var(--retro-magenta), -3px -3px 0px var(--retro-cyan);
    }

    5% {
        text-shadow: -3px 3px 0px var(--retro-magenta), 3px -3px 0px var(--retro-cyan);
    }

    10% {
        text-shadow: 3px -3px 0px var(--retro-magenta), -3px 3px 0px var(--retro-cyan);
    }

    15% {
        text-shadow: 0 0 10px var(--retro-cyan);
    }

    100% {
        text-shadow: 3px 3px 0px var(--retro-magenta), -3px -3px 0px var(--retro-cyan);
    }
}

.spd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
}

/* Unique Horizontal List - "Tape Archive" Aesthetic */
.spd-posts-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.spd-post-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--retro-cyan);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(-40px);
}

.spd-post-item:nth-child(even) {
    border-left: 4px solid var(--retro-magenta);
}

.spd-post-item.spd-visible {
    opacity: 1;
    transform: translateX(0);
}

.spd-post-item:hover {
    transform: scale(1.02) translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.6);
}

.spd-post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(0.2) contrast(1.1);
    transition: 0.5s;
}

.spd-post-item:hover img {
    filter: grayscale(0) contrast(1.2);
}

.spd-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spd-post-timestamp {
    font-family: 'RetroPixels', monospace;
    font-size: 0.8rem;
    color: var(--retro-cyan);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.spd-comments-badge {
    background: rgba(0, 243, 255, 0.1);
    color: var(--retro-cyan);
    padding: 2px 8px;
    border: 1px solid var(--retro-cyan);
    font-size: 0.75rem;
    border-radius: 2px;
}

.spd-post-title a {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: block;
}

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

.spd-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--retro-cyan);
    font-weight: 700;
    text-transform: uppercase;
}

/* Sidebar Modernization for Retro */
aside {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.spd-sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.8rem;
    border-radius: 4px;
}

.spd-sidebar-title {
    font-family: 'RetroPixels', monospace;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--retro-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spd-sidebar-title::before {
    content: ">";
}

.spd-trending-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed var(--border);
}

.spd-trending-title {
    color: #eee;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.spd-trending-title:hover {
    color: var(--retro-magenta);
}

.spd-trending-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Event Carousel Styles */
.spd-events-carousel {
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.spd-events-track {
    display: flex;
    height: 100%;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.spd-event-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.spd-event-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: 0.5s;
}

.spd-event-info {
    position: absolute;
    bottom: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    width: 100%;
    box-sizing: border-box;
}

.spd-event-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 5px;
}

.spd-event-date {
    color: var(--retro-cyan);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spd-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid var(--border);
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.spd-carousel-nav:hover {
    background: var(--retro-cyan);
    color: #000;
}

.spd-prev {
    left: 10px;
}

.spd-next {
    right: 10px;
}

.spd-youtube-video {
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--border);
}

.spd-youtube-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

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

.spd-ad-header {
    background: #15151a;
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .spd-post-item {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .spd-post-item img {
        height: 200px;
    }

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

    .stellarSocialIcons {
        justify-content: center;
    }

    .lunarLogoHub p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .spd-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .spd-top-nav {
        display: none;
    }

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

/* Retro Footer Styles */
.voidFooterRealm {
    background: #000;
    padding: 6rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 6rem;
    position: relative;
}

.nebulaFooterCore {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 4rem;
}

.lunarLogoHub img {
    width: 180px;
    margin-bottom: 2rem;
}

.lunarLogoHub p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.8;
}

.astroNavCluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
}

.astroNavCluster ul {
    list-style: none;
}

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

.astroNavCluster a:hover {
    color: var(--retro-cyan);
    transform: translateX(5px);
    text-shadow: var(--glow);
}

.cosmicSocialSphere h3 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    letter-spacing: 2px;
    font-family: 'RetroPixels', monospace;
}

.stellarSocialIcons {
    display: flex;
    gap: 15px;
}

.stellarSocialIcons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #fff;
    transition: 0.3s;
}

.stellarSocialIcons a:hover {
    background: var(--retro-magenta);
    border-color: var(--retro-magenta);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

.stellarSocialIcons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}