/* ============================================================
   STANDALONE FOOTER CSS
   Prefix: fst- (Footer STandalone)
   ============================================================ */

/* ===== PAGE LAYOUT FOUNDATION ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
#app,
.content,
.page-wrapper,
.content-body {
    flex: 1 0 auto;
}

/* ===== FOOTER SHELL ===== */
.fst-footer {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #cbd5e1;
    padding: 40px 0 28px;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.06), 0 -8px 32px rgba(0,0,0,0.25);
    position: relative;
}

/* Subtle accent bar at top */
.fst-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 0 0 4px 4px;
}

/* ===== INNER WRAPPER ===== */
.fst-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ===== BRAND NAME (guests only) ===== */
.fst-brand {
    text-align: center;
}

.fst-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fst-brand-name:hover {
    color: #60a5fa;
}

/* ===== SOCIAL PILL BUTTONS ===== */
.fst-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fst-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.fst-social-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    transform: translateY(-1px);
}

.fst-social-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ===== DIVIDER ===== */
.fst-rule {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ===== COPYRIGHT ROW ===== */
.fst-copy-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    text-align: center;
}

.fst-copy-text {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

.fst-dot {
    color: #334155;
    font-size: 0.78rem;
    user-select: none;
}

.fst-built-link {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.fst-built-link:hover {
    color: #60a5fa;
}

.fst-admin-link {
    font-size: 0.68rem;
    color: #1e293b;
    text-decoration: none;
    opacity: 0.35;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.fst-admin-link:hover {
    opacity: 0.65;
    color: #94a3b8;
}

/* ===== LEGACY ALIASES — kept for any views using old classes ===== */
.fst-wrapper    { max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center; }
.fst-bottom     { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #9ca3af; font-size: 14px; line-height: 1.8; }
.fst-heading    { font-size: 20px; font-weight: bold; color: #f9fafb; margin: 8px 0; line-height: 1.4; }
.fst-subheading { font-size: 16px; font-weight: 500; color: #e5e7eb; margin: 8px 0; display: inline-block; }
.fst-link       { color: #6b7280; text-decoration: none; transition: color 0.3s ease; }
.fst-link:hover { color: #9ca3af; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .fst-footer {
        padding: 32px 0 20px;
    }

    .fst-inner {
        padding: 0 16px;
        gap: 16px;
    }

    .fst-brand-name {
        font-size: 1rem;
    }

    .fst-social-btn {
        font-size: 0.78rem;
        padding: 6px 13px;
    }

    .fst-dot {
        display: none;
    }

    .fst-copy-row {
        flex-direction: column;
        gap: 4px;
    }

    .fst-copy-text {
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .fst-social-btn {
        padding: 5px 11px;
        font-size: 0.75rem;
    }
}

/* ===== PRINT ===== */
@media print {
    .fst-footer {
        background: #f8fafc;
        color: #1e293b;
        box-shadow: none;
        border-top: 1px solid #e2e8f0;
        page-break-inside: avoid;
    }
    .fst-footer::before { display: none; }
    .fst-brand-name,
    .fst-copy-text  { color: #1e293b; }
    .fst-social-btn { border-color: #cbd5e1; color: #475569; background: none; }
    .fst-built-link { color: #475569; }
}

/* ============================================================
   END STANDALONE FOOTER CSS — prefix: fst-
   ============================================================ */
