/* Agentic-IDE Security Siege - GitHub Pages Styles */

:root {
    --color-bg: #0d0d14;
    --color-surface: #1a1a2e;
    --color-surface-light: #252540;
    --color-primary: #e63946;
    --color-secondary: #4361ee;
    --color-accent: #f72585;
    --color-text: #e8e8f0;
    --color-text-muted: #a0a0b0;
    --color-border: #2a2a4a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.site-header {
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.btn-github {
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-github:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 57, 70, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(67, 97, 238, 0.15);
    color: var(--color-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #d62839;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

.hero-visual {
    display: none;
}

@media (min-width: 968px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .hero-visual {
        display: block;
    }

    .hero-svg {
        width: 100%;
        height: auto;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: var(--color-surface);
}

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

.about-card {
    background: var(--color-surface-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    color: var(--color-secondary);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* CVEs Section */
.cve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cve-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.cve-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.cve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cve-id {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cvss-score {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cve-card.critical .cvss-score {
    background: rgba(227, 57, 70, 0.2);
    color: var(--color-primary);
}

.cve-card.high .cvss-score {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.cve-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.cve-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cve-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.cve-status {
    font-size: 0.8rem;
    color: #10b981;
}

.cve-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.cve-footer a:hover {
    text-decoration: underline;
}

.cve-footer a.disabled {
    color: var(--color-text-muted);
    pointer-events: none;
}

/* Timeline Section */
.timeline-section {
    background: var(--color-surface);
}

.timeline-embed {
    background: var(--color-surface-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.timeline-embed iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.timeline-link {
    text-align: center;
}

.timeline-link a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.timeline-link a:hover {
    text-decoration: underline;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-category {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.tool-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.tool-category ul {
    list-style: none;
}

.tool-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.tool-category li:last-child {
    border-bottom: none;
}

.tool-category code {
    font-family: var(--font-mono);
    background: var(--color-surface-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-secondary);
}

/* Article Section */
.article {
    background: var(--color-surface);
}

.article-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.article-visual {
    display: flex;
    justify-content: center;
}

.article-visual svg {
    width: 200px;
    height: 200px;
}

.article-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(227, 57, 70, 0.15);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.article-content > p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.article-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .article-card {
        grid-template-columns: 2fr 1fr;
    }
}

/* Disclaimer */
.disclaimer {
    padding: 3rem 0;
}

.disclaimer-box {
    display: flex;
    gap: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.disclaimer-box svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.disclaimer-box h4 {
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.disclaimer-box p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-right a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--color-text);
}

.separator {
    color: var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links li:not(:last-child):not(.btn-github) {
        display: none;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .disclaimer-box {
        flex-direction: column;
    }
}
