/* ================================================
   Professional Maritime Footer Styles
   STI Maritime Training Academy
   ================================================ */

/* Main Footer Container */
footer.text-center.mt-auto.py-3.small.text-muted {
    /* Modern gradient background */
    background: linear-gradient(135deg, #003366 0%, #004d99 50%, #003366 100%);
    background-size: 200% 200%;
    animation: subtle-gradient 20s ease infinite;
    
    /* Border and shadow */
    border-top: 3px solid #FFD700;
    box-shadow: 0 -4px 15px rgba(0, 51, 102, 0.3);
    
    /* Text styling */
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    
    /* Spacing and layout */
    padding: 24px 20px !important;
    margin-top: auto !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle background animation */
@keyframes subtle-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Maritime accent (animated anchor icon) */
footer.text-center.mt-auto.py-3.small.text-muted::before {
    content: '⚓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #FFD700;
    opacity: 0.12;
    z-index: 0;
    animation: gentle-float 6s ease-in-out infinite;
    pointer-events: none;
}

/* Gentle floating animation */
@keyframes gentle-float {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(-3deg); 
        opacity: 0.12; 
    }
    50% { 
        transform: translate(-50%, -52%) rotate(3deg); 
        opacity: 0.18; 
    }
}

/* Text content positioning */
footer.text-center.mt-auto.py-3.small.text-muted * {
    position: relative;
    z-index: 1;
}

/* Link styling (if you have links in footer) */
footer.text-center.mt-auto.py-3.small.text-muted a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer.text-center.mt-auto.py-3.small.text-muted a:hover {
    color: #FFF;
    text-decoration: underline;
}

/* Hover effect for interactive feel */
footer.text-center.mt-auto.py-3.small.text-muted:hover {
    box-shadow: 0 -6px 20px rgba(0, 51, 102, 0.4);
    border-top-color: #FFF;
}

/* Tablet and mobile responsiveness */
@media (max-width: 992px) {
    footer.text-center.mt-auto.py-3.small.text-muted {
        padding: 20px 16px !important;
        font-size: 0.85rem !important;
    }
    
    footer.text-center.mt-auto.py-3.small.text-muted::before {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    footer.text-center.mt-auto.py-3.small.text-muted {
        padding: 18px 12px !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.3px !important;
    }
    
    footer.text-center.mt-auto.py-3.small.text-muted::before {
        font-size: 2.5rem;
        animation: none; /* Disable animation on small screens for performance */
        opacity: 0.08;
    }
}

/* Print styles (hide footer in print) */
@media print {
    footer.text-center.mt-auto.py-3.small.text-muted {
        display: none;
    }
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    footer.text-center.mt-auto.py-3.small.text-muted,
    footer.text-center.mt-auto.py-3.small.text-muted::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    footer.text-center.mt-auto.py-3.small.text-muted {
        background: linear-gradient(135deg, #001a33 0%, #002d4d 50%, #001a33 100%);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6);
    }
}
