/* responsive.css */

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        -webkit-overflow-scrolling: touch;
    }

    /* iOS Safari specific fix */
    @supports (-webkit-touch-callout: none) {
        html, body {
            height: -webkit-fill-available;
        }
        
        .container {
            height: -webkit-fill-available;
        }
    }

    .container {
        height: 100vh;
        padding: 100px 15px 30px;
        overflow: hidden;
    }

    /* Mobile-specific task section adjustment */
    .task-section {
        max-height: none; /* No height restriction */
    }

    .task-list {
        max-height: none; /* No height restriction */
        overflow-y: hidden !important; /* Force hidden */
    }

    .focus-content {
        padding: 25px;
        border-radius: 25px; /* Slightly smaller radius on mobile */
    }

    .home-content {
        border-radius: 25px; /* Slightly smaller radius on mobile */
    }

    .ambient-content {
        border-radius: 25px; /* Slightly smaller radius on mobile */
    }

    .task-section {
        border-radius: 25px; /* Slightly smaller radius on mobile */
    }

    .timer-display {
        font-size: 4em;
    }

    .home-content h1 {
        font-size: 2.5em;
        animation: none;
        filter: none;
    }

    .greeting {
        font-size: 1.15em;
    }

    .date-time {
        font-size: 0.95em;
    }

    .progress-3d {
        bottom: 20px;
        left: 20px;
    }

    /* Mobile: hide all scrollbars */
    .task-list::-webkit-scrollbar,
    .mode::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
    }
    
    .task-list,
    .mode {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
}

/* ===== NAVIGATION — APPLE LIQUID GLASS (2025) ===== */

/* Container — nearly invisible, just a hint of glass */
.nav-buttons {
    position: relative;
    display: inline-flex;
    padding: 4px !important;
    border-radius: 28px !important;
    gap: 0 !important;

    /* Nearly invisible — scene bleeds through */
    background: rgba(200, 146, 42, 0.04) !important;

    /* Thin gold-tinted border */
    border: 1px solid rgba(200, 146, 42, 0.15) !important;

    /* Frosted glass blur */
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;

    /* Soft shadow for floating feel */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 0.5px 0 rgba(200, 146, 42, 0.12) !important;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Active pill — elevated glass bubble with specular highlight */
.nav-buttons::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(33.333% - 2.666px);
    border-radius: 24px;

    /* Glass bubble — warm gold tint */
    background: linear-gradient(
        180deg,
        rgba(200, 146, 42, 0.18) 0%,
        rgba(200, 146, 42, 0.04) 100%
    );

    border: 0.5px solid rgba(200, 146, 42, 0.22);

    backdrop-filter: blur(20px) saturate(160%) brightness(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(1.15);

    /* Elevated glass — specular top highlight + shadow underneath */
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(200, 146, 42, 0.35),
        inset 0 -0.5px 0 rgba(0, 0, 0, 0.05);

    /* Spring animation */
    transition:
        left 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 0.3s ease,
        transform 0.2s ease;

    z-index: 0;
}

/* Also add a specular highlight via ::after */
.nav-buttons::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    height: 40%;
    width: calc(33.333% - 2.666px);
    border-radius: 24px 24px 50% 50%;
    background: linear-gradient(
        180deg,
        rgba(200, 146, 42, 0.2) 0%,
        rgba(200, 146, 42, 0.0) 100%
    );
    pointer-events: none;
    z-index: 0;

    /* Follow the pill */
    transition: left 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Position pill + specular for each active state */
.nav-buttons:has([data-mode="home"].active)::before {
    left: 4px;
}
.nav-buttons:has([data-mode="home"].active)::after {
    left: 4px;
}

.nav-buttons:has([data-mode="focus"].active)::before {
    left: calc(33.333% + 1.333px);
}
.nav-buttons:has([data-mode="focus"].active)::after {
    left: calc(33.333% + 1.333px);
}

.nav-buttons:has([data-mode="ambient"].active)::before {
    left: calc(66.666% - 1.333px);
}
.nav-buttons:has([data-mode="ambient"].active)::after {
    left: calc(66.666% - 1.333px);
}

/* Buttons — clean text */
.nav-buttons .nav-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-width: 0;

    background: transparent !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 8px 22px !important;
    margin: 0 !important;

    color: rgba(155, 115, 32, 0.7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif !important;
    text-align: center !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;

    cursor: pointer !important;
    transition:
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.15s ease,
        text-shadow 0.3s ease !important;
}

/* Active — bright white, no scale gimmick */
.nav-buttons .nav-btn.active {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: none;
}

/* Hover — gentle brighten */
.nav-buttons .nav-btn:not(.active):hover {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Press — subtle scale */
.nav-buttons .nav-btn:active {
    transform: scale(0.97) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-buttons .nav-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-buttons .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* End of responsive.css */
