/* ==========================================================================
   BlinkDuel Creative Global Footer
   ========================================================================== */

.bd-footer {
    position: relative;
    background: #080c10;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Subtle background accent glow */
.bd-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 480px;
    height: 180px;
    background: radial-gradient(ellipse at top, rgba(200, 250, 70, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bd-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 15%;
    width: 440px;
    height: 180px;
    background: radial-gradient(ellipse at top, rgba(85, 205, 224, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Cyber ambient top glow bar */
.bd-footer-glow-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #c8fa46 25%, #55cde0 50%, #ff695e 75%, transparent 100%);
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(200, 250, 70, 0.5));
    z-index: 1;
}

/* Main Container */
.bd-footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-inline: auto;
    padding: 56px 24px 32px;
    box-sizing: border-box;
}

/* Grid layout */
.bd-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.15fr 1.35fr;
    gap: 40px;
    margin-bottom: 44px;
}

.bd-footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bd-footer-heading {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 18px 0;
}

/* Brand Column */
.bd-footer-brand-col {
    gap: 16px;
}

.bd-footer-logo-link {
    display: inline-block;
    text-decoration: none;
    width: fit-content;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bd-footer-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.bd-footer-logo {
    display: block;
    width: 160px;
    height: auto;
    max-width: 100%;
}

.bd-footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

/* Operational status badge */
.bd-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a3e635;
    background: rgba(163, 230, 53, 0.08);
    border: 1px solid rgba(163, 230, 53, 0.25);
    border-radius: 9999px;
    padding: 5px 12px;
    width: fit-content;
    letter-spacing: 0.01em;
}

.bd-pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: bd-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bd-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* Navigation Links */
.bd-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    padding: 6px 0;
    min-height: 38px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bd-nav-link:hover {
    color: #c8fa46;
    transform: translateX(4px);
    text-decoration: none;
}

.bd-nav-icon {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.bd-nav-link:hover .bd-nav-icon {
    color: #c8fa46;
}

/* Social Media Cards */
.bd-social-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bd-social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 52px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bd-social-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* X / Twitter Hover */
.bd-social-x:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 255, 255, 0.15);
}

/* Instagram Hover */
.bd-social-ig:hover {
    background: rgba(225, 48, 108, 0.08);
    border-color: rgba(225, 48, 108, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(225, 48, 108, 0.25);
}

.bd-social-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bd-social-card:hover .bd-social-icon-box {
    transform: scale(1.08);
}

.bd-x-box {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bd-ig-box {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 39, 67, 0.35);
}

.bd-social-svg {
    display: block;
}

.bd-social-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.bd-social-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
}

.bd-social-handle {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.3;
}

.bd-arrow-chip {
    font-size: 1.1rem;
    line-height: 1;
    color: #64748b;
    margin-left: auto;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bd-social-card:hover .bd-arrow-chip {
    color: #c8fa46;
    transform: translate(2px, -2px);
}

/* Featured Partner Card */
.bd-partner-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(200, 250, 70, 0.05) 0%, rgba(85, 205, 224, 0.07) 100%);
    border: 1px solid rgba(200, 250, 70, 0.28);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.bd-partner-sheen {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 40%, rgba(200, 250, 70, 0.06) 50%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bd-partner-card:hover .bd-partner-sheen {
    opacity: 1;
    animation: bd-sheen 1.6s ease infinite;
}

@keyframes bd-sheen {
    0% { transform: translateX(-30%); }
    100% { transform: translateX(30%); }
}

.bd-partner-card:hover {
    transform: translateY(-3px);
    border-color: #c8fa46;
    box-shadow: 0 8px 28px rgba(200, 250, 70, 0.22), 0 0 20px rgba(85, 205, 224, 0.16);
    text-decoration: none;
}

.bd-partner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bd-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c8fa46;
}

.bd-badge-spark {
    color: #c8fa46;
    font-size: 0.85rem;
}

.bd-partner-ext {
    color: #55cde0;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.bd-partner-card:hover .bd-partner-ext {
    transform: translate(2px, -2px);
    color: #c8fa46;
}

.bd-partner-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-partner-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bd-partner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(85, 205, 224, 0.14);
    border: 1px solid rgba(85, 205, 224, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bd-partner-name-wrap {
    display: flex;
    flex-direction: column;
}

.bd-partner-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.bd-partner-domain {
    font-size: 0.75rem;
    color: #55cde0;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bd-partner-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.bd-partner-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    color: #c8fa46;
}

.bd-partner-cta-arrow {
    transition: transform 0.2s ease;
}

.bd-partner-card:hover .bd-partner-cta-arrow {
    transform: translateX(4px);
}

/* Divider Line */
.bd-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

/* Bottom Bar */
.bd-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.84rem;
}

.bd-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.bd-footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.bd-footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.bd-sep {
    color: #334155;
    user-select: none;
}

.bd-footer-copy-wrap {
    display: flex;
    align-items: center;
}

.bd-footer-copy {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.bd-footer-copy strong {
    color: #94a3b8;
    font-weight: 700;
}

/* Accessibility Focus States */
.bd-footer a:focus-visible {
    outline: 2px solid #c8fa46;
    outline-offset: 3px;
    border-radius: 4px;
}

.bd-social-card:focus-visible,
.bd-partner-card:focus-visible {
    border-radius: 12px;
}

/* ==========================================================================
   Responsive Breakpoints (Desktop, Laptop, Tablet, Mobile, iPhone)
   ========================================================================== */

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

@media (max-width: 640px) {
    .bd-footer-container {
        padding: 40px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .bd-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 32px;
    }

    .bd-footer-brand-col {
        gap: 12px;
    }

    .bd-social-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .bd-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .bd-footer-legal-links {
        gap: 6px 12px;
    }
}

@media (max-width: 420px) {
    .bd-social-cards {
        grid-template-columns: 1fr;
    }

    .bd-footer-container {
        padding-inline: 14px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bd-pulse-dot,
    .bd-partner-sheen {
        animation: none !important;
    }
    .bd-social-card,
    .bd-partner-card,
    .bd-nav-link,
    .bd-arrow-chip,
    .bd-partner-ext,
    .bd-partner-cta-arrow {
        transition: none !important;
        transform: none !important;
    }
}

/* Forced Colors (High Contrast Mode) */
@media (forced-colors: active) {
    .bd-footer {
        border-top-color: ButtonText;
    }
    .bd-social-card,
    .bd-partner-card {
        border-color: ButtonText;
    }
    .bd-pulse-dot {
        background: Highlight;
    }
}

