/* === RESET & BASICS === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #181818;
    /* Dark Background */
    color: #e0e0e0;
    /* Light Foreground */
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: #81A1C1;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* === HEADER & NAV === */
header {
    margin-bottom: 50px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    transition: color 0.3s;
}

/* The invisible braces */
.logo::before,
.logo::after {
    display: inline-block;
    opacity: 0;
    transition: all 0.3s ease;
    color: #81A1C1;
    /* Accent Color */
}

.logo::before {
    content: "{ ";
    /* Open brace */
    transform: translateX(10px);
}

.logo::after {
    content: " }";
    transform: translateX(-10px);
}

/* On Hover: Fade in and slide into place */
.logo:hover::before,
.logo:hover::after {
    opacity: 1;
    transform: translateX(0px);
}

.logo:hover {
    color: #fff;
    /* Make text brighter */
}








/* === TYPOGRAPHY & HEADINGS === */
h1,
h2,
h3,
h4 {
    color: #81A1C1;
    margin-top: 40px;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Main Title */
h2 {
    font-size: 1.8rem;
}

/* Major Section */
h3 {
    font-size: 1.4rem;
    color: #a3becc;
}

/* Sub-section */
h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Minor section */

p {
    margin-bottom: 20px;
}

/* === LISTS (Bonus) === */
ul,
ol {
    margin-bottom: 20px;
    margin-left: 40px;
}

li {
    margin-bottom: 5px;
}

/* Make bullets the accent color */
ul li::marker {
    color: #81A1C1;
}

/* === BLOCKQUOTE (The Quote Block) === */
blockquote {
    border-left: 4px solid #81A1C1;
    /* The accent bar */
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #bbb;
    background: #222;
    /* Slightly lighter background to stand out */
    padding: 15px 15px 15px 20px;
}

/* === CODE BLOCKS (The Terminal Look) === */
/* Large blocks of code */
pre {
    background-color: #111;
    /* Very dark background */
    border: 1px solid #333;
    padding: 15px;
    overflow-x: auto;
    /* Adds scrollbar if code is too long */
    margin-bottom: 20px;
    border-radius: 4px;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a3becc;
    /* Light blue code text */
    background: none;
    padding: 0;
}

/* Inline code (single words inside paragraphs) */
p code,
li code {
    background-color: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    color: #81A1C1;
    font-size: 0.9em;
}

/* === IMAGES === */
img {
    max-width: 100%;
    /* Prevents images from being wider than screen */
    height: auto;
    border-radius: 4px;
    border: 1px solid #333;
}

/* The class to float images to the left */
.img-left {
    float: left;
    margin-right: 25px;
    /* Space between image and text */
    margin-bottom: 15px;
    max-width: 40%;
    /* Image takes up 40% of width */
}

/* Mobile Fix: On small screens, stack image normally */
@media (max-width: 600px) {
    .img-left {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
}

/* === UTILS === */
/* Use this if an image float messes up the layout below it */
.clearfix {
    clear: both;
}

/* === BLOG LIST ITEMS (From previous step) === */
.blog-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2a2a2a;
}

.blog-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.blog-preview {
    color: #bbb;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    border: 1px solid #81A1C1;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.social-btn:hover {
    background-color: #81A1C1;
    color: #181818;
}





/* === THE "NOW" PAGE EXTRAS === */

/* 1. The Glowing Pulse Animation */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #81A1C1;
    /* Accent Color */
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 rgba(129, 161, 193, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(129, 161, 193, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(129, 161, 193, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(129, 161, 193, 0);
    }
}

/* 2. Progress Bars (Minimal Style) */
.progress-container {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #bbb;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #333;
    /* Dark track */
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #81A1C1;
    /* Accent fill */
    /* Width is set inline in HTML */
}

/* 3. Now Grid (For Books/Albums) */
.now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.now-card {
    background: #222;
    padding: 15px;
    border: 1px solid #333;
    text-align: center;
    border-radius: 5px;
}

.now-card img {
    margin-bottom: 10px;
    border: none;
}



/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 80px;
    /* Pushes it away from the content */
    padding-top: 40px;
    /* Space above the text inside the footer */
    padding-bottom: 40px;
    /* Space below the text */
    border-top: 1px solid #333;
    /* A subtle, dark separation line */
    color: #666;
    /* Dim text so it doesn't distract */
    font-size: 0.9rem;
}

.footer-socials {
    margin-top: 15px;
}

.footer-socials a {
    margin: 0 10px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #81A1C1;
    /* Accent color on hover */
}
