/* ============================================
   PREMIUM FOOTER STYLES
   Atyrau University 2025
   ============================================ */

/* CSS Variables for Footer */
:root {
    --footer-bg-dark: #0a1628;
    --footer-bg-gradient: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
    --footer-primary: #05612A;
    --footer-primary-light: #0a8c3d;
    --footer-accent: #447BAD;
    --footer-text: #e8eef5;
    --footer-text-muted: #8b9cb5;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-hover-bg: rgba(5, 97, 42, 0.15);
    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Footer Container */
.premium-footer {
    background: var(--footer-bg-gradient);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
}

/* Decorative top border */
.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--footer-primary) 0%, 
        var(--footer-accent) 50%, 
        var(--footer-primary) 100%);
}

/* Subtle pattern overlay */
.premium-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(5, 97, 42, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(68, 123, 173, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Content Wrapper */
.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

/* ============================================
   TOP SECTION - Logo, Description, Social
   ============================================ */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
    transition: var(--footer-transition);
}

.footer-logo:hover img {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.footer-description {
    max-width: 600px;
    color: var(--footer-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    transition: var(--footer-transition);
}

.footer-social a:hover {
    background: var(--footer-primary);
    border-color: var(--footer-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 97, 42, 0.3);
}

.footer-social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--footer-transition);
}

.footer-social a:hover img {
    opacity: 1;
}

/* ============================================
   MIDDLE SECTION - Link Columns
   ============================================ */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    display: inline-block;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-primary), var(--footer-accent));
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    transition: var(--footer-transition);
    position: relative;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: -12px;
    width: 0;
    height: 100%;
    background: var(--footer-hover-bg);
    border-radius: 4px;
    transition: var(--footer-transition);
    z-index: -1;
}

.footer-column a:hover {
    color: var(--footer-text);
    transform: translateX(8px);
}

.footer-column a:hover::before {
    width: calc(100% + 24px);
}

/* Contact Column Special Styling */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    transition: var(--footer-transition);
}

.footer-contact-item:hover .footer-contact-icon {
    transform: scale(1.15);
}

.footer-contact-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(85deg);
    opacity: 0.85;
    transition: var(--footer-transition);
}

.footer-contact-item:hover .footer-contact-icon img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 0.75rem;
    color: var(--footer-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.footer-contact-value {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--footer-transition);
}

.footer-contact-value:hover {
    color: var(--footer-primary-light);
}

/* ============================================
   STATS SECTION
   ============================================ */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--footer-border);
}

.footer-stat {
    text-align: center;
}

.footer-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--footer-primary-light);
    display: block;
}

.footer-stat-label {
    font-size: 0.8rem;
    color: var(--footer-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BOTTOM SECTION - Copyright
   ============================================ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.footer-copyright {
    color: var(--footer-text-muted);
    font-size: 0.85rem;
}

.footer-copyright strong {
    color: var(--footer-text);
}

.footer-legal {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--footer-transition);
}

.footer-legal a:hover {
    color: var(--footer-primary-light);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .footer-content {
        padding: 50px 30px 25px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-stats {
        gap: 25px;
        padding: 20px;
    }
}

/* Mobile (max 767px) */
@media screen and (max-width: 767px) {
    .footer-content {
        padding: 40px 20px 100px; /* Extra bottom padding for mobile nav */
    }
    
    .footer-top {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-column-title {
        display: block;
    }
    
    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column a {
        justify-content: center;
    }
    
    .footer-column a:hover {
        transform: translateX(0);
    }
    
    .footer-column a::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column a:hover::before {
        width: 100%;
    }
    
    .footer-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Small Mobile (max 480px) */
@media screen and (max-width: 480px) {
    .footer-content {
        padding: 30px 15px 100px;
    }
    
    .footer-social {
        gap: 8px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .footer-social img {
        width: 16px;
        height: 16px;
    }
}

/* Large Desktop (1440px+) */
@media screen and (min-width: 1440px) {
    .footer-content {
        padding: 70px 60px 40px;
    }
    
    .footer-links {
        gap: 60px;
    }
}

/* 4K (1920px+) */
@media screen and (min-width: 1920px) {
    .footer-content {
        max-width: 1600px;
    }
}

/* ============================================
   LIGHT THEME VARIANT (Optional)
   Add class "footer-light" to .premium-footer
   ============================================ */
.premium-footer.footer-light {
    --footer-bg-dark: #f8fafb;
    --footer-bg-gradient: linear-gradient(135deg, #f8fafb 0%, #eef2f5 50%, #f8fafb 100%);
    --footer-text: #1a2332;
    --footer-text-muted: #5a6b7d;
    --footer-border: rgba(0, 0, 0, 0.08);
    --footer-hover-bg: rgba(5, 97, 42, 0.08);
}

.premium-footer.footer-light .footer-social img,
.premium-footer.footer-light .footer-contact-icon img {
    filter: none;
    opacity: 1;
}

.premium-footer.footer-light .footer-logo img {
    filter: none;
}
