:root {
    --bg-base: #0d0d0d;
    --bg-surface: #1a1a1a;
    --text-primary: #f4f4f4;
    --text-secondary: #a0a0a0;
    --accent-red: #b90000;
    --accent-hover: #ff1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #050505; 
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0, 0, 0, 0.65) 6px, rgba(0, 0, 0, 0.65) 8px),
        radial-gradient(circle at 50% 110%, rgba(150, 0, 0, 0.5), #050505 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    margin: 0;
}

/* ---- HEADER BANNER ---- */
.header-banner {
    max-width: 100%;     /* Only shrinks if the screen is smaller than the image */
    height: auto;        
    display: block;
    margin: 0 auto 20px auto;
}


/* Universal Container */
.container { width: 100%; max-width: 800px; text-align: center; position: relative; z-index: 10; }

/* Navigation */
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; width: 100%; }
.main-nav a {
    color: #8a8a8a; text-decoration: none; font-size: 0.9rem; font-weight: bold;
    padding: 8px 20px; border: 1px solid #333; border-radius: 20px;
    background-color: #0f0f0f; transition: all 0.2s ease-in-out;
}
.main-nav a:hover, .main-nav a.active-nav {
    color: #ffffff; border-color: #ff1a1a; background-color: #4a0000;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.4);
}

/* Profile Header Elements */
.profile-header { margin-bottom: 24px; }
.profile-img { 
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover; 
    border: 2px solid var(--accent-red); margin-bottom: 15px; 
    box-shadow: 0 0 15px rgba(185, 0, 0, 0.5); 
}
.profile-name { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
h1 { margin: 0 0 10px 0; font-size: 1.8rem; }
.tagline { font-style: italic; color: #a0a0a0; margin-bottom: 25px; }

/* Glowing Divider */
.bio-divider { 
    width: 70%; height: 1px; border: none; 
    background: linear-gradient(to right, transparent, rgba(200, 0, 0, 0.8), transparent); 
    box-shadow: 0 0 8px rgba(200, 0, 0, 0.6); margin: 20px auto; 
}

/* Base Buttons */
.back-btn { display: inline-block; margin-bottom: 20px; color: var(--accent-red); text-decoration: none; font-weight: bold; transition: 0.2s; }
.back-btn:hover { color: var(--accent-hover); }

.bsky-link-btn {
    display: inline-block; margin-top: 5px; padding: 8px 25px;
    background-color: #1a1a1a; color: #f4f4f4; text-decoration: none;
    font-size: 0.85rem; font-weight: 600; border: 1px solid #b90000;
    border-radius: 20px; transition: 0.2s;
}
.bsky-link-btn:hover { background-color: #b90000; box-shadow: 0 0 10px rgba(185, 0, 0, 0.4); }

/* ---- HOME/INDEX SPECIFICS ---- */
.bio-intro { margin: 15px 0; color: var(--text-secondary); line-height: 1.5; font-size: 0.95rem; }
.bio-highlight { color: var(--accent-red); font-weight: bold; }
.bio-tags-container { margin: 15px 0; }
.bio-tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.bio-tag { background-color: #1a1a1a; border: 1px solid #333; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; color: #a0a0a0; }

/* ---- HOME PAGE LAYOUT ---- */
.home-wrapper { 
    display: grid; 
    grid-template-columns: 55fr 45fr; /* Softened Offset: 55% Left, 45% Right */
    gap: 15px; 
    margin-top: 25px; 
    max-width: 800px; 
    width: 100%;
}

@media (max-width: 600px) { 
    .home-wrapper { grid-template-columns: 1fr; } /* Keeps it stacked on mobile */
}

/* Remove the bottom border on link categories to fit the card aesthetic better */
.link-category { border-bottom: none; padding-left: 0; text-align: center; }


/* Link Tree Buttons */
.link-category { color: var(--accent-red); font-size: 1.1rem; font-weight: bold; margin: 25px 0 10px 0; text-align: left; padding-left: 10px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.link-btn { display: block; background-color: #1a1a1a; color: #f4f4f4; text-decoration: none; padding: 15px; border-radius: 8px; margin-bottom: 12px; border: 1px solid #333; transition: all 0.2s ease; text-align: center; font-weight: 600; }
.link-btn:hover { border-color: var(--accent-red); box-shadow: 0 0 10px rgba(185, 0, 0, 0.2); transform: translateY(-2px); }

/* Keep the Link Tree, Bio, Bluesky Feed, and Wishlist centered and narrow */
.bio-intro, 
.bio-tags-container, 
.link-category, 
.feed-container,
.kofi-container,
#wishlist-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- ABOUT PAGE SPECIFICS ---- */
.about-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 25px; text-align: left; margin-top: 30px; }
@media (max-width: 600px) { .about-wrapper { grid-template-columns: 1fr; } }

.content-card { background-color: var(--bg-surface); padding: 25px; border-radius: 12px; border: 1px solid #333; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); }
.content-card h2 { color: var(--text-primary); font-size: 1.4rem; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.content-card h3 { color: var(--accent-red); font-size: 1.1rem; margin-top: 20px; margin-bottom: 10px; }
.content-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }

.about-img { width: 100%; border-radius: 8px; border: 2px solid var(--accent-red); margin-bottom: 15px; object-fit: cover; }
.inline-img { width: 100%; max-height: 200px; border-radius: 8px; border: 1px solid #333; margin: 15px 0; object-fit: cover; filter: grayscale(20%); }

.stats-list { list-style: none; padding: 0; color: var(--text-secondary); font-size: 0.9rem; }
.stats-list li { margin-bottom: 8px; border-bottom: 1px dashed #333; padding-bottom: 5px; }
.stats-list strong { color: var(--text-primary); }

/* ---- BLUESKY FEED SPECIFICS ---- */
.feed-container { background-color: var(--bg-surface); padding: 20px; border-radius: 12px; border: 1px solid #333; margin-top: 20px; overflow: hidden; text-align: left; }

/* ---- WISHLIST SPECIFICS ---- */
.wishlist-card { display: flex; justify-content: space-between; align-items: center; background-color: #141414; padding: 16px 20px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #333; transition: all 0.2s ease; box-sizing: border-box; }
.wishlist-card:hover { border-color: var(--accent-red); box-shadow: 0 0 10px rgba(185, 0, 0, 0.2); transform: translateY(-2px); }
.wishlist-info { text-align: left; }
.wishlist-title { color: var(--text-primary); font-weight: bold; font-size: 1.05rem; margin-bottom: 4px; display: block; }
.wishlist-retail { color: #8a8a8a; font-size: 0.9rem; text-decoration: none; transition: color 0.2s; margin-left: 15px; white-space: nowrap; }
.wishlist-retail:hover { color: #ff1a1a; text-decoration: underline; }

.wishlist-fund-btn { background-color: transparent; border: 1px solid #b90000; color: #fff; padding: 8px 16px; text-decoration: none; border-radius: 6px; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap; }
.wishlist-fund-btn:hover { background-color: #b90000; color: white; cursor: pointer; }

.kofi-container { text-align: center; margin-bottom: 25px; }
.kofi-btn { display: inline-block; background-color: #4a0000; color: #ffffff; text-decoration: none; padding: 12px 24px; border-radius: 8px; border: 1px solid #ff1a1a; font-weight: bold; box-shadow: 0 0 12px rgba(255, 26, 26, 0.4); transition: all 0.2s ease; }
.kofi-btn:hover { background-color: #b90000; box-shadow: 0 0 15px rgba(255, 26, 26, 0.7); transform: translateY(-2px); }

.category-title { 
    color: var(--accent-red); 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    text-align: center; /* Changed from left to center */
    margin: 30px 0 25px 0; /* Removed the 5px left margin for perfect centering */
    font-weight: bold; 
}

/* ---- GALLERY SPECIFICS ---- */
.gallery-description { color: var(--text-secondary); margin-bottom: 30px; font-size: 0.95rem; line-height: 1.6; max-width: 600px; margin-left: auto; margin-right: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--bg-surface); border: 1px solid #333; border-radius: 12px; padding: 12px; text-decoration: none; color: white; transition: 0.2s; }
.card:hover { border-color: var(--accent-red); transform: translateY(-5px); }
.card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.full-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; border: 1px solid #333; }

/* Lightbox Customization */
.sl-overlay { background: rgba(0, 0, 0, 0.9) !important; }
.gallery-grid a { position: relative; display: block; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; color: white; background: rgba(0, 0, 0, 0.5); padding: 10px 15px; border-radius: 50%; pointer-events: none; }
.sl-wrapper .sl-navigation button, .sl-wrapper .sl-close { color: #ffffff !important; text-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important; }
.sl-wrapper .sl-counter { color: #ffffff !important; }
.sl-wrapper .sl-navigation button { font-size: 2rem !important; }

/* ---- FOOTER ---- */
.footer { margin-top: 40px; margin-bottom: 20px; color: var(--text-secondary); font-size: 0.8rem; text-align: center; }