/* ==========================================================================
   Default Theme Footer Styles
   Typography & Color Harmonization (Bootstrap 5.3 + Impeccable Design System)
   ========================================================================== */

:root {
    --footer-bg: var(--bs-tertiary-bg, #f8f9fa);
    --footer-text-primary: var(--bs-body-color, #212529);
    --footer-text-secondary: var(--bs-secondary-color, #6c757d);
    --footer-text-muted: var(--bs-tertiary-color, #8c959f);
    --footer-border: var(--bs-border-color, #dee2e6);
    --footer-card-bg: var(--bs-card-bg, #ffffff);
    --footer-card-border: var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
    --footer-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --footer-card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.07);

    /* Channel Tint Accents (Light Mode) */
    --footer-phone-bg: rgba(13, 110, 253, 0.1);
    --footer-phone-color: #0d6efd;
    --footer-wa-bg: rgba(25, 135, 84, 0.1);
    --footer-wa-color: #198754;
    --footer-mail-bg: rgba(13, 202, 240, 0.12);
    --footer-mail-color: #087990;
    --footer-office-bg: rgba(255, 193, 7, 0.15);
    --footer-office-color: #997404;
    --footer-work-bg: rgba(220, 53, 69, 0.1);
    --footer-work-color: #dc3545;

    --footer-pill-bg: var(--bs-body-bg, #ffffff);
    --footer-pill-border: var(--bs-border-color, #e2e8f0);
    --footer-pill-hover-bg: var(--bs-body-bg, #ffffff);
    --footer-pill-hover-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"],
body.dark-mode {
    --footer-bg: #14171a;
    --footer-text-primary: #f1f3f5;
    --footer-text-secondary: #adb5bd;
    --footer-text-muted: #868e96;
    --footer-border: #23272b;
    --footer-card-bg: #1c2024;
    --footer-card-border: rgba(255, 255, 255, 0.08);
    --footer-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --footer-card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.4);

    /* Channel Tint Accents (Dark Mode) */
    --footer-phone-bg: rgba(13, 110, 253, 0.2);
    --footer-phone-color: #6ea8fe;
    --footer-wa-bg: rgba(25, 135, 84, 0.2);
    --footer-wa-color: #75b798;
    --footer-mail-bg: rgba(13, 202, 240, 0.2);
    --footer-mail-color: #6edff6;
    --footer-office-bg: rgba(255, 193, 7, 0.2);
    --footer-office-color: #ffda6a;
    --footer-work-bg: rgba(220, 53, 69, 0.2);
    --footer-work-color: #ea868f;

    --footer-pill-bg: #1f2429;
    --footer-pill-border: rgba(255, 255, 255, 0.1);
    --footer-pill-hover-bg: #262c32;
    --footer-pill-hover-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Footer Base Container */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-primary);
    border-top: 1px solid var(--footer-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: auto;
    font-size: 0.9375rem;
}

/* Brand Wordmark & Title */
.site-footer .footer-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--footer-text-primary);
    text-wrap: balance;
}

.site-footer .brand-text-gothic {
    font-family: var(--bs-font-sans-serif);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
}

/* Editorial Description */
.site-footer .footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--footer-text-secondary);
    max-width: 52ch;
    text-wrap: pretty;
}

/* Card Section Titles */
.footer-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--footer-text-primary);
    text-wrap: balance;
    margin-bottom: 1rem;
}

.footer-card-subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--footer-text-secondary);
    margin-bottom: 0.75rem;
}

/* Links & Nav Items */
.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.transition-link {
    transition: transform 0.2s ease, color 0.2s ease, padding 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.transition-link:hover,
.transition-link:focus-visible {
    color: var(--bs-primary, #0d6efd) !important;
    transform: translateX(4px);
}

[dir="rtl"] .transition-link:hover,
[dir="rtl"] .transition-link:focus-visible {
    transform: translateX(-4px);
}

/* Feeds & Utility Pills */
.feeds-area {
    margin-top: 1.25rem;
}

.footer-pill-link {
    background-color: var(--footer-pill-bg);
    border: 1px solid var(--footer-pill-border);
    color: var(--footer-text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--bs-border-radius-pill, 50rem);
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.footer-pill-link:hover,
.footer-pill-link:focus-visible {
    background-color: var(--footer-pill-hover-bg);
    border-color: var(--bs-primary, #0d6efd);
    color: var(--bs-primary, #0d6efd) !important;
    box-shadow: var(--footer-pill-hover-shadow);
    transform: translateY(-1px);
}

/* Cards (Contact & Map) */
.map-card,
.contact-card {
    border: 1px solid var(--footer-card-border) !important;
    background-color: var(--footer-card-bg);
    box-shadow: var(--footer-card-shadow) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.map-card:hover,
.contact-card:hover {
    box-shadow: var(--footer-card-shadow-hover) !important;
}

/* Contact List & Semantic Icon Boxes */
.contact-list li {
    margin-bottom: 0.875rem;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.footer-contact-item.align-start {
    align-items: flex-start;
}

.footer-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius-pill, 50rem);
    font-size: 1.05rem;
    transition: transform 0.25s ease, background-color 0.25s ease;
    flex-shrink: 0;
}

.footer-icon-phone {
    background-color: var(--footer-phone-bg);
    color: var(--footer-phone-color);
}

.footer-icon-wa {
    background-color: var(--footer-wa-bg);
    color: var(--footer-wa-color);
}

.footer-icon-mail {
    background-color: var(--footer-mail-bg);
    color: var(--footer-mail-color);
}

.footer-icon-office {
    background-color: var(--footer-office-bg);
    color: var(--footer-office-color);
}

.footer-icon-work {
    background-color: var(--footer-work-bg);
    color: var(--footer-work-color);
}

.contact-card:hover .footer-icon-box {
    transform: scale(1.08);
}

.footer-contact-text {
    font-size: 0.9375rem;
    color: var(--footer-text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.footer-contact-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--footer-text-primary);
    transition: color 0.2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
    color: var(--bs-primary, #0d6efd) !important;
}

/* Social Media Buttons */
.social-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-secondary);
    background-color: var(--footer-pill-bg);
    border: 1px solid var(--footer-pill-border);
    border-radius: var(--bs-border-radius-pill, 50rem);
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.social-icon-btn:hover,
.social-icon-btn:focus-visible {
    color: #ffffff !important;
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.social-icon-btn:hover i,
.social-icon-btn:focus-visible i {
    color: #ffffff !important;
}

/* Interactive Map Container */
.map-container {
    filter: grayscale(100%);
    transition: filter 0.4s ease, box-shadow 0.4s ease;
    border-radius: var(--bs-border-radius, 0.375rem);
    overflow: hidden;
    height: 280px;
}

.map-card:hover .map-container {
    filter: grayscale(0%);
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Copyright & Production Section */
.copyright-section {
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text-secondary);
    font-size: 0.84375rem;
    line-height: 1.5;
}

.copyright-section strong {
    color: var(--footer-text-primary);
    font-weight: 600;
}

.producer-link {
    color: var(--footer-text-secondary);
    transition: color 0.2s ease;
}

.producer-link:hover,
.producer-link:focus-visible {
    color: var(--bs-primary, #0d6efd);
}

.producer-link:hover .akm-logo-footer {
    transform: rotate(15deg) scale(1.1);
}

.akm-logo-footer {
    transition: transform 0.25s ease;
    display: inline-block;
}

.version-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--bs-border-radius-pill, 50rem);
}
