/* =========================================
   FOCUS MODE (THE VOID) STYLES
   ========================================= */

/* CORE APP LAYOUT */
body.focus-mode-body {
    background-color: #050505; 
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Lock Scroll on Desktop */
}

/* Override Nav Position */
.tkr-main-nav { top: 20px; left: 20px; }

/* 2-COLUMN GRID (Split Layout) */
.void-grid {
    display: grid;
    grid-template-columns: 400px 1fr; /* Fixed Left, Flex Right */
    height: 100%;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 60px;
    box-sizing: border-box;
}

/* LEFT COLUMN: CONTROLS */
.col-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    z-index: 10;
    border-right: 1px solid rgba(255,255,255,0.03);
    overflow-y: auto;
}

/* RIGHT COLUMN: VISUAL */
.col-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    background: radial-gradient(circle at center, #141414 0%, #050505 70%);
    overflow: hidden;
}

/* --- TYPOGRAPHY --- */
.void-title {
    font-size: 3.5rem; font-weight: 900; line-height: 1; margin-bottom: 10px;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.void-subtitle { font-size: 1rem; color: #888; margin-bottom: 30px; line-height: 1.5; }
.highlight { color: #bef264; font-weight: 700; }

/* --- STATS BOXES --- */
.stats-row { display: flex; gap: 10px; width: 100%; margin-bottom: 30px; }
.stat-box { flex: 1; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; }
.stat-box span { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.stat-box label { font-size: 0.7rem; text-transform: uppercase; color: #666; font-weight: 700; letter-spacing: 1px; }

/* --- AMBIENCE BUTTONS [NEW] --- */
.ambience-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 30px;
}
.ambience-btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    color: #888; padding: 15px; border-radius: 12px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.ambience-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ambience-btn.active { 
    background: rgba(190, 242, 100, 0.1); 
    border-color: #bef264; 
    color: #bef264; 
    box-shadow: 0 0 15px rgba(190, 242, 100, 0.1);
}
.ambience-icon { font-size: 1.5rem; margin-bottom: 5px; }
.ambience-label { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* --- BUTTONS --- */
#start-focus-btn, .void-btn {
    width: 100%; padding: 20px; background: #fff; color: #000;
    border: none; border-radius: 12px; font-weight: 800; font-size: 1rem;
    cursor: pointer; transition: transform 0.2s;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}
#start-focus-btn:hover { transform: scale(1.02); box-shadow: 0 0 40px rgba(255,255,255,0.3); }

.void-warning { 
    margin-top: 20px; font-size: 0.7rem; color: #444; 
    display: flex; gap: 8px; align-items: center; 
}

/* --- TIMER --- */
.void-timer-wrapper {
    text-align: center; opacity: 0.3; transition: opacity 0.5s; width: 100%;
}
.focus-active-mode .void-timer-wrapper { opacity: 1; }

.void-timer {
    font-size: 12vw; 
    font-weight: 900; color: #222; 
    line-height: 0.9; font-variant-numeric: tabular-nums;
    transition: color 0.3s;
    word-break: break-word; 
    max-width: 100%;
}
.focus-active-mode .void-timer { color: #bef264; text-shadow: 0 0 50px rgba(190, 242, 100, 0.2); }

.void-message { 
    font-family: 'Courier Prime', monospace; color: #bef264; 
    font-size: 1rem; margin-top: 20px; text-transform: uppercase; 
    letter-spacing: 2px; min-height: 1.5em;
}

/* --- ANIMATIONS --- */
.focus-step { display: none; width: 100%; }
.focus-step.active { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }

/* Active/Success State Centers content on Right Col if moved there */
#focus-active.active, #focus-success.active, #focus-fail.active { 
    align-items: center; text-align: center; width: 100%;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    body.focus-mode-body { height: auto; overflow-y: auto; }
    .void-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; padding-top: 80px; gap: 0; }
    
    .col-visual { order: 1; min-height: 40vh; padding: 40px 20px; }
    .void-timer { font-size: 18vw; }
    
    .col-controls { order: 2; border-right: none; border-top: 1px solid rgba(255,255,255,0.05); padding: 40px 20px 100px 20px; }
    
    .void-title { font-size: 2.5rem; }
}