/* =========================================
   UNIFIED FOOTER SYSTEM v4.0
   Konsistensi Footer Semua Halaman
   ========================================= */

/* ─── FOOTER CONTAINER ─── */
.footer-unified {
    background: linear-gradient(135deg, rgba(4, 4, 10, 0.98), rgba(6, 6, 18, 0.95));
    border-top: 1px solid rgba(168, 85, 247, 0.12);
    padding: 60px 24px 20px;
    margin-top: 80px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── FOOTER GRID ─── */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    animation: slideInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ─── FOOTER SECTION ─── */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

.footer-section-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─── FOOTER LINKS ─── */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-link:hover .footer-link-icon {
    opacity: 1;
}

/* ─── FOOTER SOCIAL ICONS ─── */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 16px;
}

.footer-social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-3px) scale(1.1);
}

/* ─── FOOTER NEWSLETTER ─── */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(13, 13, 30, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    background: rgba(13, 13, 30, 0.7);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.newsletter-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 13px;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.newsletter-btn:active {
    transform: translateY(0);
}

/* ─── NEWSLETTER NOTICE ─── */
.newsletter-notice {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── FOOTER DIVIDER ─── */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    margin: 40px 0;
}

/* ─── FOOTER BOTTOM ─── */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-link {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

.footer-bottom-link a {
    color: inherit;
    text-decoration: none;
}

/* ─── FOOTER LOGO SECTION ─── */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    font-family: var(--font-display);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.footer-description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

/* ─── FOOTER STATUS ─── */
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent-green);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-breathe 2s ease-in-out infinite;
}

/* ─── FOOTER BACK TO TOP ─── */
.footer-back-to-top {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 18px;
}

.footer-back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

/* ─── FOOTER THEME VARIATIONS ─── */
[data-theme="light"] .footer-unified {
    background: linear-gradient(135deg, rgba(240, 240, 248, 0.98), rgba(255, 255, 255, 0.95));
    border-top-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .footer-section-title {
    color: var(--text-primary-light);
}

[data-theme="light"] .footer-link,
[data-theme="light"] .footer-copyright {
    color: var(--text-secondary-light);
}

/* ─── FOOTER ANIMATIONS ─── */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-breathe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ─── RESPONSIVE IMPROVEMENTS ─── */
@media (max-width: 640px) {
    .footer-unified {
        padding: 40px 16px 16px;
        margin-top: 60px;
    }

    .footer-grid {
        gap: 24px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        gap: 16px;
        padding-bottom: 16px;
    }

    .footer-bottom-links {
        gap: 16px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .footer-divider {
        margin: 30px 0;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* ─── FOOTER WITH CONTENT ─── */
.footer-with-copyright {
    padding-top: 20px;
}

.footer-year {
    display: inline;
}

.footer-brand {
    font-weight: 600;
    color: var(--primary);
}

/* ─── FOOTER HOVER EFFECTS ─── */
.footer-section:hover .footer-section-title {
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Decorative elements */
.footer-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}
