/* bottom-nav.css — Bottom navigation bar + Ruthless Mode widget
 * Visual-only desktop-app-style elements for the landing page.
 * Does NOT own page layout or section styles. */

/* ── BOTTOM NAV BAR ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(124, 58, 237, 0.22);
    padding: 0;
    display: flex;
    align-items: center;
    height: 56px;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5), 0 -1px 0 rgba(124, 58, 237, 0.15), 0 -8px 24px rgba(124, 58, 237, 0.06);
    transform: translateY(100%);
    animation: bottomNavSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards;
}

@keyframes bottomNavSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bottom-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
    flex-shrink: 0;
}

.bottom-nav-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 60%, #3b82f6 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
    position: relative;
}

.bottom-nav-brand-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.bottom-nav-brand-text {
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #f0f0f8;
    letter-spacing: -0.3px;
}

.bottom-nav-brand-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: #6b7280;
    margin-top: 1px;
}

.bottom-nav-tabs {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 2px;
    height: 100%;
    padding: 0 8px;
}

.bottom-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
}

.bottom-nav-tab:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 -2px 12px rgba(124, 58, 237, 0.08);
}

.bottom-nav-tab.active {
    background: rgba(124, 58, 237, 0.14);
}

.bottom-nav-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #7c3aed;
    border-radius: 0 0 2px 2px;
}

.bottom-nav-tab-icon {
    font-size: 1.1rem;
    line-height: 1;
    color: #6b7280;
    transition: color 0.25s;
}

.bottom-nav-tab.active .bottom-nav-tab-icon {
    color: #8b5cf6;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.4));
}

.bottom-nav-tab:hover .bottom-nav-tab-icon {
    color: #9ca3af;
}

.bottom-nav-tab-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    color: #6b7280;
    letter-spacing: 0.02em;
    transition: color 0.25s;
    white-space: nowrap;
}

.bottom-nav-tab.active .bottom-nav-tab-label {
    color: #8b5cf6;
}

.bottom-nav-tab:hover .bottom-nav-tab-label {
    color: #9ca3af;
}

/* Status dot on the right side of nav */
.bottom-nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
    flex-shrink: 0;
}

.bottom-nav-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bottom-nav-version {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ── RUTHLESS MODE WIDGET ── */
.ruthless-widget {
    position: fixed;
    bottom: 72px;
    left: 24px;
    z-index: 89;
    width: 240px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(124, 58, 237, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateX(-20px);
    animation: ruthlessSlideIn 0.5s ease 2s forwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ruthless-widget:hover {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15), 0 0 16px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@keyframes ruthlessSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.ruthless-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ruthless-icon {
    font-size: 1rem;
    line-height: 1;
}

.ruthless-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: #8b5cf6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ruthless-info-icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #6b7280;
    cursor: help;
}

.ruthless-countdown {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.ruthless-progress {
    width: 100%;
    height: 4px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ruthless-progress-fill {
    height: 100%;
    width: 62%;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.ruthless-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ruthless-stat {
    text-align: center;
}

.ruthless-stat-value {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f0f0f8;
    line-height: 1;
}

.ruthless-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.ruthless-cta {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.ruthless-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45);
}

/* ── MOBILE: hide widget, simplify nav ── */
@media (max-width: 768px) {
    .ruthless-widget {
        display: none;
    }

    .bottom-nav-brand {
        display: none;
    }

    .bottom-nav-status {
        display: none;
    }

    .bottom-nav-tab {
        padding: 8px 10px;
    }

    .bottom-nav-tab-label {
        font-size: 0.52rem;
    }

    .bottom-nav {
        height: 52px;
    }
}

@media (max-width: 480px) {
    .bottom-nav-tab-label {
        display: none;
    }

    .bottom-nav-tab-icon {
        font-size: 1.3rem;
    }

    .bottom-nav-tab {
        padding: 10px 14px;
    }
}

/* ── Add bottom padding to body so content isn't hidden behind fixed nav ── */
body.has-bottom-nav {
    padding-bottom: 56px;
}

@media (max-width: 768px) {
    body.has-bottom-nav {
        padding-bottom: 52px;
    }
}
