@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --bg-color: #111116;
    --container-bg: #1a1a24;
    --text-main: #e0e0e0;
    --accent: #b4befe;
    --accent-gold: #f9e2af;
    --accent-flamingo: #f2cdcd;
    --border-color: #4a4a5e;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    image-rendering: pixelated;
    max-width: 100%;
    display: block;
}

/* --- LAYOUT STRUCTURE --- */

.site-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    flex: 1;
    width: 100%;
}

.split-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* LEFT COLUMN STYLING */
.main-window {
    flex: 1; /* Takes remaining space */
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    box-shadow: 8px 8px 0px 0px #000;
    padding: 1rem;
}

/* RIGHT COLUMN STYLING */
.sidebar {
    width: 260px; /* Fixed width */
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    box-shadow: 8px 8px 0px 0px #000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- HEADER & NAV --- */

.top-nav {
    text-align: center;
    padding: 1rem;
    margin-bottom: .5rem;
}

.top-nav a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.top-nav a:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}

/* --- FETCH CARD --- */

.fetch-card {
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: center; /* Vertically center the art with text */
    gap: 2rem;           /* Space between art and info */
    padding: 1rem 0;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 1.5rem;
}

.fetch-art pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--accent);
    line-height: 1.4;
    font-size: 1.2rem;
    user-select: none;
}

.fetch-info {
    flex: 1; /* Ensures text takes available space */
}

.fetch-title {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 2px;
}

.fetch-separator {
    color: var(--border-color);
    margin-bottom: 10px;
}

.fetch-row { margin-bottom: 2px; }

.key {
    color: var(--accent);
    font-weight: bold;
    margin-right: 5px;
}
.val { color: var(--text-main); }

.val a { 
    color: var(--accent-flamingo);
    text-decoration: none;
}

.val a:hover {
    color: var(--accent-gold);
}

.fetch-colors {
    margin-top: 15px;
    display: flex;
    gap: 5px;
}

.color-box {
    width: 20px;
    height: 10px;
    background: #555;
    margin-left: .5rem;
}

/* Colors - catppuccin palette */
.c1 { background: #f38ba8; } 
.c2 { background: #f9e2af; } 
.c3 { background: #a6e3a1; } 
.c4 { background: var(--accent); } 
.c5 { background: #cdd6f4; }

/* --- about card --- */

.dashed-line {
    border: none;
    border-top: 2px dashed var(--border-color, #444);
    margin: 20px 0;
    height: 0;
    width: 100%;
}

.about-card {
    border: 2px dashed var(--accent-flamingo);
    background: #181825;
    padding: 10px;
}

.about-header {
    color: var(--accent-flamingo);
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-family: 'VT323', monospace;
}

.section-title a {
    text-decoration: none;
    color: var(--accent-gold);
}


.about-content p {
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #ccc;
}

.about-actions {
    display: flex;
    gap: 25px;
    margin: 20px 60px;
    justify-content: space-between;
    align-items: center;
}

.p5-style {
    position: relative;
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    transform: rotate(-3deg);
    transition: transform 0.1s;
    z-index: 1;
}

.p5-img {
    height: 24px;
    width: auto;
    display: block;
    filter: invert(0);
    transition: filter 0.1s;
}

.p5-style::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #d91c1c;
    z-index: -1;
    clip-path: polygon(2% 0, 95% 0, 100% 90%, 0% 100%);
    transition: all 0.2s;
}

.p5-bg-layer {
    position: absolute;
    top: 5px; left: -5px; width: 100%; height: 100%;
    background: #000;
    z-index: -2;
    clip-path: polygon(0 0, 100% 5%, 98% 100%, 5% 95%);
    transition: all 0.2s;
}

.p5-style:hover {
    transform: rotate(0deg) scale(1.1);
    color: #000;
}

.p5-style:hover::before {
    background: #fff;
    transform: translate(5px, -5px);
}

.p5-style:hover .p5-img {
    filter: invert(1);
}

.p5-style:hover .p5-bg-layer {
    background: #d91c1c;
    transform: translate(-5px, 5px);
}

.y2k-style {
    text-decoration: none;
    color: #cc99ff;
    background: #000033;
    background-image: radial-gradient(white 1px, transparent 1px), radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 15px 15px, 30px 30px;
    background-position: 0 0, 15px 15px;
    border: 2px outset #9966ff;
    padding: 8px 25px;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    min-width: 100px;
    text-align: center;
    text-shadow: 0 0 5px #ff00ff;
    transition: all 0.2s;
}

.y2k-style:hover {
    border-style: inset;
    background-color: #1a0033;
    background-position: 5px 5px, 20px 20px;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #ff00ff;
    cursor: help;
}

.code-tidbit {
    font-size: 1rem;
}

.code-tidbit a {
    color: var(--accent-flamingo);
}

.blog-section {
    margin: 5px 0;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #fff;
    margin-bottom: 10px;
    padding-bottom: 2px;
    font-weight: bold;
}

.section-title a:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
}

.blog-entry {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    color: #aaa;
    border-bottom: 1px dashed #333;
    transition: color 0.2s;
}

.blog-entry:hover {
    color: #fff;
    background: rgba(255,255,255,0.05)
}

.entry-date {
    color: var(--accent);
    margin-right: 10px;
}

.status-card {
    background: #000;
    border: 1px solid #444;
    padding: 10px;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.card-header {
    font-size: 1rem;
    color: var(--accent);
    padding-bottom: 10px;
}

.status-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.status-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #747f8d;
}

.status-details {
    font-size: 1rem;
    overflow: hidden;
}

.scrolling-text {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.recently-played {
    font-size: 1rem;
}

#steam-icon {
    image-rendering: -webkit-optimize-contrast;
    border-radius: 4px;
}

.highlight-text {
    color: #66c0f4;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    font-size: 0.9rem;
}

.music-card {
    background: #000;
    border: 1px solid #444;
    font-family: 'VT323', monospace;
    padding: 10px;
    margin-top: 10px;
}

.music-header {
    color: var(--accent);
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-art {
    width: 80px;
    height: 80px;
    border: 1px solid #333;
    background: #000;
    flex-shrink: 0;
}

.music-art img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: cover;
}

.music-details {
    overflow: hidden;
}

.track-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    color: #888;
    font-weight: bold;
    font-size: 1rem;
}

/* Blinkies */

.blinkies-panel {
    background: #000;
    border: 1px solid #444;
    padding: 10px;
    font-family: 'VT323', monospace;
}

.blinkies-header {
    color: var(--accent);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.blinkies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;;
}

.blinkies-grid img {
    height: 31px;
    width: 88px;
    image-rendering: pixelated;
}

/* moon widget */
.moon-widget {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    position: relative;
    font-family: 'VT323', monospace;
}

.mw-header {
    color: var(--accent);
    border-bottom: 1px dashes #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.mw-decor-tl { position: absolute; top: 35px; left: 10px; color: var(--accent-gold); font-size: 0.8rem; }
.mw-decor-tr { position: absolute; top: 35px; right: 10px; color: var(--accent-gold); font-size: 0.8rem; }

.mw-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 5px;
}

.pixel-moon {
    margin-top: 20px;
}

.mw-data {
    font-size: 1.1rem;
    line-height: 1.4;
}

.mw-label { color: #888; }

.mw-val-yellow { color: var(--accent-gold); text-shadow: 0 0 2px #555500; }

.visitor-panel {
    background: #000;
    padding: 10px;
    border: 1px solid #333;
    font-family: 'VT323', monospace;
}

.visitor-header {
    color: var(--accent);
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.visitor-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.visitor-counter {
    max-width: 80%;
    height: auto;
    display: block;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    image-rendering: pixelated;
}

.polar-panel {
    background: #000;
    padding: 10px;
    border: 1px solid #333;
    font-family: 'VT323', monospace;
}

.polar-header {
    font-size: 1.1rem;
    color: var(--accent);
    padding-bottom: 10px;
    margin-bottom: 5px;
} 

.polar-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.polar-gif img {
    width: 75px;
    height: auto;
    display: block;
    image-rendering: pixelated;
}

.checkpoint-banner {
    display: flex;
    align-items: center;
    background: #2a2a35;
    border: 2px dashed var(--accent);
    padding: 1rem;
    margin-top: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    gap: 1rem;
}

.checkpoint-banner:hover {
    background: #313244;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

.cp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-icon img {
    width: 64px;
    height: auto;
    image-rendering: pixelated;
    display: block;
}

.cp-text { flex: 1; }

.cp-title {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.cp-sub { color: #888; font-size: 1rem; }

.cp-arrow {
    font-size: 2rem;
    color: var(--accent);
}

/* FOOTER */
.site-footer {
    text-align: center;
    font-weight: bold;
    padding: 1rem 0;
    margin-top: auto;
    opacity: 1;
    font-size: 0.9rem;
    color: #6c7086;
    border-top: 1px dashed var(--border-color);
    width: 100%;
    line-height: .5rem;
}

.mail a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: color 0.2s;
}

.mail a:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 2px;  /* 2px is line thickness */
    pointer-events: none;
    z-index: 999;
}

#oneko {
    position: absolute !important;
    top: 0;
    left: 0;
    will-change: transform;
    pointer-events: auto;
    z-index: 9999;
}

/* MOBILE FIX */
@media (max-width: 600px) {
    .split-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .fetch-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}