/**
 * Bibiheybet.com - Footer Stilləri
 */

/* ============================================
   Footer
   ============================================ */
.bb-footer {
    background-color: var(--bb-bg-secondary);
    padding-bottom: calc(1rem + 64px);
}

.bb-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

/* ============================================
   Logolar (Bibiheybət + imamzaman, eyni ölçü)
   ============================================ */
.bb-footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.bb-footer-logo {
    display: block;
    transition: opacity var(--bb-transition);
}

.bb-footer-logo:hover {
    opacity: 0.75;
}

.bb-footer-logo img,
.bb-footer-logo-imamzaman img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* ============================================
   Dil seçimi (bayraqlar)
   ============================================ */
.bb-footer-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.bb-footer-lang-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: opacity var(--bb-transition);
}

.bb-footer-lang-item:hover {
    opacity: 0.85;
}

.bb-footer-lang-item.bb-footer-lang-active {
    opacity: 0.6;
    cursor: default;
}

.bb-footer-lang .bb-lang-flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

/* ============================================
   Nav (üfüqi linklər, bir sətirdə)
   ============================================ */
.bb-footer-nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0;
    margin-bottom: 1.25rem;
    width: 100%;
}

.bb-footer-nav a {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--bb-color-muted);
    transition: color var(--bb-transition);
    padding: 0.15rem 0;
    white-space: nowrap;
}

.bb-footer-nav a:hover {
    color: var(--bb-color-ton2);
}

.bb-footer-nav-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--bb-color-muted);
    opacity: 0.3;
    margin: 0 0.55rem;
    flex-shrink: 0;
}

/* ============================================
   Sosial ikonlar (mərkəzdə, üfüqi)
   ============================================ */
.bb-footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.bb-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--bb-color-muted);
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--bb-transition);
    flex-shrink: 0;
}

.bb-footer-social a svg {
    width: 16px;
    height: 16px;
}

.bb-footer-social a:hover {
    color: var(--bb-color-accent);
    background: rgba(201, 168, 76, 0.12);
}

.bb-footer-location {
    color: var(--bb-color-muted);
}

/* ============================================
   Separator + Copyright
   ============================================ */
.bb-footer-line {
    width: 100%;
    max-width: 320px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(201, 168, 76, 0.18) 30%,
        rgba(201, 168, 76, 0.18) 70%,
        transparent
    );
    margin-bottom: 1rem;
}

.bb-footer-copy {
    font-size: 0.72rem;
    color: var(--bb-color-muted);
    opacity: 0.5;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   Responsive - Mobil
   ============================================ */
@media (max-width: 575px) {
    .bb-footer-inner {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .bb-footer-logos {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .bb-footer-logo img,
    .bb-footer-logo-imamzaman img {
        max-height: 36px;
        max-width: 140px;
    }

    .bb-footer-nav {
        gap: 0.3rem 0;
        margin-bottom: 1rem;
    }

    .bb-footer-nav a {
        font-size: 0.75rem;
    }

    .bb-footer-nav-dot {
        width: 2px;
        height: 2px;
        margin: 0 0.4rem;
    }

    .bb-footer-social {
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }

    .bb-footer-social a {
        width: 30px;
        height: 30px;
    }

    .bb-footer-social a svg {
        width: 14px;
        height: 14px;
    }

    .bb-footer-line {
        max-width: 200px;
    }

    .bb-footer-copy {
        font-size: 0.68rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .bb-footer-inner {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .bb-footer-logo img,
    .bb-footer-logo-imamzaman img {
        max-height: 56px;
        max-width: 220px;
    }

    .bb-footer-nav a {
        font-size: 0.85rem;
    }

    .bb-footer-nav-dot {
        margin: 0 0.65rem;
    }
}

/* ============================================
   RTL Dəstək
   ============================================ */
html[dir="rtl"] .bb-footer-nav a,
html[dir="rtl"] .bb-footer-copy {
    font-family: 'Noto Naskh Arabic', 'Amiri', serif;
}
