/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #000000;
    --panel-color: #1a1a1a; 
    --border-color: #333333;
    
    --text-main: #e0e0e0;
    --text-dim: #888;
    --accent-highlight: #ffffff; 
    
    --font-tech: 'Fira Code', monospace;
    --font-display: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-tech);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- UTILS: Panel Style --- */
.glass-panel {
    background: var(--panel-color);
    border-bottom: 1px solid var(--border-color);
}

/* --- TOP BAR (45px) --- */
.top-bar {
    height: 45px; 
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; 
    width: 45px;  
    flex: none;
    padding-left: 0;
    border-right: 1px solid var(--border-color);
}

.logo-img {
    height: 34px; 
    width: auto;  
    display: block;
}

.site-title {
    position: absolute;
    top: 0;
    left: 55px; 
    width: 460px; 
    height: 45px; 
    line-height: 45px; 
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem; 
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 2px;
    pointer-events: none; 
    z-index: 103;
}

/* --- SVG BULGE CONTAINER (MAIN) --- */
.bulge-container {
    position: absolute;
    top: 44px; /* Left bulge keeps original overlap for now if it works */
    left: 55px; 
    width: 460px; 
    height: 50px; 
    z-index: 102; 
    pointer-events: none; 
    display: flex;
    justify-content: center;
    padding-top: 3px;
}

/* --- MINI BULGE CONTAINER (RIGHT) --- */
.mini-bulge-container {
    position: absolute;
    /* FIX: Set to 45px to align perfectly with the bottom of the header */
    top: 45px; 
    right: calc(33.33% - 1px); 
    width: 220px; 
    height: 50px; 
    z-index: 102; 
    pointer-events: none; 
    display: flex;
    justify-content: flex-end; 
    padding-right: 15px;
    padding-top: 3px;
}

/* --- SEAM CONCEALER --- */
.seam-concealer {
    position: absolute;
    /* Adjusted to sit exactly over the border line relative to the container */
    top: -1px; 
    left: 0;
    width: 100%;
    height: 2px; 
    background: var(--panel-color); 
    z-index: 0; 
}

.mini-concealer {
    /* Slightly wider to ensure no pixel gaps at the corners */
    width: calc(100% + 2px); 
    left: -1px;
}

.bulge-svg-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    filter: drop-shadow(0px 8px 6px rgba(0,0,0,0.5));
}

.bulge-path {
    fill: var(--panel-color); 
    stroke: var(--border-color); 
    stroke-width: 1px;
}

.bulge-content {
    display: flex;
    align-items: center; 
    gap: 15px; 
    pointer-events: auto; 
    position: relative;
    z-index: 2;
    height: 100%;
    padding-bottom: 5px; 
}

.bulge-content.mini {
    gap: 15px; 
}

.nav-btn {
    width: 30px; 
    height: 30px;
    border-radius: 50%; 
    background: #000000; 
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 1rem;
}

.nav-btn:hover {
    border-color: var(--accent-highlight);
    color: var(--accent-highlight);
    background: #111;
    transform: scale(1.1);
}

.action-btn {
    color: var(--accent-highlight);
    border-color: #666;
}

.nav-display-container {
    width: 140px; height: 30px; 
    background-color: #e6e6e6; 
    border-radius: 4px; 
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    border: 1px solid #999; 
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}

.nav-display-container.mini-screen {
    width: 80px; 
    height: 24px; 
}

.nav-display-text {
    color: #111; 
    font-weight: 800;
    font-size: 0.9rem; 
    letter-spacing: 1px;
    z-index: 2;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.mini-screen .nav-display-text {
    font-size: 0.8rem;
}

.crt-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 3;
}

/* --- SEPARATOR AREA --- */
.separator-area {
    margin-left: auto;
    width: 33.33%;
    flex: none; 
    border-left: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    padding-left: 20px; 
}

.separator-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-dim);
}

/* --- MAIN LAYOUT GRID --- */
.main-grid {
    display: flex;
    flex: 1;
    height: calc(100vh - 45px);
}

.content-column {
    flex: 1;
    padding: 100px 40px 60px 40px; 
    display: flex;
    flex-direction: column;
    position: relative; 
}

.content-box {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-color);
}

.content-box::-webkit-scrollbar { width: 8px; }
.content-box::-webkit-scrollbar-track { background: var(--bg-color); }
.content-box::-webkit-scrollbar-thumb { background-color: var(--border-color); }

.content-box h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.content-box p, .content-box li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.footer-row {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 0; 
}

.footer-icon {
    width: 60px;
    height: 60px;
    background: var(--panel-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: none; 
    border-left: none; 
    border-radius: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-dim);
}

.footer-icon:hover {
    background: var(--border-color);
    color: var(--accent-highlight);
}

.image-dock {
    width: 33.33%;
    flex: none; 
    border-left: 1px solid var(--border-color);
    background: #050505;
    position: relative;
    overflow: hidden;
}

.featured-image-container {
    width: 100%;
    height: 100%;
}

#dock-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

#dock-image:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.quest-btn {
    background: var(--panel-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    border-radius: 30px; 
    text-decoration: none;
    transition: all 0.2s ease;
}

.quest-btn:hover {
    background: var(--border-color);
    color: var(--accent-highlight);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}