/* =============================================================
   IntelliShop Footer — assets/css/footer.css
   All styles for includes/footer.php (.is-footer scope)
   ============================================================= */

/* ── Base ── */
.is-footer,
.is-footer .footer-inner {
    background: #0d1117;
    color: #94a3b8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
.is-footer * { box-sizing: border-box; }

/* ── Gradient accent line — removed (noisy on footer) ── */

/* ── Container ── */
.is-footer .fw {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Main grid ── */
.is-footer .f-main {
    padding: 28px 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.is-footer .f-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.8fr;
    gap: 32px;
    align-items: start;
}

/* ── Brand ── */
.is-footer .f-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
}
.is-footer .f-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(102,126,234,0.4);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.is-footer .f-logo:hover .f-logo-icon {
    transform: rotate(-10deg) scale(1.12);
    box-shadow: 0 8px 24px rgba(102,126,234,0.6);
}
.is-footer .f-logo-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.is-footer .f-tagline {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 12px;
}

/* ── Social icons ── */
.is-footer .f-socials {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}
.is-footer .f-social {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    color: #4a5568;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.is-footer .f-social:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.is-footer .f-fb:hover { background: #1877f2; border-color: #1877f2; }
.is-footer .f-ig:hover { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); border-color: #dc2743; }
.is-footer .f-tw:hover { background: #1da1f2; border-color: #1da1f2; }
.is-footer .f-li:hover { background: #0a66c2; border-color: #0a66c2; }
.is-footer .f-yt:hover { background: #ff0000; border-color: #ff0000; }

/* ── Column titles ── */
.is-footer .f-title {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.is-footer .f-title::before,
.is-footer .f-title::after { display: none; content: none; }

/* ── Nav links ── */
.is-footer .f-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.is-footer .f-list li { margin-bottom: 1px; }
.is-footer .f-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    background: none;
    transition: color 0.18s ease;
    position: relative;
}
.is-footer .f-list a::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #667eea;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.18s ease;
}
.is-footer .f-list a:hover { color: #cbd5e1; }
.is-footer .f-list a:hover::before { opacity: 1; }

/* ── Newsletter ── */
.is-footer .f-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.6;
}
.is-footer .f-form-row {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.is-footer .f-form-row:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.is-footer .f-email {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    padding: 11px 12px;
    min-width: 0;
}
.is-footer .f-email::placeholder { color: #475569; }
.is-footer .f-sub-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.is-footer .f-sub-btn:hover { opacity: 0.88; transform: scale(1.03); }
.is-footer .f-sub-btn:active { transform: scale(0.97); }
.is-footer .f-form-note {
    font-size: 11px;
    color: #475569;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Contact ── */
.is-footer .f-contacts { display: flex; flex-direction: column; gap: 4px; }
.is-footer .f-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    transition: color 0.18s ease;
}
.is-footer .f-contact i { color: #667eea; font-size: 14px; flex-shrink: 0; }
.is-footer .f-contact:hover { color: #cbd5e1; }

/* ── Payment strip ── */
.is-footer .f-pay {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.is-footer .f-pay .fw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.is-footer .f-pay-label {
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}
.is-footer .f-pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.is-footer .f-pay-badge {
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    user-select: none;
    transition: color 0.18s ease, border-color 0.18s ease;
    cursor: default;
}
.is-footer .f-pay-badge:hover {
    color: #94a3b8;
    border-color: rgba(102,126,234,0.3);
}

/* ── Bottom bar ── */
.is-footer .f-bar { padding: 14px 0; }
.is-footer .f-bar .fw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.is-footer .f-copy {
    font-size: 12px;
    color: #475569;
    margin: 0;
}
.is-footer .f-copy strong { color: #64748b; }
.is-footer .f-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.is-footer .f-bar-links a {
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    background: none;
    transition: color 0.18s ease;
}
.is-footer .f-bar-links a:hover { color: #94a3b8; }
.is-footer .f-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    color: #667eea;
    transition: all 0.2s ease;
}
.is-footer .f-admin-pill:hover {
    background: rgba(102,126,234,0.2);
    color: #a78bfa;
}

/* ── Back to top ── */
.f-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102,126,234,0.45);
    opacity: 0;
    transform: translateY(16px) scale(0.8);
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 999;
}
.f-top-btn.visible { opacity: 1; transform: translateY(0) scale(1); }
.f-top-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 24px rgba(102,126,234,0.55);
}
.f-top-btn:active { transform: scale(0.95); }
.f-top-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid rgba(102,126,234,0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.f-top-btn.visible:hover::before { opacity: 1; transform: scale(1); }

/* ── Toast ── */
.f-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}
.f-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.f-toast.success { border-color: rgba(16,185,129,0.4); }
.f-toast.success i { color: #10b981; }
.f-toast.error   { border-color: rgba(239,68,68,0.4); }
.f-toast.error   i { color: #ef4444; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .is-footer .f-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .is-footer .f-brand { grid-column: 1 / -1; }
    .is-footer .fw { padding: 0 24px; }
}
@media (max-width: 640px) {
    .is-footer .f-grid { grid-template-columns: 1fr; gap: 24px; }
    .is-footer .f-brand { grid-column: auto; text-align: center; }
    .is-footer .f-logo { justify-content: center; }
    .is-footer .f-tagline { text-align: center; }
    .is-footer .f-socials { justify-content: center; }
    .is-footer .f-links-col,
    .is-footer .f-newsletter-col { text-align: center; }
    .is-footer .f-list a { justify-content: center; }
    .is-footer .f-contacts { align-items: center; }
    .is-footer .f-pay .fw { flex-direction: column; align-items: center; }
    .is-footer .f-pay-badges { justify-content: center; }
    .is-footer .f-bar .fw { flex-direction: column; align-items: center; text-align: center; }
    .is-footer .f-bar-links { justify-content: center; }
    .is-footer .fw { padding: 0 16px; }
    .is-footer .f-main { padding: 20px 0 10px; }
    .f-top-btn { bottom: 80px; right: 14px; width: 40px; height: 40px; font-size: 16px; }
    .f-toast {
        left: 12px; right: 12px;
        transform: translateY(16px);
        white-space: normal;
        text-align: center;
        border-radius: 12px;
    }
    .f-toast.show { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .is-footer .f-social,
    .is-footer .f-list a,
    .is-footer .f-contact,
    .f-top-btn { transition: none; animation: none; }
}
