/* =====================================================
   PIXELMARKET — HOMEPAGE & SITE FOOTER CSS
   ===================================================== */

:root {
    --pm-footer-bg:       #120F24;
    --pm-footer-surface:  #1A1633;
    --pm-footer-text:     #B8B5C5;
    --pm-footer-heading:  #FFFFFF;
    --pm-footer-border:   rgba(255, 255, 255, 0.08);
    --pm-footer-coral:    #FF8A65;
    --pm-footer-purple:   #8D71FB;
}

/* Hide default Astra footer markup */
#colophon.site-footer,
.ast-footer-builder,
.site-below-footer-wrap,
.site-primary-footer-wrap,
.site-above-footer-wrap {
    display: none !important;
}

.pm-footer {
    background-color: var(--pm-footer-bg);
    color: var(--pm-footer-text);
    font-family: var(--pm-font, 'Inter', -apple-system, sans-serif);
    position: relative;
    border-top: 1px solid var(--pm-footer-border);
    padding: 72px 24px 36px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Subtle ambient background glow */
.pm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 180px;
    background: radial-gradient(ellipse at top, rgba(108, 76, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.pm-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* ════════ TOP GRID: BRAND + 4 COLUMNS ════════ */
.pm-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.15fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--pm-footer-border);
}

/* ── Brand Column ── */
.pm-footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pm-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    margin-bottom: 16px;
}

.pm-footer__logo:hover {
    text-decoration: none !important;
}

.pm-footer__logo-icon {
    width: 36px;
    height: 36px;
    background: #6C4CF1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(108, 76, 241, 0.4);
}

.pm-footer__logo-text {
    font-family: var(--pm-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 21px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pm-footer__logo-text span {
    color: #8D71FB;
}

.pm-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    background: rgba(141, 113, 251, 0.1);
    border: 1px solid rgba(141, 113, 251, 0.25);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #C3B4FD;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pm-footer__badge-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.pm-footer__brand-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #A3A0B2;
    margin: 0;
    max-width: 320px;
}

/* ── Standard Column ── */
.pm-footer__col {
    display: flex;
    flex-direction: column;
}

.pm-footer__heading {
    font-family: var(--pm-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pm-footer-heading);
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.pm-footer__heading::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--pm-footer-coral);
    border-radius: 2px;
    margin-top: 8px;
}

.pm-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pm-footer__link {
    font-size: 14px;
    color: var(--pm-footer-text);
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.pm-footer__link::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1.5px;
    background: var(--pm-footer-coral);
    margin-right: 0;
    transition: width 0.2s ease, margin-right 0.2s ease;
}

.pm-footer__link:hover {
    color: #FFFFFF;
    text-decoration: none !important;
    transform: translateX(3px);
}

.pm-footer__link:hover::before {
    width: 6px;
    margin-right: 6px;
}

/* ════════ BOTTOM ROW: COPYRIGHT, SOCIAL & TRUST ════════ */
.pm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 28px;
}

.pm-footer__copyright p {
    font-size: 13px;
    color: #8C889C;
    margin: 0;
}

.pm-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-footer__social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8B5C5;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pm-footer__social-btn:hover {
    background: #6C4CF1;
    color: #FFFFFF;
    text-decoration: none !important;
    border-color: #6C4CF1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 76, 241, 0.35);
}

.pm-footer__trust-seal {
    display: flex;
    align-items: center;
    margin-right: 56px;
}

.pm-footer__security-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #9E9AA7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 8px;
}

.pm-footer__security-badge svg {
    flex-shrink: 0;
}

.pm-footer__security-badge span {
    font-weight: 500;
}

.pm-footer__payment-list {
    font-size: 12.5px;
    color: #9E9AA7;
}

.pm-footer__payment-list strong {
    color: #FFFFFF;
}

/* ════════ RESPONSIVE ADAPTATIONS ════════ */
@media (max-width: 1080px) {
    .pm-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
    .pm-footer__col--brand {
        grid-column: span 3;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .pm-footer {
        padding: 52px 20px 32px;
    }
    .pm-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }
    .pm-footer__col--brand {
        grid-column: span 1;
    }
    .pm-footer__col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 24px;
    }
    .pm-footer__col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .pm-footer__heading {
        margin-bottom: 14px;
    }
    .pm-footer__link {
        padding: 6px 0;
        font-size: 14.5px;
    }
    .pm-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .pm-footer__social {
        width: 100%;
    }
    .pm-footer__trust-seal {
        width: 100%;
    }
}
