:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --trans-blue: #5BCEFA;
    --trans-pink: #F5A9B8;
    --trans-white: #FFFFFF;
    --border-color: #888;
    --border-highlight: #ccc;
    --border-shadow: #444;
    --terminal-green: #0f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 18px;
    background-image:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

a {
    color: var(--trans-blue);
    text-decoration: none;
}

a:hover {
    color: var(--trans-pink);
    text-decoration: underline;
    background-color: rgba(245, 169, 184, 0.1);
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 999;
}

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

/* Common Retro Box Styles */
.box-border {
    border: 3px solid var(--border-color);
    border-style: outset;
    background: #1a1a1a;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px #000;
}

.box-border:active {
    border-style: inset;
}

/* Header */
.site-header {
    text-align: center;
    border-color: var(--trans-pink);
}

.site-header h1 {
    color: var(--trans-white);
    text-shadow: 2px 2px var(--trans-blue), -2px -2px var(--trans-pink);
    margin: 5px 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    line-height: 1.5;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.marquee-container {
    background-color: #000;
    border: 1px solid var(--trans-blue);
    color: var(--terminal-green);
    font-family: 'VT323', monospace;
    padding: 2px;
}

/* Layout */
.main-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .main-content {
        flex-direction: column;
    }
}

.sidebar {
    flex: 1;
    min-width: 200px;
}

.content-area {
    flex: 2;
}

/* Sidebar Elements */
.profile-pic-container {
    text-align: center;
    margin-bottom: 15px;
    border: 2px inset var(--border-shadow);
    background: #000;
    padding: 10px;
}

.pixel-art-placeholder pre {
    font-family: monospace;
    line-height: 10px;
    font-weight: bold;
    color: var(--trans-pink);
}

.retro-nav ul {
    list-style-type: none;
    padding: 0;
}

.retro-nav li {
    margin-bottom: 5px;
    border: 1px solid #333;
    background: #222;
    text-align: center;
}

.retro-nav li:hover {
    background: #333;
    border-color: var(--trans-blue);
}

.retro-nav a {
    display: block;
    padding: 5px;
}

.music-player {
    text-align: center;
    font-size: 0.8rem;
}

#now-playing-text {
    background: #000;
    border: 1px inset #444;
    padding: 5px;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--trans-blue);
    font-weight: bold;
}

.controls button {
    background: #ccc;
    border: 2px outset #eee;
    cursor: pointer;
    font-family: inherit;
}

.controls button:active {
    border-style: inset;
}
.volume-control {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 10px;
    font-family: 'VT323', monospace;
}

/* Styling the slider for a retro look */
#volume-slider {
    cursor: pointer;
    background: #000;
    border: 1px solid var(--trans-pink); /* Using your variable from HTML */
    height: 8px;
    outline: none;
    -webkit-appearance: none;
}

/* Slider thumb (the part you grab) */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--trans-pink);
    border: 1px solid #fff;
}


/* Content Area */
h2 {
    border-bottom: 2px dashed var(--trans-blue);
    color: var(--trans-pink);
    margin-top: 0;
}

.section-block {
    margin-bottom: 30px;
}

.terminal-box {
    background-color: #000;
    border: 2px solid #666;
    padding: 10px;
    font-family: 'Courier New', monospace;
    color: #ccc;
}

.prompt {
    color: var(--trans-blue);
}

.tree-view {
    list-style-type: none;
    padding-left: 20px;
}

.tree-view li {
    position: relative;
    padding-left: 15px;
}

.tree-view li::before {
    content: "├─";
    position: absolute;
    left: 0;
    color: var(--trans-blue);
}

.folder {
    font-weight: bold;
    color: var(--trans-pink);
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 20px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 5px;
    border: 1px solid white;
    box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
    background: #222;
    color: #fff;
}

.badge-trans {
    border-color: var(--trans-pink);
    /* background: linear-gradient(180deg, var(--trans-blue) 20%, var(--trans-pink) 20%, var(--trans-pink) 40%, var(--trans-white) 40%, var(--trans-white) 60%, var(--trans-pink) 60%, var(--trans-pink) 80%, var(--trans-blue) 80%); */
    /* A bit too busy for text, let's keep it simple or use borders */
    background: #111;
    color: var(--trans-pink);
}

.badge-html {
    color: #e34c26;
}

.badge-css {
    color: #264de4;
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--trans-blue);
    border: 1px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--trans-pink);
}

/* Interests Page Styles */
.retro-list {
    list-style-type: square;
    color: #ccc;
    padding-left: 20px;
}

.retro-list li {
    margin-bottom: 8px;
}

.retro-list strong {
    color: var(--trans-blue);
}

.music-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.band-tag {
    background: #222;
    border: 1px solid var(--trans-pink);
    color: var(--trans-white);
    padding: 5px 10px;
    font-size: 0.9em;
    cursor: default;
}

.band-tag:hover {
    background: var(--trans-pink);
    color: #000;
}

/* Guestbook Styles */
.guestbook-form {
    background: #111;
    border: 2px solid #444;
    padding: 15px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--trans-blue);
    margin-bottom: 5px;
}

.retro-input,
.retro-textarea {
    width: 100%;
    background: #000;
    border: 1px solid #666;
    color: #0f0;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 5px;
}

.submit-btn {
    background: var(--trans-blue);
    color: #000;
    border: 2px outset #fff;
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
}

.submit-btn:active {
    border-style: inset;
}

.message-board {
    border-top: 2px dashed #444;
    padding-top: 20px;
}

.guest-message {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.msg-header {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 5px;
    color: var(--trans-pink);
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
}

/* Links Page */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.link-card {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
    background: #111;
    transition: transform 0.1s;
    display: block;
    /* Ensure anchor fills space */
    color: var(--text-color);
    /* Reset text color */
    text-decoration: none;
    /* No underline by default */
}

.link-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--trans-blue);
    text-decoration: none;
    /* Prevent underline on hover */
    color: var(--text-color);
    /* Prevent color change on hover */
    /* Optional: Keep the subtle background from global a:hover or override it? */
    /* Global a:hover has background, we might want it or not. 
       Let's keep it but slightly adjusted if needed, or just let it inherit. 
       Actually, global a:hover sets text-decoration: underline. We definitely want to kill that. */
}

.link-card strong {
    color: var(--trans-blue);
    /* Keep title blue */
}

.link-card:hover strong {
    color: var(--trans-pink);
    /* Hover effect on the title text specifically */
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    border: 2px solid #555;
    background: #000;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.8em;
    padding: 2px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.2s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-item {
    cursor: pointer;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border: 2px solid var(--trans-blue);
    box-shadow: 0 0 20px var(--trans-pink);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    font-family: monospace;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--trans-pink);
    text-decoration: none;
    cursor: pointer;
}
