/* === EXPLOIT.MONSTER - Terminal Cards === */

:root {
    --black: #000000;
    --bg-page: #0a0a0a;
    
    --prey-100: hsl(260 12% 95%);
    --prey-300: hsl(263 7% 76%);
    --prey-400: hsl(260 6% 58%);
    --prey-600: hsl(267 6% 29%);
    --prey-700: hsl(266 13% 21%);
    --prey-750: hsl(268 12% 17%);
    --prey-800: hsl(270 12% 13%);
    
    --purple-300: hsl(264 100% 81%);
    --purple-400: hsl(263 100% 69%);
    
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #eab308;
    --cyan: #22d3ee;
    
    --term-green: #4ade80;
    --term-yellow: #facc15;
    --term-cyan: #67e8f9;
    --term-dim: #6b7280;
    
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* === News Ticker === */
.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.ticker-prompt {
    color: #22d3ee;
    font-weight: 500;
}

.prompt-colon {
    color: #6b7280;
}

.prompt-path {
    color: #a78bfa;
}

.prompt-symbol {
    color: #22d3ee;
    margin-left: 0.25rem;
    margin-right: 0.5rem;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.ticker-item:hover .ticker-text {
    color: white;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.ticker-severity {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker-severity.critical {
    background: rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.5);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.ticker-severity.high {
    background: rgba(249, 115, 22, 0.3);
    color: #ffaa5b;
    border: 1px solid rgba(249, 115, 22, 0.5);
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}

.ticker-severity.medium {
    background: rgba(234, 179, 8, 0.3);
    color: #ffd55b;
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.ticker-text {
    font-size: 0.75rem;
    color: #e0f2fe;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--prey-100);
    line-height: 1.5;
    min-height: 100vh;
}

/* === Navigation === */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--prey-700);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--prey-100);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--purple-400);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--prey-400);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--prey-100);
    background: var(--prey-800);
}

.nav-link.active {
    color: var(--prey-100);
}

/* === DEFCON Indicator === */
.defcon-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--prey-700);
}

.defcon-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--prey-500);
    letter-spacing: 0.1em;
}

.defcon-level {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.5);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    animation: defcon-pulse 2s ease-in-out infinite;
}

.defcon-level[data-level="1"] {
    background: rgba(239, 68, 68, 0.3);
    color: #ff4444;
    border-color: rgba(239, 68, 68, 0.7);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.9);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.defcon-level[data-level="3"] {
    background: rgba(249, 115, 22, 0.2);
    color: #ffaa5b;
    border-color: rgba(249, 115, 22, 0.5);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.defcon-level[data-level="4"] {
    background: rgba(234, 179, 8, 0.2);
    color: #ffd55b;
    border-color: rgba(234, 179, 8, 0.5);
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.7);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.defcon-level[data-level="5"] {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.5);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    animation: none;
}

@keyframes defcon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === Main === */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Hero === */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--prey-300);
    max-width: 480px;
    margin: 0 auto;
}

/* === Feed === */
.feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 6rem;
}

/* === Terminal Card === */
.terminal-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--black);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--prey-700);
    transition: all 0.2s ease;
}

.terminal-card:hover {
    border-color: var(--prey-600);
    transform: translateY(-2px);
}

/* Terminal Chrome */
.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--prey-800);
    border-bottom: 1px solid var(--prey-700);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--prey-400);
    flex: 1;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.badge.high {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange);
}

.badge.medium {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}

/* Terminal Body */
.terminal-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

.terminal-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: white;
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--prey-300);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    font-size: 0.75rem;
    color: var(--purple-300);
    padding: 0.25rem 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 6px;
}

.date {
    font-size: 0.8125rem;
    color: var(--prey-400);
    margin-left: auto;
}

/* Card Thumbnail */
.card-thumbnail {
    width: 280px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--prey-700);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.terminal-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--prey-700);
    padding: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
    color: var(--prey-400);
}

/* === Responsive === */
@media (max-width: 900px) {
    .terminal-body {
        grid-template-columns: 1fr;
    }
    
    .terminal-code {
        order: -1;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .main {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .terminal-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
}
