/**
 * Footer Block v3.6 — Static Styles
 *
 * Dynamic CSS (inline): Color scheme, style preset, footer variants, background effects
 * Static CSS (cached): Base layout, grid, responsive
 *
 * @package felis-cattery
 * @since 3.6.0
 */

/* /blocks/footer/style.css */

/* ==========================================================================
   BASE LAYOUT
   ========================================================================== */

.boost-footer {
    width: 100%;
    position: relative;
}

.boost-footer__inner {
    width: 100%;
    padding: 3rem 1rem 1.5rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Desktop: reduced top padding for better spacing */
@media (min-width: 1025px) {
    .boost-footer__inner {
        padding-top: 1.5rem;
    }
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */

.boost-footer__grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   BOTTOM BAR
   ========================================================================== */

.boost-footer__bottom {
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

/* Back to top hover */
.boost-footer__back-to-top:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) !important;
}

/* ─── Legal links ─── */

.boost-footer__legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.boost-footer__legal-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.boost-footer__legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.boost-footer__legal-sep {
    opacity: 0.4;
    font-size: 0.8rem;
    user-select: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: 2 columns grid */
@media (max-width: 1024px) {
    .boost-footer__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .boost-footer__brand {
        grid-column: span 2 !important;
        margin-bottom: 1rem;
    }
}

/* Mobile: 1 column grid */
@media (max-width: 640px) {
    .boost-footer__grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .boost-footer__brand {
        grid-column: span 1 !important;
    }
    
    .boost-footer__bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .boost-footer__bottom .boost-footer__slot {
        justify-content: center !important;
    }
    
    /* ── Mobile Brand Position ── */
    [data-mobile-brand="bottom"] .boost-footer__brand {
        order: 99;
        margin-top: 1.5rem;
    }
    
    [data-mobile-columns="open"][data-mobile-brand="bottom"] .boost-footer__brand {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(128, 128, 128, 0.2);
    }
    
    /* ── Mobile Accordion ── */
    [data-mobile-columns="accordion"] .boost-footer__grid {
        gap: 0 !important;
    }
    
    [data-mobile-columns="accordion"] .boost-footer__col {
        border-top: 1px solid rgba(128, 128, 128, 0.2);
    }
    
    [data-mobile-columns="accordion"] .boost-footer__col:last-child {
        border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    }
    
    [data-mobile-columns="accordion"] .boost-footer__col-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 1rem 0;
        margin: 0 !important;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    [data-mobile-columns="accordion"] .boost-footer__col-icon {
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }
    
    [data-mobile-columns="accordion"] .boost-footer__col-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    [data-mobile-columns="accordion"] .boost-footer__col.is-open .boost-footer__col-body {
        padding-bottom: 1rem;
    }
    
    /* Chevron/arrow: rotate 180deg */
    [data-mobile-columns="accordion"] .boost-footer__col.is-open .boost-footer__col-icon {
        transform: rotate(180deg);
    }
    
    /* Plus icon: rotate 45deg to become × */
    [data-mobile-icon="plus"] .boost-footer__col.is-open .boost-footer__col-icon {
        transform: rotate(45deg);
    }
}

/* ── Desktop: accordion elements hidden ── */
@media (min-width: 641px) {
    .boost-footer__col-icon {
        display: none !important;
    }
    
    .boost-footer__col-body {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* =============================================================================
   STICKY FOOTER (F8)
   Forces footer to page bottom on short-content pages.
   Apply .boost-footer--sticky on the footer element.
   ============================================================================= */

.boost-footer--sticky {
    /* Works with: body { display: flex; flex-direction: column; min-height: 100vh; }
       and main { flex: 1; } — typically set by the theme wrapper. */
    margin-top: auto;
}

/* =============================================================================
   CTA BUTTON (F7)
   ============================================================================= */

.boost-footer__cta-btn:hover {
    opacity: 0.85;
}

/* =============================================================================
   FLOATING ACTION BUTTONS (WhatsApp / Telegram)
   ============================================================================= */

.boost-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.boost-fab:active {
    transform: scale(0.95);
}

.boost-fab--whatsapp:hover {
    background: #20ba5a;
}

.boost-fab--telegram:hover {
    background: #0077b5;
}