/**
 * GPLPanther Ultra-Minimal Marketplace Footer Styles
 * Converted to pure Vanilla CSS from footer.html specification
 *
 * @package GPLPanther
 */

:root {
    --gplp-footer-bg: #0F1018;
    --gplp-footer-primary: #F5F5F7;
    --gplp-footer-muted: #858896;
    --gplp-footer-border: rgba(255, 255, 255, 0.09);
    --gplp-footer-accent: #7C4DFF;
}

/* ==========================================================================
   Main Footer Wrapper & Background Atmosphere
   ========================================================================== */
.gplp-footer {
    position: relative;
    width: 100%;
    background-color: var(--gplp-footer-bg, #0F1018);
    color: var(--gplp-footer-primary, #F5F5F7);
    overflow: hidden;
    padding-top: 84px;
    padding-bottom: 32px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    margin-top: auto;
}

.gplp-footer *,
.gplp-footer *::before,
.gplp-footer *::after {
    box-sizing: border-box;
}

/* Decorative Geometric Orbital Background */
.gplp-footer-backdrop {
    pointer-events: none;
    user-select: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gplp-footer-backdrop svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Main Container (Max Width: 1320px) */
.gplp-footer-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 640px) {
    .gplp-footer-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ==========================================================================
   4-Column Grid: Desktop (>1024px), Tablet (768-1024px), Mobile (<768px)
   ========================================================================== */
.gplp-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .gplp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 56px;
        row-gap: 44px;
    }
}

@media (min-width: 1025px) {
    .gplp-footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        column-gap: 80px;
        row-gap: 0;
    }
}

/* ==========================================================================
   Column 1: Brand & Bio
   ========================================================================== */
.gplp-footer-brand-col {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gplp-footer-border, rgba(255, 255, 255, 0.09));
}

@media (min-width: 768px) {
    .gplp-footer-brand-col {
        padding-bottom: 0;
        border-bottom: none;
    }
}

.gplp-footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
    color: inherit;
    transition: opacity 0.2s ease;
}

.gplp-footer-brand-link:hover {
    opacity: 0.95;
    text-decoration: none;
}

/* Minimal Geometric Crown/Panther Emblem Box */
.gplp-footer-emblem {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gplp-footer-border, rgba(255, 255, 255, 0.09));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gplp-footer-brand-link:hover .gplp-footer-emblem {
    border-color: var(--gplp-footer-accent, #7C4DFF);
    box-shadow: 0 0 14px rgba(124, 77, 255, 0.35);
}

.gplp-footer-custom-logo-img {
    height: var(--footer-logo-height, 38px);
    max-height: var(--footer-logo-height, 38px);
    max-width: var(--footer-logo-max-width, 260px);
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gplp-footer-brand-link:hover .gplp-footer-custom-logo-img {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .gplp-footer-custom-logo-img {
        height: var(--footer-logo-tablet-height, 32px);
        max-height: var(--footer-logo-tablet-height, 32px);
        max-width: var(--footer-logo-tablet-max-width, 200px);
    }
}

@media (max-width: 767px) {
    .gplp-footer-custom-logo-img {
        height: var(--footer-logo-mobile-height, 28px);
        max-height: var(--footer-logo-mobile-height, 28px);
        max-width: var(--footer-logo-mobile-max-width, 160px);
    }
}

.gplp-footer-brand-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--gplp-footer-primary, #F5F5F7);
    line-height: 1.2;
}

.gplp-footer-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--gplp-footer-muted, #858896);
    max-width: 290px;
    margin: 0;
}

.gplp-footer-desc + .gplp-footer-desc {
    margin-top: 14px;
}

/* ==========================================================================
   Columns 2, 3, 4: Navigation Columns & Accordions
   ========================================================================== */
.gplp-footer-nav-col {
    border-bottom: 1px solid var(--gplp-footer-border, rgba(255, 255, 255, 0.09));
}

@media (min-width: 768px) {
    .gplp-footer-nav-col {
        border-bottom: none;
    }
}

.gplp-footer-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    outline: none;
}

@media (min-width: 768px) {
    .gplp-footer-acc-trigger {
        padding: 0;
        margin-bottom: 20px;
        cursor: default;
        pointer-events: none;
    }
}

.gplp-footer-col-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gplp-footer-primary, #F5F5F7);
    margin: 0;
    line-height: 1.3;
}

.gplp-footer-acc-icon {
    font-size: 16px;
    font-weight: 400;
    color: var(--gplp-footer-muted, #858896);
    line-height: 1;
    user-select: none;
    transition: transform 0.22s ease, color 0.22s ease;
}

@media (min-width: 768px) {
    .gplp-footer-acc-icon {
        display: none !important;
    }
}

/* Mobile Accordion Smooth Height Transition */
.gplp-footer-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.gplp-footer-accordion-content.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

@media (min-width: 768px) {
    .gplp-footer-accordion-content {
        grid-template-rows: 1fr !important;
        opacity: 1 !important;
    }
}

.gplp-footer-accordion-inner {
    overflow: hidden;
}

.gplp-footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

@media (min-width: 768px) {
    .gplp-footer-link-list {
        padding-bottom: 0;
    }
}

.gplp-footer-link-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Nav Link Hover with dot animation */
.gplp-footer-nav-link {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--gplp-footer-muted, #858896);
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.gplp-footer-nav-link::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background-color: var(--gplp-footer-accent, #7C4DFF);
    margin-right: 0;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.22s ease, transform 0.22s ease, margin-right 0.22s ease;
}

.gplp-footer-nav-link:hover {
    color: var(--gplp-footer-primary, #F5F5F7);
    text-decoration: none;
}

.gplp-footer-nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
    margin-right: 8px;
}

/* ==========================================================================
   Bottom Divider & Legal Bar
   ========================================================================== */
.gplp-footer-bottom {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--gplp-footer-border, rgba(255, 255, 255, 0.09));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 640px) {
    .gplp-footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .gplp-footer-bottom {
        margin-top: 64px;
    }
}

.gplp-footer-copy {
    font-size: 13.5px;
    color: var(--gplp-footer-muted, #858896);
    margin: 0;
    line-height: 1.5;
}

.gplp-footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}

.gplp-footer-legal-link {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gplp-footer-muted, #858896);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gplp-footer-legal-link:hover {
    color: var(--gplp-footer-primary, #F5F5F7);
    text-decoration: none;
}

.gplp-footer-dot-sep {
    margin-left: 12px;
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
    font-size: 12px;
}

/* Accessibility Keyboard Focus States */
.gplp-footer a:focus-visible,
.gplp-footer button:focus-visible {
    outline: 2px solid var(--gplp-footer-accent, #7C4DFF);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .gplp-footer *,
    .gplp-footer *::before,
    .gplp-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
