/* ═══════════════════════════════════════
   ViktorKav — /r/unixporn Terminal Theme
   Shared CSS for Landing Page & Media Kit
   ═══════════════════════════════════════ */

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

:root {
    /* Terminal Core */
    --bg-primary: #0A0A0C;
    --bg-surface: #111114;
    --bg-elevated: #18181C;
    --bg-card: #1E1E24;

    /* Text */
    --text-primary: #E8E8ED;
    --text-secondary: #8B8B96;
    --text-muted: #55555F;

    /* Accents */
    --green: #39FF14;
    --green-dim: rgba(57, 255, 20, 0.15);
    --purple: #7B68EE;
    --purple-dim: rgba(123, 104, 238, 0.15);
    --blue: #5E81AC;
    --blue-dim: rgba(94, 129, 172, 0.12);
    --orange: #E8914A;
    --orange-dim: rgba(232, 145, 74, 0.15);
    --red: #BF616A;
    --cyan: #88C0D0;

    /* Layout */
    --radius: 8px;
    --radius-lg: 12px;
    --border: 1px solid rgba(255, 255, 255, 0.06);
    --border-accent: 1px solid rgba(57, 255, 20, 0.2);
    --max-width: 1100px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ HEADER ═══ */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
}

.brand-prompt { color: var(--green); font-weight: 800; font-size: 1rem; }
.brand-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.brand-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--green);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.header-nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.5px;
}
.header-nav a:hover { color: var(--green); }
.header-nav a.active { color: var(--green); }

.header-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 16px;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 4px;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}
.header-cta:hover {
    background: var(--green);
    color: var(--bg-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ═══ MAIN CONTAINER ═══ */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 40px;
}

/* ═══ SECTION ═══ */
.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: var(--border);
}

.section-icon {
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.section-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══ HERO ═══ */
.hero {
    padding: 80px 0 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1; }

.hero-greeting {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-greeting .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
}

.hero-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-name .accent { color: var(--green); }

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-terminal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 10px 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-terminal:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-dim);
}
.btn-terminal.primary {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-dim);
}
.btn-terminal.primary:hover {
    background: var(--green);
    color: var(--bg-primary);
}

.hero-visual {
    flex-shrink: 0;
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.08);
}

/* ═══ HUB LINKS ═══ */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hub-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    transition: all 0.25s;
    text-decoration: none;
}
.hub-card:hover {
    border-color: var(--green);
    background: var(--green-dim);
}

.hub-card-highlight {
    border: var(--border-accent);
    background: linear-gradient(135deg, var(--green-dim), rgba(255, 255, 255, 0.02));
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.05);
}

.hub-card-highlight:hover {
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}

.hub-icon {
    font-size: 1.4rem;
    color: var(--green);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-dim);
    border-radius: var(--radius);
}

.hub-info h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.hub-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.media-kit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.14), rgba(94, 129, 172, 0.08));
    border: var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.05);
    text-decoration: none;
}

.media-kit-card:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.18), rgba(94, 129, 172, 0.12));
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}

.media-kit-copy {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.media-kit-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--green);
    white-space: nowrap;
}

/* ═══ ABOUT ═══ */
.about-card {
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

.about-desc p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-highlights {
    list-style: none;
}
.about-highlights li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.about-highlights li::before {
    content: '▸';
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══ VIDEO CAROUSEL ═══ */
.carousel-wrapper {
    position: relative;
}

.video-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
}
.video-carousel::-webkit-scrollbar { display: none; }

.video-item {
    flex: 0 0 280px;
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
}
.video-item:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.video-thumb-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--green);
    font-size: 1.5rem;
}
.video-item:hover .play-overlay { opacity: 1; }

.video-info {
    padding: 14px;
}
.video-info h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-info span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}
.carousel-btn:hover {
    background: var(--green-dim);
    border-color: var(--green);
    color: var(--green);
}
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* ═══ SOCIAL GRID ═══ */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    transition: all 0.25s;
    text-decoration: none;
}
.social-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.social-card i { font-size: 1.8rem; }
.social-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* ═══ CONTACT BOX ═══ */
.contact-box {
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact-box h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══ FOOTER ═══ */
.site-footer {
    text-align: center;
    padding: 24px;
    border-top: var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.footer-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}
.footer-socials a:hover { color: var(--green); }

/* ═══ LOADING ═══ */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 0;
        gap: 32px;
    }
    .hero-tagline, .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-name { font-size: 2.2rem; }
    .hero-greeting { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-avatar { width: 200px; height: 200px; }

    .hub-grid { grid-template-columns: 1fr; }
    .media-kit-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-grid { grid-template-columns: 1fr; }

    .header-nav { display: none; }
    .mobile-toggle { display: block; }

    .header-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 16px 24px;
        border-bottom: var(--border);
        gap: 12px;
    }

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

    .contact-box { padding: 32px 20px; }

    .carousel-btn { display: none; }
}
