/* Fonika Bottom Nav - Frontend Styles */

.fbn-nav {
    display: none;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--fbn-z, 9999);
    direction: rtl;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .fbn-nav {
        display: flex;
        align-items: stretch;
    }
    body.fbn-active {
        padding-bottom: 72px;
    }
}

.fbn-nav a.fbn-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    padding: 8px 2px 6px;
    position: relative;
    transition: transform .18s ease;
}

.fbn-nav a.fbn-item:active {
    transform: scale(0.92);
}

.fbn-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.fbn-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.fbn-label {
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
}

.fbn-no-labels .fbn-label {
    display: none;
}

.fbn-badge {
    position: absolute;
    top: -4px;
    left: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--fbn-badge, #e0245e);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
}

/* ============ Template 1: Classic Gold (matches provided screenshot) ============ */
.fbn-template-classic-gold {
    background: var(--fbn-bg, #0e1633);
}
.fbn-template-classic-gold .fbn-icon-wrap {
    background: var(--fbn-icon-bg, #f2b705);
    border-radius: 50%;
    color: var(--fbn-icon-color, #0e1633);
}
.fbn-template-classic-gold .fbn-label {
    color: var(--fbn-text, #fff);
}
.fbn-template-classic-gold .fbn-active-item .fbn-icon-wrap {
    box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}
.fbn-template-classic-gold .fbn-active-item .fbn-label {
    color: var(--fbn-active, #f2b705);
}

/* ============ Template 2: Floating Pill ============ */
.fbn-template-floating-pill {
    background: transparent;
    bottom: 12px;
    padding-inline: 12px;
}
.fbn-template-floating-pill::before {
    content: "";
    position: absolute;
    inset: 0 12px;
    background: var(--fbn-bg, #0e1633);
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: -1;
}
.fbn-template-floating-pill .fbn-icon-wrap {
    background: var(--fbn-icon-bg, #f2b705);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: var(--fbn-icon-color, #0e1633);
}
.fbn-template-floating-pill .fbn-icon-wrap svg { width: 17px; height: 17px; }
.fbn-template-floating-pill .fbn-label { color: var(--fbn-text, #fff); font-size: 10.5px; }
.fbn-template-floating-pill .fbn-active-item .fbn-label { color: var(--fbn-active, #f2b705); }
.fbn-template-floating-pill a.fbn-item { padding: 10px 2px; }

/* ============ Template 3: Minimal Line ============ */
.fbn-template-minimal-line {
    background: var(--fbn-bg, #ffffff);
    border-top: 1px solid rgba(0,0,0,.06);
}
.fbn-template-minimal-line .fbn-icon-wrap {
    color: var(--fbn-icon-color, #666);
    width: auto;
    height: auto;
}
.fbn-template-minimal-line .fbn-icon-wrap svg { width: 22px; height: 22px; }
.fbn-template-minimal-line .fbn-label { color: var(--fbn-text, #666); }
.fbn-template-minimal-line a.fbn-item::after {
    content: "";
    position: absolute;
    top: -1px;
    right: 30%;
    left: 30%;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    transition: background .2s ease;
}
.fbn-template-minimal-line .fbn-active-item::after {
    background: var(--fbn-active, #f2b705);
}
.fbn-template-minimal-line .fbn-active-item .fbn-icon-wrap,
.fbn-template-minimal-line .fbn-active-item .fbn-label {
    color: var(--fbn-active, #f2b705);
}

/* ============ Template 4: Glass Blur ============ */
.fbn-template-glass-blur {
    background: color-mix(in srgb, var(--fbn-bg, #0e1633) 75%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
}
.fbn-template-glass-blur .fbn-icon-wrap {
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    color: var(--fbn-icon-bg, #f2b705);
}
.fbn-template-glass-blur .fbn-active-item .fbn-icon-wrap {
    background: var(--fbn-icon-bg, #f2b705);
    color: var(--fbn-icon-color, #0e1633);
}
.fbn-template-glass-blur .fbn-label { color: var(--fbn-text, #fff); }
.fbn-template-glass-blur .fbn-active-item .fbn-label { color: var(--fbn-active, #f2b705); }

/* ============ Template 5: Soft Card ============ */
.fbn-template-soft-card {
    background: var(--fbn-bg, #f4f5f8);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.fbn-template-soft-card .fbn-icon-wrap {
    background: #fff;
    border-radius: 12px;
    color: var(--fbn-icon-bg, #f2b705);
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}
.fbn-template-soft-card .fbn-label { color: var(--fbn-text, #555); }
.fbn-template-soft-card .fbn-active-item .fbn-icon-wrap {
    background: var(--fbn-icon-bg, #f2b705);
    color: var(--fbn-icon-color, #0e1633);
}
.fbn-template-soft-card .fbn-active-item .fbn-label { color: var(--fbn-active, #f2b705); font-weight: 600; }

/* ============ Template 6: Neon Outline ============ */
.fbn-template-neon-outline {
    background: var(--fbn-bg, #0a0f24);
}
.fbn-template-neon-outline .fbn-icon-wrap {
    border-radius: 50%;
    color: var(--fbn-icon-bg, #f2b705);
    box-shadow: inset 0 0 0 1.5px rgba(242,183,5,.35);
    transition: box-shadow .2s ease;
}
.fbn-template-neon-outline .fbn-label { color: var(--fbn-text, #cfd3e6); }
.fbn-template-neon-outline .fbn-active-item .fbn-icon-wrap {
    box-shadow: inset 0 0 0 1.5px var(--fbn-active, #f2b705), 0 0 10px 1px var(--fbn-active, #f2b705);
    color: var(--fbn-active, #f2b705);
}
.fbn-template-neon-outline .fbn-active-item .fbn-label { color: var(--fbn-active, #f2b705); }

/* ============ Template 7: Bold Blocks ============ */
.fbn-template-bold-blocks {
    background: var(--fbn-bg, #0e1633);
}
.fbn-template-bold-blocks a.fbn-item {
    padding: 10px 2px 8px;
    transition: background .2s ease;
}
.fbn-template-bold-blocks .fbn-icon-wrap {
    color: var(--fbn-text, #fff);
}
.fbn-template-bold-blocks .fbn-label { color: var(--fbn-text, #fff); }
.fbn-template-bold-blocks .fbn-active-item {
    background: var(--fbn-icon-bg, #f2b705);
}
.fbn-template-bold-blocks .fbn-active-item .fbn-icon-wrap,
.fbn-template-bold-blocks .fbn-active-item .fbn-label {
    color: var(--fbn-icon-color, #0e1633);
    font-weight: 600;
}
