@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Fira+Code:wght@400;500&display=swap");

:root {
    --bg-dark: #0f172a;
    --pill-bg: rgba(30, 41, 59, 0.7);
    --accent-blue: #38bdf8;
    --accent-magenta: #f472b6;
    --text-slate: #94a3b8;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(
        circle at 50% 50%,
        #1e293b 0%,
        #0f172a 100%
    );
    color: #f1f5f9;
    min-height: 100vh;
}

/* Add this to style.css */

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh; /* Covers top 70% of the screen */
    z-index: -1; /* Puts it behind your content */
    overflow: hidden;
    pointer-events: none; /* Allows clicking through to things behind it if needed */
}

.hero-image {
    width: 100%;
    height: 100%;
    background-image: url("/img/leadprompt-hero.jpg");
    background-size: cover;
    background-position: center center;

    /* 1. Darken the image slightly so white text pops */
    filter: brightness(0.6) contrast(1.2);

    /* 2. The Magic Fade: Blends image into the dark body background */
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Optional: A slow parallax effect or drift */
.hero-image {
    animation: slow-drift 60s linear infinite;
}

@keyframes slow-drift {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* The Pill-Style Nav & Elements */
.pill {
    background: var(--pill-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
}

.nav-pill {
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.nav-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-blue);
}

.article-card {
    /* 1. Higher Opacity: 0.8 makes it dark enough to read, but still 'glassy' */
    background: rgba(15, 23, 42, 0.85);

    /* 2. The Frost Effect: Blurs the city lights behind the card */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */

    /* 3. Defined Edges: A subtle border helps separate it from the background */
    border: 1px solid rgba(56, 189, 248, 0.1); /* Very subtle Cyan tint */

    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    margin: 1em;
}

/* Hover State: Make it slightly brighter and add a glow */
.article-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.9); /* Lighter Slate, more opaque */
    border-color: rgba(56, 189, 248, 0.5); /* Bright Cyan border */
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(56, 189, 248, 0.1); /* Subtle Cyan glow */
}

.article-card h3 {
    color: #ffffff !important;
}

.mono {
    font-family: "Fira Code", monospace;
}

header h1 {
    font-size: 2.5em !important;
    padding-top: 1em;
}

/* Typography for technical content */
.article-body h2 {
    font-family: "Fira Code", monospace;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-slate);
}

/* The container for the list */
.article-body ol,
.article-body ul {
    list-style: revert;
    list-style-position: outside;
    margin: revert;
    margin-left: 1.5rem;
    color: var(--text-slate);
}

/* Target the numbers specifically */
.article-body ol li::marker,
.article-body ul li::marker {
    color: #ff3366;
    font-weight: bold;
}

/* Optional: Spacing for the list items */
.article-body ol li,
.article-body ul li {
    padding-bottom: 0.5rem;
    line-height: 1.6;
}

.article-body .btn {
    border: 1px solid;
    border-color: #ffffff;
    padding: 1em;
}

a {
    color: var(--accent-blue) !important;
}

a:hover {
    color: white !important;
}

blockquote,
.pullQuoteRight,
.pullQuoteLeft {
    border-left: 4px solid var(--accent-magenta);
    padding-left: 1.5rem;
    font-style: italic;
    background: rgba(244, 114, 182, 0.05);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 2rem 0;
}

.pullQuoteRight,
.pullQuoteLeft {
    width: 15em;
    font-style: italic;
    font-size: 25px;
    margin: 0.5em;
    position: relative;
    z-index: 1;
}
.pullQuoteRight {
    float: right;
}
.pullQuoteLeft {
    float: left;
}

.pullQuoteLeft:has(img),
.pullQuoteRight:has(img) {
    border-left: unset;
    padding-left: unset;
    font-style: unset;
    background: unset;
    padding: unset;
    border-radius: unset;
    margin: unset;
}

/* Modernized Audio Player */
audio {
    height: 40px;
    border-radius: 20px;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5);
    opacity: 0.9;
}

/* --- GLOBAL CODE BLOCKS --- */
pre {
    display: block;
    background-color: #0d1117 !important;
    color: #abb2bf;
    font-family: "Fira Code", monospace !important;
    line-height: 1.6;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 8px;
    border: 1px solid #30363d;

    /* Scroll management */
    max-height: 500px;
    overflow: auto !important;
    white-space: pre !important;
    word-wrap: normal !important;
}

/* Custom Scrollbar */
pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
pre::-webkit-scrollbar-thumb {
    background: #3e4451;
    border-radius: 4px;
}
pre::-webkit-scrollbar-track {
    background: #21252b;
}

/* --- GLOBAL SYNTAX MAPPING (The "Punch-Through" Styles) --- */

/* STRINGS */
pre span[style*="color: #ff0000"],
pre span[style*="color: #0000ff"],
pre.ruby span[style*="color:#996600"],
pre.javascript span[style*="color: #3366CC"],
pre.html4strict span[style*="color: #ff0000"] {
    color: #98c379 !important;
}

/* KEYWORDS & TAGS */
pre span[style*="color: #993333"],
pre span[style*="color: #990000"],
pre span[style*="color: #c20cb9"],
pre span[style*="color: #7a0874"],
pre span[style*="color: #000000"][style*="bold"],
pre.php span[style*="color: #b1b100"],
pre.ruby span[style*="color:#CC0066"],
pre.ruby span[style*="color:#9966CC"],
pre.javascript span[style*="color: #000066"] {
    color: #c678dd !important;
}

/* VARIABLES & ATTRIBUTES */
pre span[style*="color: #000066"],
pre span[style*="color: #007800"],
pre span[style*="color: #000088"],
pre.ruby span[style*="color:#0066ff"],
pre.javascript span[style*="color: #660066"] {
    color: #d19a66 !important;
}

/* OPERATORS & PUNCTUATION */
pre span[style*="color: #66cc66"],
pre span[style*="color: #339933"],
pre span[style*="color: #009900"],
pre span[style*="color: #00AA00"],
pre.html4strict span[style*="color: #ddbb00"] {
    color: #56b6c2 !important;
}

/* COMMENTS */
pre span[style*="color: #666666"],
pre span[style*="color: #008000"],
pre span[style*="color: #009933"][style*="italic"],
pre.javascript span[style*="color: #006600"] {
    color: #5c6370 !important;
    font-style: italic !important;
}

/* --- LANGUAGE SPECIFIC POLISH --- */

/* Specific fix for Bash/Cron Numbers & Command Flags */
pre span[style*="color: #000000"]:not([style*="bold"]),
pre.javascript span[style*="color: #CC0000"],
pre.html4strict span[style*="color: #cc66cc"] {
    color: #d19a66 !important;
}

pre span[style*="color: #660033"],
pre.bash span[style*="color: #800000"] {
    color: #ff7b72 !important;
}

/* JavaScript/JSON Specifics */
pre.javascript {
    border-left: 4px solid #98c379;
}
pre.javascript span[style*="color: #000099"][style*="bold"] {
    color: #d19a66 !important;
    font-weight: normal !important;
}

/* --- TABLES & CALLOUTS --- */
table.table-bordered {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: #1a1e26;
    color: #abb2bf;
    font-family: "Inter", sans-serif;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3e4451;
}

table.table-bordered thead th {
    background-color: #21252b;
    color: #56b6c2;
    text-align: left;
    padding: 12px 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid #3e4451;
}

table.table-bordered td {
    padding: 12px 15px;
    border-bottom: 1px solid #3e4451;
}
table.table-bordered tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}
table.table-bordered td:last-child {
    font-family: "Fira Code", monospace;
    color: #d19a66;
}

article blockquote {
    background-color: rgba(224, 108, 117, 0.1);
    border-left: 4px solid #e06c75;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

article blockquote p strong {
    color: #e06c75 !important;
    text-transform: uppercase;
}
