/* ============================================
   Bottom Navigation - Curved SVG Background
   ============================================ */

.bottom-nav-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    /* Total height: SVG curve top + nav bar */
    height: calc(var(--nav-height) + 2px);
}

.bottom-nav-wrap > * {
    pointer-events: auto;
}

/* ---- SVG Curved Shape ---- */
.bottom-nav__shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 0;
    line-height: 0;
}

.bottom-nav__shape svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 -2px 12px rgba(0, 0, 0, 0.24));
}

/* ---- Center Menu Button ----
   Lives as a body-level sibling of .bottom-nav-wrap (see bottom_nav.php)
   so its z-index participates in the body's stacking context. That lets
   the button float ABOVE sticky overlays like the takeaway Sepete Ekle
   CTA without us having to fight the nav-wrap's own stacking. Position
   is `fixed` (not `absolute` like before, when it was nested in the
   wrap) — bottom:18px reproduces the prior visual offset. */
.bottom-nav__menu-btn {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.bottom-nav__menu-btn:active {
    transform: translateX(-50%) scale(0.93);
}

@media (hover: hover) {
    .bottom-nav__menu-icon:hover {
        box-shadow:
            0 6px 28px rgba(0, 0, 0, 0.18),
            0 4px 20px color-mix(in srgb, var(--color-primary) 40%, transparent);
    }
}

.bottom-nav__menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg);

    width: 50px;
    height: 50px;
    box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.12),
            0 2px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
    transition: all var(--transition-base);
}

.bottom-nav__menu-icon svg {
    width: 24px;
    height: 24px;
}

.bottom-nav__menu-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    font-family: var(--font-primary);
    color: #000;

}

/* ---- Nav Bar (inside the shape) ---- */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    padding-bottom: var(--safe-bottom);
    height: var(--nav-height);
    max-width: 1180px;
    margin: auto;
}

.bottom-nav__left,
.bottom-nav__right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.bottom-nav__right {
    justify-content: flex-end;
}

/* Center spacer to keep left/right balanced */
.bottom-nav__center-spacer {
    width: 72px;
    flex-shrink: 0;
}

/* ---- Icon Buttons ---- */
.bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--color-footer-text, rgba(255, 255, 255, 0.7));
    opacity: 0.7;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.bottom-nav__icon svg {
    width: 20px;
    height: 20px;
}
/* Survey icon - soft RGB glow animation */
.survey-icon {
    animation: surveyGlow 6s ease-in-out infinite;
    opacity: 1 !important;
}

.survey-icon svg {
    width: 24px;
    height: 24px;
}

@keyframes surveyGlow {
    0%, 100% { color: #9e702e; }
    25%      { color: #d8c7a8; }
    50%      { color: #7e4a4a; }
    75%      { color: #656565; }
}

.bottom-nav__icon:active {
    opacity: 1;
    transform: scale(0.9);
}

@media (hover: hover) {
    .bottom-nav__icon:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ---- Language Button ---- */
.bottom-nav__lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    color: var(--color-footer-text, var(--color-text));
    transition: all var(--transition-fast);
    height: 36px;
}

.bottom-nav__lang:active {
    transform: scale(0.94);
}

@media (hover: hover) {
    .bottom-nav__lang:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

.bottom-nav__flag {
    font-size: 1.75rem;
    line-height: 1;
    width: 28px;
    height: 18px;
}

.bottom-nav__lang-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}

/* ============================================
   Info Button — Pulse Attractor
   ============================================
   Subtle "look at me" cue on the info button. Auto-stops after first
   open (localStorage flag). Brand-colored, dual-ring, premium feel.
*/
.bottom-nav__info {
    position: relative;
    overflow: visible;
}

.bottom-nav__info .info-pulse,
.bottom-nav__info .info-pulse::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: var(--color-primary, #c8a97e);
    opacity: 0;
}

.bottom-nav__info .info-pulse {
    animation: yqrInfoPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bottom-nav__info .info-pulse::before {
    content: '';
    animation: yqrInfoPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 1.2s;
}

/* Subtle glow under the icon itself */
.bottom-nav__info::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--color-primary, #c8a97e);
    opacity: 0.18;
    animation: yqrInfoGlow 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.bottom-nav__info svg {
    position: relative;
    z-index: 1;
}

/* Stop everything once user has seen it */
.bottom-nav__info.info-seen .info-pulse,
.bottom-nav__info.info-seen .info-pulse::before,
.bottom-nav__info.info-seen::after {
    animation: none;
    display: none;
}

@keyframes yqrInfoPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.55;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

@keyframes yqrInfoGlow {
    0%, 100% { opacity: 0.10; }
    50%      { opacity: 0.28; }
}

/* Respect reduced-motion preference (accessibility) */
@media (prefers-reduced-motion: reduce) {
    .bottom-nav__info .info-pulse,
    .bottom-nav__info .info-pulse::before,
    .bottom-nav__info::after {
        animation: none !important;
    }
}
