/**
 * Pocket-Sommelier - Navigation Styles
 * Bottom Navigation mit Glassmorphismus
 */

/* ==================== Glass Navigation Container ==================== */
.glass-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    
    /* Glassmorphismus */
    background: rgba(250, 245, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 -4px 30px rgba(197, 160, 89, 0.08);
    
    /* Safe Area für iPhone Notch/Home Indicator */
    padding-bottom: calc(var(--safe-area-bottom) + 8px);
    padding-top: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

/* ==================== Navigation Container ==================== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 26rem;
    margin: 0 auto;
    gap: 0;
}

/* ==================== Standard Navigation Items ==================== */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 2px 10px 2px;
    color: var(--gray-400);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active {
    color: var(--gold);
}

/* ==================== Navigation Icon ==================== */
.nav-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
}

/* ==================== Navigation Label ==================== */
.nav-label {
    font-size: 0.625rem;
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* ==================== Active Indicator Dot ==================== */
.active-dot {
    width: 4px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: all 0.2s ease;
}

.nav-item.active .active-dot {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ==================== Icon Wrapper (für Badge-Positionierung) ==================== */
.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Notification Badge ==================== */
.nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

/* ==================== Hero Button (Scan) ==================== */
.nav-item-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    padding: 0 2px 10px 2px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.hero-button {
    /* Größe: 62x62px */
    width: 62px;
    height: 62px;
    
    /* Positionierung: 8px über der Baseline */
    transform: translateY(-8px);
    
    /* Styling */
    background-color: var(--gold);
    color: white;
    border-radius: 9999px;
    
    /* Flexbox für Icon-Zentrierung */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Äußerer Kreis-Ring */
    box-shadow: 
        0 0 0 6px rgba(197, 160, 89, 0.25),
        0 0 0 12px rgba(197, 160, 89, 0.10),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    /* Animation */
    transition: all 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 0 0 6px rgba(197, 160, 89, 0.32),
        0 0 0 12px rgba(197, 160, 89, 0.15),
        0 6px 10px -2px rgba(0, 0, 0, 0.15),
        0 3px 6px -2px rgba(0, 0, 0, 0.1);
}

.hero-button:active {
    transform: translateY(-8px) scale(0.95);
}

.hero-button svg {
    width: 28px;
    height: 28px;
}

/* KEIN Label für Hero-Button! */
/* KEIN Active-Dot für Hero-Button! */

/* ==================== Hero Button: Capture-Ready State ==================== */
.hero-button.capture-ready {
    position: relative;
    background-color: #FFFFFF;
    color: rgba(125, 185, 255, 0.9);
    animation: heroCaptureBreath 1.8s ease-in-out infinite;
}

/* Weißer Shutter-Ring (wie iOS-Kamera-Button) */
.hero-button.capture-ready::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(125, 185, 255, 0.9);
    border-radius: 9999px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroRingPulse 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroCaptureBreath {
    0%, 100% {
        transform: translateY(-8px) scale(1);
        box-shadow: 
            0 0 0 6px rgba(125, 185, 255, 0.35),
            0 0 0 12px rgba(125, 185, 255, 0.15),
            0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        box-shadow: 
            0 0 0 8px rgba(125, 185, 255, 0.55),
            0 0 0 16px rgba(125, 185, 255, 0.25),
            0 0 24px rgba(125, 185, 255, 0.35),
            0 6px 10px -2px rgba(0, 0, 0, 0.15);
    }
}

@keyframes heroRingPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ==================== Navigation Ripple Effect ==================== */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--gold);
    opacity: 0;
    transform: scale(0);
}

.nav-item:active::before {
    animation: ripple 0.4s ease-out;
}

/* ==================== Hide Navigation (für Fullscreen-Modi) ==================== */
.glass-nav.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* ==================== Responsive Adjustments ==================== */
@media (min-width: 640px) {
    .nav-container {
        max-width: 24rem;
    }
}

@media (max-width: 320px) {
    .nav-label {
        font-size: 0.5rem;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .hero-button {
        width: 48px;
        height: 48px;
    }
    
    .hero-button svg {
        width: 22px;
        height: 22px;
    }
}
