/* ========================================
 * 💚 BEVERLY'S COZY NEOCITIES THEME STYLES 💚
 * (Now with extra brown coziness! - Updated 2025)
 * ======================================== */

:root {
    --soft-bg: #f8f6f1; /* Warm off-white / parchment background */
    --soft-text: #3b3b2e; /* Deep earthy brown for main text */
    /* UPDATED: Darker secondary text for better contrast */
    --soft-text-light: #4a4a3a; /* Muted olive-gray, better contrast for details */

    --soft-accent: #8ba989; /* Soft sage green accent */
    --soft-link: #5e7c5a; /* Rich moss green for buttons / bars */
    --soft-link-darker: #5c7157; /* NEW: Darker shade for hover shadows */

    --soft-element-bg: #e9e5dc; /* Soft beige for cards, scrollbars, etc. */
    --soft-border: #4a3f35; /* Deep bark brown border */

    --soft-shadow: rgba(58, 44, 34, 0.35); /* Gentle earthy shadow */
    --page-backdrop: #eae6da; /* Creamy, warm background tone */

    --chat-pink-bg: #d8e5d2; /* Pale greenish-beige for chat bubbles */
    --chat-pink-border: #8ba989; /* Sage border for chat */
    --soft-rating-highlight: #b0804f; /* Warm golden brown highlight (rating color) */
    
    /* --- COZY REVIEW COLORS --- */
    --soft-review-bg1: #f1ede8; /* Very Pale Taupe/Cream */
    --soft-review-bg2: #e4e0d8; /* Slightly Darker Taupe/Cocoa Cream */
    
    /* --- NEW VARIABLES FOR SOCIAL BUTTONS & UI --- */
    --social-btn-bg: #99bd96; /* Base color for social buttons */
    --social-btn-hover-bg: #8eaf86; /* Hover color for social buttons */
    
    /* ✨ NEW: Duller Yellow/Golden Highlight for Status Text */
    --soft-game-status-highlight: #d6c19a; /* Muted golden-beige/dull yellow */
}

/* --- MARQUEE KEYFRAMES --- */
@keyframes marquee-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}


html {
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'VT323', monospace;
    font-size: 20px;
    
    /* ✨ UPDATED: Grid pattern background */
    background-color: var(--page-backdrop); /* Base color */
    background-image: 
        linear-gradient(to right, rgba(74, 63, 53, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(74, 63, 53, 0.08) 1px, transparent 1px);
    background-size: 20px 20px; /* 20px grid squares */
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--soft-text);
    image-rendering: pixelated;
    /* overflow: hidden; <-- REMOVED */
}

/* Ensures all images render crisply */
img {
    image-rendering: -moz-crisp-edges; /* Firefox */
    image-rendering: -webkit-crisp-edges; /* Old Chrome/Safari */
    image-rendering: pixelated; /* Modern browsers */
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    95% { opacity: 0.98; }
    97% { opacity: 1; }
    99% { opacity: 0.99; }
}

.file-explorer-window {
    width: 90%;
    max-width: 900px;
    height: 700px;
    max-height: 90vh;
    background-color: var(--soft-bg);
    border: 3px solid var(--soft-border);
    border-radius: 6px;
    box-shadow: 0 10px 30px var(--soft-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.explorer-top-bar {
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    background: linear-gradient(to bottom, #8fa684, #7b9474);
    border-bottom: 2px solid #5e7258;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.explorer-top-bar h2 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 400;
    color: #fffefb;
}

.theme-toggle {
    display: none;
}

.explorer-top-bar .controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.explorer-top-bar .controls span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--soft-border);
    background-color: var(--soft-bg);
    font-size: 14px;
    font-weight: 400;
    color: var(--soft-text);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.1s;
}

.explorer-top-bar .controls span:hover {
    background-color: var(--soft-accent);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0 5px;
}
.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--soft-bg);
}

.explorer-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    background-color: var(--soft-bg);
    transition: background-color 0.2s ease;
    
    /* Subtle dot pattern (INSIDE) */
    background-image: repeating-radial-gradient(
        circle at center,
        rgba(74, 63, 53, 0.1),  /* 10% opacity of --soft-border */
        rgba(74, 63, 53, 0.1) 1px,
        transparent 1px,
        transparent 10px
    );
    background-size: 10px 10px;
}

.explorer-sidebar {
    width: 220px;
    background-color: #f4f2ed;
    border-right: 2px solid #b7b09e;
    box-shadow: 1px 0 4px rgba(0,0,0,0.05);
    padding: 20px 15px;
    overflow-y: auto;
    flex-shrink: 0;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: var(--soft-link) var(--soft-element-bg);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Accent scrollbar for Webkit */
.explorer-sidebar::-webkit-scrollbar { width: 10px; }
.explorer-sidebar::-webkit-scrollbar-track { background-color: var(--soft-element-bg); }
.explorer-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--soft-link);
    border-radius: 5px;
}

.sidebar-section { margin-bottom: 30px; }
.sidebar-section h3 {
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--soft-text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.sidebar-section ul { list-style: none; padding: 0; margin: 0; }
.sidebar-section li { margin-bottom: 8px; }
.sidebar-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--soft-text-light);
    font-size: 1.1em;
    font-weight: 400;
    box-shadow: 0 0 0 0px var(--soft-accent) inset;
    color: #5f7758;
    transition: color 0.2s ease;
}

.sidebar-section a:hover {
    background-color: var(--soft-accent);
    color: var(--soft-text);
    box-shadow: 0 0 0 2px var(--soft-link) inset;
    transform: none;
    
}
.sidebar-section a.active {
    background-color: var(--soft-link);
    color: var(--soft-bg);
    font-weight: 400;
    /* This section is responsible for the clear highlight of the active page. */
    box-shadow: 0 0 0 2px var(--soft-border),
              0 0 6px rgba(185, 255, 175, 0.4) inset;
}
.sidebar-section a.active svg { stroke: var(--soft-bg); }
.sidebar-section a svg {
    width: 18px;
    height: 18px;
    stroke: var(--soft-text-light);
    stroke-width: 2px;
    fill: none;
    transition: stroke 0.2s ease;
}
.sidebar-section a:hover svg { stroke: var(--soft-text); }

.social-icon-link {
    color: inherit;
    text-decoration: none;
}

.social-icon-link:hover {
    color: var(--soft-link) !important;
    transform: scale(1.1);
}

.explorer-content {
    flex-grow: 1;
    background-color: transparent;
    padding: 30px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--soft-link) var(--soft-element-bg);
}

.explorer-content::-webkit-scrollbar { width: 10px; }
.explorer-content::-webkit-scrollbar-track { background-color: var(--soft-element-bg); }
.explorer-content::-webkit-scrollbar-thumb {
    background-color: var(--soft-link);
    border-radius: 5px;
}

/* ========================================
 * CONTENT STYLES (Profile, etc.)
 * ======================================== */

.main-content-area {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.content-block {
    background-color: var(--soft-bg);
    border: none;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.content-block:hover {
    transform: none;
    box-shadow: none;
}

.profile-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.profile-pic-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--soft-link);
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 4px 8px var(--soft-shadow);
    transition: border-color 0.2s ease;
    image-rendering: pixelated;
    
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-text-container {
    flex: 1;
    min-width: 250px;
}

.profile-text-container h1 {
    font-size: 2.6em;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--soft-text);
    margin: 0 0 4px 0;
    text-shadow: 1px 1px 0 #a0b59b;
}

.profile-text-container p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--soft-text);
    margin-bottom: 20px;
}

.profile-text-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1em;
}

.profile-text-container li {
    margin-bottom: 8px;
    color: var(--soft-text-light);
}

.profile-text-container li strong {
    color: var(--soft-text);
    font-weight: 400;
}

.note-block {
    background-color: var(--soft-element-bg);
    box-shadow: none;
    border: none;
    /* MARQUEE STYLES */
    padding: 10px 15px;
    border: 1px solid var(--soft-border);
    margin-top: 20px;
    text-align: left;
    color: var(--soft-text);
    white-space: nowrap; /* Forces content onto a single line */
    overflow: hidden; /* Hides content that exceeds the element width */
    position: relative;
    /* END MARQUEE STYLES */
}

/* HTML structure requires a new inner element, e.g., <span class="marquee-content"> */
.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start the content off-screen to the right */
    animation: marquee-scroll 15s linear infinite; /* Adjust speed (15s) as needed */
}


.note-block p {
    margin: 0;
    font-size: 1em;
    color: var(--soft-text-light);
    text-align: left;
}

.note-block p strong {
    color: var(--soft-text);
    font-weight: 400;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-family: 'VT323', monospace;
}

.chat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--soft-border);
    flex-shrink: 0;
    image-rendering: pixelated;
    object-fit: cover;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 6px;
    position: relative;
    font-size: 1.1em;
    line-height: 1.5;
    color: var(--soft-text);
}

.chat-bubble p { margin: 0; }

.chat-sender {
    font-weight: 400;
    font-size: 1em;
    color: var(--soft-text);
    display: block;
    margin-bottom: 5px;
}

.chat-bubble.pink {
    background-color: var(--chat-pink-bg);
    border: 2px solid var(--chat-pink-border);
}

.game-review-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.game-review-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border: 3px solid var(--soft-border);
    border-radius: 4px;
    object-fit: cover;
    image-rendering: pixelated;
}

.game-review-text {
    flex: 1;
    min-width: 250px;
}

.game-review-text h2 {
    font-size: 2.2em;
    font-weight: 400;
    color: var(--soft-text);
    margin: 0 0 10px 0;
}

.game-review-text p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--soft-text);
    margin-bottom: 15px;
}

.game-review-rating {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--soft-text);
}

.game-review-rating strong {
    color: var(--soft-rating-highlight);
    text-shadow: none; /* REMOVED SHADOW */
}

/* Alternating backgrounds for content blocks: NOW USING COZY BROWN TONES */

.main-content-area .game-review-layout:nth-of-type(even),
.main-content-area .project-layout:nth-of-type(even) {
    background-color: var(--soft-review-bg2); /* Slightly Darker Taupe/Cocoa Cream */
    border: 1px solid #d4c7b9; /* A faint, earthy border to define the block */
    box-shadow: 2px 2px 0px rgba(74, 63, 53, 0.1); /* Gentle brown shadow */
}

.main-content-area .game-review-layout:nth-of-type(odd),
.main-content-area .project-layout:nth-of-type(odd) {
    background-color: var(--soft-review-bg1); /* Very Pale Taupe/Cream */
    border: 1px solid #d4c7b9; /* A faint, earthy border to define the block */
    box-shadow: 2px 2px 0px rgba(74, 63, 53, 0.1); /* Gentle brown shadow */
}

/* Ensure text is readable (all dark brown text on the new light taupe backgrounds) */
.main-content-area .game-review-layout:nth-of-type(even) h2,
.main-content-area .game-review-layout:nth-of-type(even) p,
.main-content-area .game-review-layout:nth-of-type(even) .game-review-rating,
.main-content-area .game-review-layout:nth-of-type(odd) h2,
.main-content-area .game-review-layout:nth-of-type(odd) p,
.main-content-area .main-content-area .game-review-layout:nth-of-type(odd) .game-review-rating {
    color: var(--soft-text); /* Deep earthy brown for main text */
}

/* Ensure the rating highlight stays the golden-brown color on the new backgrounds */
.main-content-area .game-review-layout:nth-of-type(even) .game-review-rating strong,
.main-content-area .game-review-layout:nth-of-type(odd) .game-review-rating strong {
    color: var(--soft-rating-highlight);
    text-shadow: none;
}


.project-layout h2 {
    font-size: 2.2em;
    font-weight: 400;
    color: var(--soft-text);
    margin: 0 0 10px 0;
}

.project-layout p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--soft-text);
    margin-bottom: 20px;
}

.project-layout p strong {
    color: var(--soft-text);
    font-weight: 400;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.project-btn {
    font-family: 'VT323', monospace;
    font-weight: 400;
    background-color: var(--soft-bg);
    border: 2px solid var(--soft-border);
    color: var(--soft-text);
    padding: 10px 20px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px var(--soft-border);
}

.project-btn:hover {
    background-color: var(--soft-accent);
    border-color: var(--soft-border);
    color: var(--soft-text);
    box-shadow: 1px 1px 0px var(--soft-border) inset;
    transform: translateY(1px) translateX(1px);
}

/* --- NEW: Currently Playing Block Styling --- */
/* (This assumes you wrap the "Currently Playing" line in HTML with <p class="currently-playing-block">) */
.currently-playing-block {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--soft-text);
    
    /* 🛠 MODIFIED: Changed margin to be a bit tighter */
    margin: 20px 0 30px 0;
    
    padding: 10px 15px;
    letter-spacing: 0.5px;
    user-select: none;
    
    /* ✨ NEW STYLES for the DULLER YELLOW BACKGROUND */
    background-color: var(--soft-game-status-highlight); /* Uses the new dull yellow/golden beige */
    border: 2px solid var(--soft-border); /* Gives it a framed look */
    border-radius: 6px;
    /* Subtle inner shadow for texture */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) inset; 
}

/* ========================================
 * RESPONSIVE MEDIA QUERIES 📱
 * ======================================== */

@media (max-width: 768px) {
    
    body {
        font-size: 18px;
    }
    .explorer-top-bar .controls {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }

    body {
        padding: 10px;
        align-items: flex-start;
    }
    .file-explorer-window {
        width: 100%;
        height: 95vh;
        max-height: 100%;
        padding: 0;
        border: 2px solid var(--soft-border);
    }

    .explorer-body {
        flex-direction: column;
        position: relative;
    }

    /* --- HIDE SCROLLBARS FOR SCROLLABLE CONTENT (Mobile) --- */

    /* Webkit (Chrome, Safari, Mobile) */
    .explorer-sidebar::-webkit-scrollbar,
    .explorer-content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    /* Firefox */
    .explorer-sidebar {
        scrollbar-width: none;
    }
    .explorer-content {
        scrollbar-width: none;
    }

    /* --- END HIDE SCROLLBARS --- */


    .explorer-sidebar {
        display: none;
        width: 100%;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 2px solid var(--soft-border);
        overflow-y: auto;
        overflow-x: hidden;
        flex-shrink: 0;
        background-color: var(--soft-bg);
        
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        box-shadow: 0 4px 12px var(--soft-shadow);
    }
    
    .explorer-sidebar.mobile-visible {
        display: block;
    }
    
    .explorer-content {
        padding: 0 10px 10px 10px;
    }
    
    .main-content-area {
        padding: 5px;
    }
    .profile-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-text-container {
        text-align: left !important;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding-left: 15px;
    }

    .profile-text-container h1,
    .profile-text-container p:nth-of-type(1) {
        text-align: left !important;
        margin-left: 0;
    }
}

/* A second query for very small phones */
@media (max-width: 480px) {
    .game-review-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .explorer-sidebar { padding: 10px; }
    .sidebar-section { margin-bottom: 15px; }
    .sidebar-section ul { display: block; }
    .sidebar-section h3 { text-align: left; }
    .main-content-area { padding: 10px; }
    
}
    
/* --- Profile Layout Container --- */
.content-block.profile-layout {
    flex-wrap: nowrap;
    align-items: flex-start;
    flex-direction: column;
    padding: 0;
    margin-bottom: 30px;
    background-color: var(--soft-bg);
}

/* --- Profile Banner --- */
.profile-banner {
    width: 100%;
    height: 180px;
    background-image: url('images/cover.jpg');
    background-size: cover;
    background-position: center;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
}

/* --- Profile Content Area --- */
.profile-content {
    padding: 0px 25px 30px 25px;
    width: 100%;
    position: relative;
    margin-top: -90px;
}

/* --- Profile Pic Wrapper (Inline div) --- */
.profile-content > div:first-child {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
}

/* --- Profile Picture Container --- */
.profile-pic-container {
    width: 120px;
    height: 120px;
    border: 4px solid var(--soft-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-right: 15px;
}

/* --- Profile Image inside container --- */
.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- Profile Text Container --- */
.profile-text-container {
    margin-top: 5px;
    min-width: unset;
    
}

/* --- Profile Name H1 --- */
.profile-text-container h1 {
    font-size: 2.5em;
    margin-bottom: 8px;
    text-shadow: 2px 2px var(--soft-accent);
    color: var(--soft-text);
}

/* --- H1 inner span (the flower) --- */
.profile-text-container h1 span {
    font-size: 0.7em;
}

/* --- Bio/Tagline P --- */
.profile-text-container p:nth-of-type(1) {
    font-size: 1em;
    /* IMPROVEMENT: Uses the darker main text color for high contrast */
    color: var(--soft-text);  
    margin-bottom: 12px;
    line-height: 1.2;
    opacity: 1; 
}

/* --- Tagline strong --- */
.profile-text-container p:nth-of-type(1) strong {
    color: var(--soft-text);
}

/* --- Tagline inner span (the heart) --- */
.profile-text-container p:nth-of-type(1) span {
    color: var(--soft-link);
}

/* --- Social Links Container --- */
.social-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    
}

.social-links-container::after {
    /* UPDATED: Thicker, more prominent separator line */
    content: "";
    display: block;
    width: 90%;
    height: 2px;
    background: var(--soft-border); /* Simple solid line */
    opacity: 0.8;
    margin: 20px auto 0;
}

/* --- Cute Bio P (MODIFIED for size/padding) --- */
.cute-bio {
    /* **MODIFIED**: Increased font-size for better pop (was 1.1em) */
    font-size: 1.3em;  
    color: var(--soft-text);
    /* UPDATED: Solid border and background for a more 'framed' look */
    background-color: var(--soft-review-bg1);
    border: 3px solid var(--soft-link);
    border-radius: 10px;
    /* **MODIFIED**: Generous padding for a roomier feel (was 20px) */
    padding: 20px;  
    /* **MODIFIED**: Increased line-height for easier reading (was 1.5) */
    line-height: 1.7;  
    font-family: 'VT323', monospace;
    max-width: 600px;
    box-shadow: 4px 4px 0 var(--soft-border); /* Stronger offset shadow */
    text-align: center;
}

/* --- Social Button Link (Existing CSS) --- */
.social-btn-link {
    font-family: 'VT323', monospace;
    font-weight: 400;
    /* UPDATED: Used new variable */
    background-color: var(--social-btn-bg);
    border: 2px solid var(--soft-border);
    color: var(--soft-text);
    padding: 10px 20px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease, transform 0.15s ease;
    /* UPDATED: Used variable for box-shadow color */
    box-shadow: 2px 2px 0px var(--soft-border);
    display: inline-block;
    
}

.social-btn-link:hover {
    /* UPDATED: Used new variable for hover shadow/color */
    box-shadow: 2px 2px 0 var(--soft-link-darker);
    transform: translateY(-2px);
    background-color: var(--social-btn-hover-bg);
}

 