/* WatchTheFeed.com Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

/* CSS Variables */
:root {
    --brand-yellow: #B7FF2E;
    --brand-magenta: #FD1D79;
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --dial-rotation: 0deg;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    cursor: default;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'VT323', monospace;
    font-weight: normal;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: var(--brand-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 5px var(--brand-yellow);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    margin-left: 120px;
    padding: 2rem;
    min-height: 100vh;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.scanline-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: scanline-anim 10s linear infinite;
}

@keyframes scanline-anim {
    from { background-position-y: 0; }
    to { background-position-y: 100px; }
}

#logo {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    color: var(--brand-yellow);
    text-shadow: 0 0 5px var(--brand-yellow), 0 0 10px var(--brand-yellow);
    opacity: 0;
    animation: logo-flicker 3s infinite;
}

@keyframes logo-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 4px var(--brand-yellow),
            0 0 11px var(--brand-yellow),
            0 0 19px var(--brand-yellow),
            0 0 40px var(--brand-magenta),
            0 0 80px var(--brand-magenta),
            0 0 90px var(--brand-magenta),
            0 0 100px var(--brand-magenta),
            0 0 150px var(--brand-magenta);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.5;
    }
}

/* Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand-magenta);
    box-shadow: 0 0 5px var(--brand-magenta);
    width: 0%;
    z-index: 99;
    transition: width 0.1s linear;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><g fill-opacity="0.1" fill="%23ffffff"><rect x="0" y="0" width="800" height="800"/><path d="M0 0 L400 800 L800 0 Z" fill-opacity="0.05" fill="%23ff00ff"/></g></svg>');
    background-size: 40px;
    opacity: 0.1;
    z-index: -1;
    animation: glitch-anim 0.5s infinite alternate;
}

@keyframes glitch-anim {
   from { transform: translate(0, 0); }
   to { transform: translate(-2px, 2px); }
}

/* Navigation */
#nav-rail {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-link {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--brand-yellow);
    text-shadow: 0 0 5px var(--brand-yellow);
    border-color: var(--brand-yellow);
}

/* Top Bar CTA */
.top-bar-cta {
    position: fixe    top: 0;
    left: 120px;
    right: 0;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-magenta));
    color: #000;
    padding: 0.5rem 1rem;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    z-index: 98;
    animation: pulse-glow 2s infinite;
}

.main-content {
    margin-left: 120px;
    padding: 2rem;
    min-height: 100vh;
    padding-top: calc(2rem + 2.5rem); /* Add space for the top bar */
}

.top-bar-cta a {
    color: #000;
    font-weight: bold;
}

/* System Alert CTAs */
.system-alert-cta {
    border: 1px solid var(--brand-yellow);
    padding: 1rem;
    margin: 2rem 0;
    background: rgba(255, 207, 0, 0.05);
    transition: background 0.3s;
    position: relative;
}

.system-alert-cta:hover {
    background: rgba(255, 207, 0, 0.15);
}

.system-alert-cta::before {
    content: "⚠ SYSTEM_BREACH: ";
    color: var(--brand-magenta);
    font-weight: bold;
}

.system-alert-cta a {
    color: var(--brand-yellow);
    text-decoration: none;
    font-weight: bold;
}

.system-alert-cta a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--brand-yellow);
}

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--brand-yellow);
    background: transparent;
    color: var(--brand-yellow);
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--brand-yellow);
    color: var(--bg-color);
    transform: skewX(-5deg);
    box-shadow: 0 0 10px var(--brand-yellow);
}

.btn-primary {
    background: var(--brand-yellow);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--brand-magenta);
    border-color: var(--brand-magenta);
    color: white;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--brand-yellow);
    background: rgba(255, 207, 0, 0.05);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/cyberpunk-city.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--brand-yellow);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer a {
    margin: 0 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    #nav-rail {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem 0;
    }
    
    .nav-links {
        flex-direction: row;
        margin-top: 0;
    }
    
    .top-bar-cta {
        left: 0;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--brand-magenta);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-color: #000;
        --text-color: #fff;
    }
}

