/* ============================================
   FOOTER.CSS - Footer Styles
   Royal Blue Theme | Mobile Optimized
   ============================================ */

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Hover Effects */
.footer-link:hover .footer-icon {
    opacity: 1;
    transform: translateY(-2px);
}

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

/* Active State */
.footer-link.active .footer-icon {
    filter: brightness(0) saturate(100%) invert(30%) sepia(100%) saturate(2000%) hue-rotate(200deg) brightness(100%) contrast(100%);
    opacity: 1;
}

.footer-link.active .footer-text {
    color: var(--primary);
}

/* Body Padding for Fixed Footer */
body {
    padding-bottom: 80px;
    margin: 0;
    min-height: 100vh;
}

/* Mobile Responsive */
@media (max-width: 380px) {
    .footer-text {
        font-size: 10px;
    }
    
    .footer-icon {
        width: 20px;
        height: 20px;
    }
    
    .fixed-footer {
        padding: 8px 0;
    }
}

/* Safe Area for Notched Phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fixed-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Dark Theme Adjustments */
.dark-theme .fixed-footer {
    background: var(--dark-bg-primary);
    border-top-color: var(--dark-border);
}

.dark-theme .footer-icon {
    filter: brightness(0.8);
}

.dark-theme .footer-text {
    color: var(--dark-text-muted);
}

.dark-theme .footer-link.active .footer-icon {
    filter: brightness(0) saturate(100%) invert(60%) sepia(80%) saturate(2000%) hue-rotate(200deg) brightness(100%) contrast(100%);
}

.dark-theme .footer-link.active .footer-text {
    color: var(--primary-light);
}