/* ============================================
   FOOTER REDESIGN - DUAL BRANDING
============================================= */

.main-footer {
    background: var(--bg-secondary, #f8f9fa);
    border-top: 1px solid var(--border-color, #e0e0e0);
    padding: 24px 0;
    margin-top: 40px;
    position: relative;
    z-index: 90; /* Lower than bottom nav */
    margin-bottom: var(--bottom-nav-height, 61px); /* Space for bottom nav */
}

/* Dark Mode */
.dark-mode .main-footer {
    background: var(--bg-dark-secondary, #1a1a1a);
    border-top-color: var(--border-dark, #333);
}

/* Container adjustment */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

/* Logo Row */
.footer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Logo Styling */
.footer-logo {
    height: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
    opacity: 0.85;
}

/* Samnala Logo - Lebih dominan */
.footer-logo-samnala {
    height: 32px;
    width: auto;
}

/* Cybersign Logo - Sedikit lebih kecil */
.footer-logo-css {
    height: 28px;
    width: auto;
}

/* Logo Hover Effects */
.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-1px);
}

.footer-logo-samnala:hover {
    transform: translateY(-2px) scale(1.05);
}

.footer-logo-css:hover {
    transform: translateY(-2px) rotate(1deg);
}

/* Logo Divider */
.logo-divider {
    color: var(--text-tertiary, #999);
    font-size: 24px;
    font-weight: 300;
    opacity: 0.4;
    margin: 0 4px;
    user-select: none;
}

.dark-mode .logo-divider {
    color: var(--text-dark-tertiary, #777);
    opacity: 0.3;
}

/* Tagline */
.footer-tagline {
    color: var(--text-secondary, #666);
    font-size: 15px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.dark-mode .footer-tagline {
    color: var(--text-dark-secondary, #aaa);
}

/* Developer Credit */
.footer-developer {
    font-size: 13px;
    color: var(--text-tertiary, #888);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.01em;
}

.dark-mode .footer-developer {
    color: var(--text-dark-tertiary, #777);
}

.footer-developer strong {
    color: var(--accent-color, #007bff);
    font-weight: 600;
}

.dark-mode .footer-developer strong {
    color: var(--accent-dark, #4dabf7);
}

/* Version Badge */
.footer-developer::after {
    content: "•";
    margin: 0 8px;
    opacity: 0.3;
}

/* ============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 20px;
        gap: 14px;
    }
    
    .footer-branding {
        gap: 12px;
    }
    
    .footer-logo-samnala {
        height: 28px;
    }
    
    .footer-logo-css {
        height: 24px;
    }
    
    .logo-divider {
        font-size: 20px;
        margin: 0 2px;
    }
    
    .footer-tagline {
        font-size: 14px;
        max-width: 90%;
    }
    
    .footer-developer {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
        gap: 12px;
    }
    
    .footer-branding {
        gap: 10px;
    }
    
    .footer-logo-samnala {
        height: 26px;
    }
    
    .footer-logo-css {
        height: 22px;
    }
    
    .footer-tagline {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .footer-developer {
        font-size: 11px;
    }
}

/* ============================================
   MINIMAL VERSION FOR FEED PAGE
============================================= */
body[data-current-page="feed"] .main-footer {
    background: transparent !important;
    border-top: none !important;
    margin-top: 0 !important;
    padding: 16px 0 !important;
    backdrop-filter: none !important;
}

body[data-current-page="feed"] .footer-branding {
    opacity: 0.7;
}

body[data-current-page="feed"] .footer-logo {
    opacity: 0.6;
    filter: grayscale(30%);
}

body[data-current-page="feed"] .footer-logo:hover {
    opacity: 0.9;
    filter: grayscale(10%);
}

body[data-current-page="feed"] .footer-tagline {
    opacity: 0.6;
    font-size: 13px;
}

body[data-current-page="feed"] .footer-developer {
    opacity: 0.5;
    font-size: 11px;
}

/* ============================================
   ANIMATIONS & EFFECTS
============================================= */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.footer-logo-samnala:hover {
    animation: floatLogo 2s ease-in-out infinite;
}

/* Loading state */
.footer-logo {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.85; transform: translateY(0); }
}

/* ============================================
   PRINT STYLES
============================================= */
@media print {
    .main-footer {
        border-top: 1px solid #ccc;
        background: white !important;
        color: black !important;
    }
    
    .footer-logo {
        filter: grayscale(100%) !important;
        opacity: 0.8 !important;
    }
}