/* 
   -------------------------------------------------------------------------
   DESIGN SYSTEM: Bio-Agent Insights (Developer Tools Edition)
   Style: Minimal Technical Dark Mode
   Inspired by: https://ui-ux-pro-max-skill.nextlevelbuilder.io/demo/developer-tools
   -------------------------------------------------------------------------
*/

:root {
    /* Color Palette */
    --bg-main: #000000;           /* Pure Black */
    --bg-card: #09090b;           /* Very Dark Gray for Cards */
    --bg-accent: rgba(57, 255, 20, 0.05); /* Very subtle lime tint */
    
    --accent: #39ff14;            /* Neon Lime */
    --accent-muted: rgba(57, 255, 20, 0.4);
    
    --text-primary: #fafafa;      /* Zinc 50 */
    --text-secondary: #a1a1aa;    /* Zinc 400 */
    --text-muted: #52525b;        /* Zinc 600 */
    
    --border: #27272a;            /* Zinc 800 */
    --border-hover: #3f3f46;      /* Zinc 700 */
    
    /* Layout */
    --max-width: 1000px;
    --radius: 8px;
    
    /* Transitions */
    --trans-fast: 100ms ease;
    --trans-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Monospace for Technical Details */
code, .mono, .step-number, .badge, th, .date-marker {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; color: var(--accent); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--trans-fast);
}

a:hover {
    text-decoration: underline;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* Developer-style Card */
.dev-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--trans-normal);
    position: relative;
}

.dev-card:hover {
    border-color: var(--accent);
    background: var(--bg-accent);
}

.dev-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    opacity: 0;
    transition: var(--trans-normal);
}

.dev-card:hover::before {
    opacity: 1;
}

/* Navigation - Minimal */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-marker {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(57, 255, 20, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Technical Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #111111;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

tr:hover td {
    background: #0c0c0e;
    color: var(--text-primary);
}

.accent-td {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Lists */
.dev-list {
    margin: 1.5rem 0;
}

.dev-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.dev-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Progress / Steps */
.step {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 4px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Utility */
.highlight { color: var(--accent); }
.dim { color: var(--text-muted); }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

@media (max-width: 768px) {
    .step { grid-template-columns: 1fr; }
}

/* Shared Content Styles */
.full-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.full-content h1,
.full-content h2,
.full-content h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    color: var(--accent);
}

.full-content p,
.full-content li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.full-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    color: var(--accent);
    font-style: italic;
    background: rgba(57, 255, 20, 0.05);
    padding: 1rem;
    margin: 1rem 0;
}

.markdown-raw {
    white-space: pre-wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #050505;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Portal Specific Layout */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.hero-large {
    padding: 8rem 0 4rem;
}

.hero-large h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
