/* --- Global Styles & Variables --- */
:root {
    --primary-glow-color: #00aaff; /* Light blue */
    --secondary-glow-color: #00eaff; /* Slightly brighter cyan */
    --background-color: #0a0f1a; /* Deep dark blue */
    --text-color: #e0e0e0; /* Light grey */
    --heading-color: var(--primary-glow-color);
    --link-color: var(--secondary-glow-color);
    --border-color: rgba(0, 170, 255, 0.3); /* Fainter blue for borders */
    --card-bg-color: rgba(15, 25, 40, 0.7); /* Slightly transparent dark blue */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif; /* Techy font for headings */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* Needed for overlays */
}

/* --- Overlays for Futuristic Effect --- */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 26, 0) 0%,
        rgba(10, 15, 26, 0) 98%,
        rgba(0, 170, 255, 0.05) 99%, /* Faint scanline effect */
        rgba(10, 15, 26, 0.1) 100%
    );
    background-size: 100% 4px; /* Scanline height */
    animation: scanlines 15s linear infinite;
    pointer-events: none; /* Don't interfere with clicks */
    z-index: 10;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(0, 170, 255, 0.05), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(0, 234, 255, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.7;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}


/* --- Container --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: rgba(10, 15, 26, 0.8);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8em;
    color: #fff;
    text-shadow: 0 0 5px var(--primary-glow-color), 0 0 10px var(--primary-glow-color);
    font-weight: 700;
}

.logo .subtitle-logo {
    display: block;
    font-size: 0.5em;
    font-family: var(--font-primary);
    color: var(--text-color);
    font-weight: 300;
    margin-top: -5px;
    letter-spacing: 1px;
    text-shadow: none;
    opacity: 0.8;
}

/* --- Main Content & Blog Post --- */
.main-content {
    padding: 40px 0;
}

.blog-post {
    background-color: var(--card-bg-color);
    padding: 30px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1), 0 0 30px rgba(0, 170, 255, 0.05);
    position: relative; /* For potential pseudo-elements */
    z-index: 1; /* Above background overlays */
}

/* --- Post Header --- */
.post-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 25px;
}

.post-header h1 {
    font-family: var(--font-secondary);
    font-size: 2.5em; /* Responsive font size */
    color: var(--heading-color);
    text-shadow: 0 0 8px var(--primary-glow-color), 0 0 15px var(--primary-glow-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

/* --- Image Placeholder --- */
.post-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 7; /* Widescreen aspect ratio */
    background: linear-gradient(45deg, rgba(0, 170, 255, 0.1), rgba(10, 15, 26, 0.5)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0, 170, 255, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>'); /* Subtle grid background for when image is loading or fails */
    border: 1px solid var(--border-color);
    border-radius: 5px; /* Container radius */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    box-shadow: inset 0 0 10px rgba(0, 170, 255, 0.2);
    overflow: hidden; /* ADDED: Clips the image if it overflows */
}

/* ADDED/UPDATED: Styles for the image inside the placeholder */
.post-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, maintains aspect ratio, crops if needed */
    display: block;    /* Removes extra space below the image */
    border-radius: inherit; /* Inherits border-radius from parent, or set e.g., 5px */
}

/* This class is not used if an image is always present */
.placeholder-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1em;
    font-family: var(--font-secondary);
    text-align: center;
    padding: 20px;
}

/* --- Post Content --- */
.post-content .intro {
    font-size: 1.1em;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 30px;
    text-align: center;
}

.prompt-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    /* Intersection Observer will handle initial state */
}

.prompt-section:last-child {
     border-bottom: none;
     margin-bottom: 0;
     padding-bottom: 0;
}


.prompt-section h2 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    font-size: 1.6em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary-glow-color);
    display: flex;
    align-items: center;
}

.prompt-number {
    display: inline-block;
    color: var(--background-color);
    background-color: var(--primary-glow-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 0.7em;
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--primary-glow-color);
    font-family: var(--font-primary); /* Use regular font for numbers */
    text-shadow: none;
}


.prompt-section h3 {
    color: var(--secondary-glow-color);
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-primary); /* Match body font */
}

.prompt-section p {
    margin-bottom: 15px;
    color: var(--text-color);
    opacity: 0.95;
}

.prompt-box {
    background-color: rgba(0, 30, 50, 0.5); /* Darker, distinct background */
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-glow-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative; /* For button positioning */
    font-family: 'Courier New', Courier, monospace; /* Code-like font */
    font-size: 0.95em;
    line-height: 1.6;
    color: #c8e6ff; /* Lighter blue text for prompt */
    word-wrap: break-word;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-glow-color);
    color: var(--background-color);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

.copy-button i {
    margin-right: 5px;
}

.copy-button:hover {
    background-color: var(--secondary-glow-color);
    box-shadow: 0 0 12px var(--secondary-glow-color);
    transform: scale(1.05);
}

.copy-button:active {
     transform: scale(0.98);
}

.copy-button.copied {
    background-color: #28a745; /* Green for success */
    box-shadow: 0 0 8px #28a745;
}


/* --- Section Divider --- */
hr.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5em;
    }
    .logo .subtitle-logo {
        font-size: 0.45em;
    }
    .post-header h1 {
        font-size: 2em;
    }
    .blog-post {
        padding: 20px;
    }
    .prompt-section h2 {
        font-size: 1.4em;
    }
    .prompt-box {
        padding: 15px;
        padding-right: 80px; /* Make space for button on smaller screens */
    }
    .copy-button {
        font-size: 0.75em;
        padding: 4px 8px;
    }
    .post-image-placeholder {
        aspect-ratio: 16 / 9; /* Adjust aspect ratio slightly for smaller screens */
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.6;
    }
    .logo {
        font-size: 1.3em;
        text-align: center;
    }
     .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .post-header h1 {
        font-size: 1.8em;
    }
    .prompt-section h2 {
        font-size: 1.3em;
    }
     .prompt-number {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.6em;
    }
    .prompt-box {
        font-size: 0.9em;
    }
    .copy-button {
        position: relative; /* Stack below text */
        display: block;
        top: auto;
        right: auto;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
     .prompt-box {
        padding-right: 15px; /* Reset padding for button stacking */
    }
}