/**
 * ShopCore Footer Styles
 * Dark themed, modern e-commerce footer matching Time's Tech specifications
 */

.sc-site-footer {
    background-color: #000000;
    color: #cbd5e1;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    border-top: 1px solid #1a1e24;
    position: relative;
    overflow: hidden;
}

.sc-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Main Footer 4-Column Grid
   ========================================= */
.sc-main-footer {
    padding: 55px 0 40px;
}

.sc-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 0.8fr 1fr;
    gap: 40px;
    align-items: start;
}

.sc-footer-col {
    display: flex;
    flex-direction: column;
}

/* Column Headings */
.sc-footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    position: relative;
    letter-spacing: 0.3px;
}

.sc-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #ef1d25;
    border-radius: 2px;
}

/* =========================================
   Col 1: Brand & Contacts
   ========================================= */
.sc-footer-logo {
    margin-bottom: 24px;
}

.sc-footer-brand-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.sc-footer-brand-text:hover {
    opacity: 0.9;
}

.sc-brand-prim {
    color: #ffffff;
}

.sc-brand-acc {
    color: #ef1d25;
}

.sc-footer-logo-link img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* Contact Items */
.sc-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.sc-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef1d25;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.sc-footer-contact-item:hover .sc-contact-icon {
    background: #ef1d25;
    color: #ffffff;
    border-color: #ef1d25;
    transform: scale(1.05);
}

.sc-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-contact-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sc-contact-val {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-contact-val:hover {
    color: #ef1d25;
}

/* Social Buttons */
.sc-footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.sc-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sc-social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sc-social-fb {
    background: #1877f2;
}

.sc-social-yt {
    background: #ff0000;
}

.sc-social-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* =========================================
   Col 2: Branch Outlets
   ========================================= */
.sc-outlet-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.sc-outlet-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(239, 29, 37, 0.12);
    border: 1px solid rgba(239, 29, 37, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef1d25;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sc-outlet-content {
    flex: 1;
}

.sc-outlet-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.sc-outlet-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-outlet-title a:hover {
    color: #ef1d25;
}

.sc-outlet-address {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
}

/* =========================================
   Col 3 & 4: Navigation Links
   ========================================= */
.sc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.sc-footer-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* =========================================
   Bottom Bar: Payments & Copyright
   ========================================= */
.sc-footer-bottom {
    border-top: 1px solid #1a1e24;
    padding: 30px 0 25px;
    background: #05070a;
}

.sc-payment-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 14px;
}

.sc-payment-title {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.sc-custom-payment-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sc-payment-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-pay-badge {
    background: #ffffff;
    color: #0f172a;
    border-radius: 6px;
    padding: 5px 12px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-pay-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Specific Badge Designs */
.sc-sslcommerz-badge {
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
    gap: 6px;
    padding: 5px 14px;
}

.sc-ssl-pill {
    color: #38bdf8;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sc-ssl-sub {
    background: #ef1d25;
    color: #ffffff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sc-badge-visa {
    color: #1a1f71;
    font-family: sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 15px;
}

.sc-badge-mastercard {
    gap: 6px;
}

.mc-circles {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 24px;
    height: 16px;
}

.mc-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
}

.mc-red {
    background: #eb001b;
    left: 0;
}

.mc-orange {
    background: #f79e1b;
    right: 0;
    opacity: 0.9;
}

.sc-badge-amex {
    background: #007bc1;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.sc-badge-dbbl {
    background: #00563f;
    color: #ffffff;
    font-weight: 800;
}

.sc-badge-bkash {
    background: #e2136e;
    color: #ffffff;
    font-weight: 800;
}

.sc-badge-nagad {
    background: #f7941d;
    color: #ffffff;
    font-weight: 800;
}

.sc-badge-rocket {
    background: #8c3494;
    color: #ffffff;
    font-weight: 800;
}

.sc-badge-upay {
    background: #002e6e;
    color: #ffcc00;
    font-weight: 800;
}

/* Copyright */
.sc-copyright-section {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.sc-copyright-text {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.2px;
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.sc-floating-whatsapp {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.sc-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.6;
    animation: sc-wa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes sc-wa-ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    75%, 100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.sc-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: #1e293b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sc-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #1e293b;
}

.sc-floating-whatsapp:hover .sc-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Position Left */
.sc-floating-whatsapp-left {
    right: auto;
    left: 26px;
}

.sc-floating-whatsapp-left .sc-whatsapp-tooltip {
    right: auto;
    left: calc(100% + 12px);
    transform: translateX(-6px);
}

.sc-floating-whatsapp-left .sc-whatsapp-tooltip::after {
    left: auto;
    right: 100%;
    border-color: transparent #1e293b transparent transparent;
}

.sc-floating-whatsapp-left:hover .sc-whatsapp-tooltip {
    transform: translateX(0);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1024px) {
    .sc-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 30px;
    }

    .sc-main-footer {
        padding: 45px 0 35px;
    }
}

@media (max-width: 768px) {
    .sc-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sc-main-footer {
        padding: 40px 0 30px;
    }

    .sc-footer-bottom {
        padding: 24px 0 20px;
    }

    .sc-payment-badges {
        gap: 8px;
    }

    .sc-pay-badge {
        padding: 4px 10px;
        height: 28px;
        font-size: 11px;
    }

    .sc-floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .sc-floating-whatsapp-left {
        left: 20px;
        right: auto;
    }
}
