/*
 * footer.css — CareerZoneHub
 * All footer styles. Load via $extra_css or directly in header.php.
 */

/* ══════════════════════════════════════
   MAIN FOOTER
══════════════════════════════════════ */
.main-footer {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 56px 0 0;
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   FOOTER GRID
══════════════════════════════════════ */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 639px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .main-footer { padding: 40px 0 0; }
}

/* ══════════════════════════════════════
   BRAND COL
══════════════════════════════════════ */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 320px;
}

/* Stats row */
.footer-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.fstat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    color: #94a3b8;
}

.fstat i {
    font-size: 0.9rem;
}

.fstat:nth-child(1) i { color: #60a5fa; }
.fstat:nth-child(2) i { color: #34d399; }
.fstat:nth-child(3) i { color: #fbbf24; }

/* Social buttons */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fsocial-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.85;
}

.fsocial-btn:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.fsocial-facebook  { background: #1877f2; }
.fsocial-twitter   { background: #1da1f2; }
.fsocial-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fsocial-youtube   { background: #ff0000; }
.fsocial-telegram  { background: #0088cc; }

/* ══════════════════════════════════════
   HEADINGS
══════════════════════════════════════ */
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.footer-heading-sm {
    font-size: 0.85rem;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

/* ══════════════════════════════════════
   LINKS
══════════════════════════════════════ */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a,
.footer-links li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links li a:hover {
    color: #60a5fa;
    padding-left: 4px;
}

.footer-links li a i {
    font-size: 0.8rem;
    width: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

.footer-empty {
    color: #64748b;
    font-size: 0.85rem;
}

/* Category count badge */
.fcat-count {
    margin-left: auto;
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.25);
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Inline links (Legal row) */
.footer-links-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.footer-links-inline li a {
    font-size: 0.83rem;
    padding: 0;
    gap: 0;
}

.footer-links-inline li a i { display: none; }

/* ══════════════════════════════════════
   CONTACT LIST
══════════════════════════════════════ */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-contact li i {
    color: #3b82f6;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
}

.footer-contact li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact li a:hover { color: #60a5fa; }

/* ══════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════ */
.footer-newsletter { margin-top: 20px; }

.newsletter-desc {
    font-size: 0.83rem;
    color: #64748b;
    margin-bottom: 10px;
}

.newsletter-form { margin-top: 10px; }

.newsletter-input-group {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s;
}

.newsletter-input-group:focus-within {
    border-color: #2563eb;
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #e2e8f0;
    outline: none;
    min-width: 0;
}

.newsletter-input-group input::placeholder { color: #475569; }

.newsletter-input-group button {
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.newsletter-input-group button:hover { background: #1d4ed8; }

/* ══════════════════════════════════════
   FOOTER BOTTOM
══════════════════════════════════════ */
.footer-bottom {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 639px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
}

.footer-copy {
    font-size: 0.83rem;
    color: #475569;
    margin: 0;
}

.footer-copy a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-copy a:hover { color: #93c5fd; }

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    align-items: center;
}

.footer-bottom-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #60a5fa; }

.footer-admin-link {
    color: #fbbf24 !important;
}

.footer-credit {
    font-size: 0.8rem;
    color: #334155;
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-credit a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover { color: #93c5fd; }

.footer-heart {
    color: #ef4444;
    animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.3); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.3); }
    70%       { transform: scale(1); }
}

/* ══════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.5);
}

/* ══════════════════════════════════════
   SR ONLY (accessibility)
══════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.fsocial-whatsapp {
    background: #25d366;
}

.fsocial-whatsapp:hover {
    background: #1ebe57;
}
.fsocial-whatsapp { background: #25d366; }
.fsocial-whatsapp:hover { background: #1ebe57; }