/* components.css */

/**
 * Cosmic Focus - UI Components
 * Navigation, buttons, modals, forms, and interactive elements
 */

/* Navigation Components - All styling handled in apple-liquid-glass.css and responsive.css */

/* Content Mode Layouts */
.home-content {
    position: relative;
    z-index: 20;
    text-align: center;
}

#home {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 100%;
}

.home-content h1 {
    font-size: clamp(2.5em, 8vw, 5em);
    font-weight: 400;
    color: #C8922A;
    -webkit-text-fill-color: #C8922A;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-shadow: 0 0 25px rgba(200, 146, 42, 0.2),
                 0 0 50px rgba(122, 92, 30, 0.08);
    filter: none;
    animation: none;
}

.greeting {
    font-size: 1.3em;
    font-weight: 300;
    color: #9B7320;
    -webkit-text-fill-color: #9B7320;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
    text-shadow: none;
    filter: none;
    animation: none;
}

.date-time {
    font-size: 1em;
    color: #7A5C1E;
    -webkit-text-fill-color: #7A5C1E;
    margin-bottom: 40px;
    text-shadow: none;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Focus Mode Components */
.focus-content {
    padding: 10px 20px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 20;
}

/* Focus mode — centered */
#focus {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.timer-display {
    font-size: clamp(3.5em, 10vw, 5.5em);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -3px;
    margin-bottom: 15px;
    text-shadow:
        0 0 30px rgba(200, 146, 42, 0.25),
        0 0 60px rgba(200, 146, 42, 0.08);
    animation: timerGlow 6s ease-in-out infinite;
    position: relative;
    z-index: 21;
}

@keyframes timerGlow {
    0%, 100% {
        text-shadow:
            0 0 30px rgba(200, 146, 42, 0.25),
            0 0 60px rgba(200, 146, 42, 0.08);
    }
    50% {
        text-shadow:
            0 0 40px rgba(200, 146, 42, 0.35),
            0 0 80px rgba(200, 146, 42, 0.12);
    }
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 22;
    align-items: center;
}

/* Task Management Section — nearly invisible, just a hairline separator */
.task-section {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-top: 1px solid rgba(200, 146, 42, 0.08) !important;
    border-radius: 0 !important;
    padding: 12px 0 0 0 !important;
    margin-top: 10px;
    box-shadow: none !important;
    position: relative;
    z-index: 30;
    overflow: visible !important;
}

/* Kill the gradient pseudo-element overlay */
.task-section::before {
    display: none !important;
}

/* Task input styles moved to liquid-glass-buttons.css for consistency */
/* Keeping only the legacy z-index overrides if needed */

/* #addTaskBtn styles moved to liquid-glass-buttons.css */

.task-list {
    list-style: none;
    position: relative;
    z-index: 25;
    padding: 0;
    margin: 0;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    gap: 10px;
    padding: 8px 4px !important;
    border: none !important;
    border-bottom: 1px solid rgba(200, 146, 42, 0.06) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    position: relative;
    z-index: 26;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 14px;
    transform: none !important;
}

.task-item:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Align checkbox and text vertically */
.task-item .task-content {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.task-item .liquid-glass-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Hide native checkbox completely */
.task-item input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Gold checkmark box */
.task-item .checkmark {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 6px !important;
    background: rgba(200, 146, 42, 0.06) !important;
    border: 1.5px solid rgba(200, 146, 42, 0.25) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    cursor: pointer;
    position: relative !important;
}

.task-item .liquid-glass-checkbox:hover .checkmark {
    background: rgba(200, 146, 42, 0.12) !important;
    border-color: rgba(200, 146, 42, 0.4) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Task text */
.task-item .task-text {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 14px !important;
    text-shadow: none !important;
}

/* Delete button — small gold X */
.task-item .liquid-glass-btn {
    background: transparent !important;
    border: 1px solid rgba(200, 146, 42, 0.12) !important;
    color: rgba(200, 146, 42, 0.5) !important;
    min-height: 28px !important;
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.task-item .liquid-glass-btn:hover {
    background: rgba(255, 59, 48, 0.1) !important;
    border-color: rgba(255, 59, 48, 0.3) !important;
    color: rgba(255, 59, 48, 0.8) !important;
    transform: none !important;
}

.task-item:last-child {
    border-bottom: none;
}

/* Ambient Mode */
.ambient-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 900px;
    height: 100%;
    max-height: calc(100vh - 200px);
    position: relative;
    z-index: 20;
    overflow: hidden;
    padding: 40px 20px;
    background: transparent !important;
}

.ambient-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ambient-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
    text-shadow: none;
    background: transparent;
}

/* ===== FOCUS TAB — GOLD LIQUID GLASS REDESIGN ===== */

/* All timer buttons — kill variant colors, kill pseudo-element effects, gold liquid glass only */
.timer-controls .liquid-glass-btn {
    background: rgba(200, 146, 42, 0.05) !important;
    border: 1px solid rgba(200, 146, 42, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(30px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(160%) !important;
    border-radius: 24px !important;
    padding: 12px 24px !important;
    min-height: 44px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(200, 146, 42, 0.1) !important;
    text-shadow: none !important;
    transform: none !important;
}

/* Kill ALL pseudo-element effects (lens-flare, starfield, micro-reflect) */
.timer-controls .liquid-glass-btn::before,
.timer-controls .liquid-glass-btn::after {
    display: none !important;
}

/* Primary action (Start Focus) — slightly brighter gold border */
.timer-controls .liquid-glass-btn--primary {
    background: rgba(200, 146, 42, 0.08) !important;
    border: 1px solid rgba(200, 146, 42, 0.25) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
}

/* Icon button (⟳) — same pill shape, just smaller */
.timer-controls .liquid-glass-btn--small {
    padding: 10px 16px !important;
    min-height: 40px !important;
    min-width: 40px !important;
    font-size: 16px !important;
    border-radius: 20px !important;
}

/* Hover — subtle brighten, no scale/transform gimmicks */
.timer-controls .liquid-glass-btn:hover {
    background: rgba(200, 146, 42, 0.1) !important;
    border-color: rgba(200, 146, 42, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    transform: none !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(200, 146, 42, 0.15) !important;
}

/* Active press — subtle inset */
.timer-controls .liquid-glass-btn:active {
    transform: scale(0.97) !important;
    background: rgba(200, 146, 42, 0.06) !important;
}

/* ===== TASK SECTION — near-invisible, minimal ===== */

/* Gold task input */
.task-input {
    background: rgba(200, 146, 42, 0.03) !important;
    border: 1px solid rgba(200, 146, 42, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 12px 0 0 12px !important;
    backdrop-filter: blur(20px) !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    box-shadow: none !important;
    min-height: 40px !important;
}

.task-input:focus {
    background: rgba(200, 146, 42, 0.05) !important;
    border-color: rgba(200, 146, 42, 0.22) !important;
    box-shadow: 0 0 0 2px rgba(200, 146, 42, 0.1) !important;
}

.task-input::placeholder {
    color: rgba(122, 92, 30, 0.7) !important;
}

/* Task Add button — connected to input */
.task-input-group .liquid-glass-btn {
    background: rgba(200, 146, 42, 0.06) !important;
    border: 1px solid rgba(200, 146, 42, 0.15) !important;
    border-left: none !important;
    color: #C8922A !important;
    border-radius: 0 12px 12px 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    min-height: 40px !important;
    min-width: 60px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(20px) !important;
}

.task-input-group .liquid-glass-btn::before,
.task-input-group .liquid-glass-btn::after {
    display: none !important;
}

.task-input-group .liquid-glass-btn:hover {
    background: rgba(200, 146, 42, 0.1) !important;
    border-color: rgba(200, 146, 42, 0.25) !important;
    transform: none !important;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.ambient-text {
    font-size: 1.2em;
    opacity: 0.8;
    text-align: center;
}

/* Reset Session Button */
.reset-session-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow);
    min-width: 50px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reset-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
    background: rgba(255, 255, 255, 0.1);
}

.reset-session-btn:active {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 2px 10px var(--shadow);
}

/* Reset button click animation */
.reset-session-btn.clicked {
    animation: resetClickEffect 0.6s ease-out;
}

@keyframes resetClickEffect {
    0% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 6px 20px var(--shadow);
    }
    15% {
        transform: translateY(-1px) scale(0.9);
        box-shadow: 0 2px 10px var(--shadow);
    }
    30% {
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
        border-color: var(--accent);
    }
    60% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(6, 214, 160, 0.3);
    }
    100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 6px 20px var(--shadow);
        border-color: var(--border-glass);
    }
}

/* Responsive adjustments for reset session button */
@media (max-width: 768px) {
    .timer-controls {
        gap: 10px;
    }
    
    .reset-session-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .timer-controls {
        gap: 8px;
    }
    
    .reset-session-btn {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}

/* Progress Indicator */
.progress-3d {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px var(--shadow);
    z-index: 1000;
}

.progress-label {
    font-size: 0.9em;
    opacity: 0.7;
    margin-right: 10px;
}

.progress-value {
    font-weight: 600;
    color: var(--accent);
}

/* Session Info — gold hierarchy */
.session-info {
    text-align: center;
    margin-bottom: 8px;
}

.session-type {
    color: #C8922A;
    font-weight: 400;
    font-size: 1em;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.session-progress {
    font-size: 0.8em;
    color: #7A5C1E;
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

/* Prevent 3D bleed-through */
.glass-card,
.focus-content,
.task-section {
    isolation: isolate;
}

/* Ambient Sound Button Active States - NOT nav buttons */
.btn.active:not(.nav-btn),
.liquid-glass-btn.active:not(.nav-btn) {
    background: rgba(176, 224, 230, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.12),
        0 2px 8px rgba(176, 224, 230, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 1) !important;
    font-weight: 400 !important;
    text-shadow: 0 0 10px rgba(176, 224, 230, 0.4) !important;
}

.btn.active:hover:not(.nav-btn),
.liquid-glass-btn.active:hover:not(.nav-btn) {
    background: rgba(176, 224, 230, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 8px 30px rgba(255, 255, 255, 0.15),
        0 3px 12px rgba(176, 224, 230, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 12px rgba(176, 224, 230, 0.5) !important;
}

.btn.active::after:not(.nav-btn),
.liquid-glass-btn.active::after:not(.nav-btn) {
    content: '●';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6em;
    color: rgba(176, 224, 230, 0.9);
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(176, 224, 230, 0.8);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Navigation button active states handled exclusively in responsive.css */
