/* ============================================
   Modern Footer Styles
   Simple, clean, and contemporary design
   ============================================ */

.modern-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4rem 0 0;
    margin-top: 5rem;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
}

/* Footer Content Grid */
.modern-footer .footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Columns */
.footer-column {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Column */
.footer-column--brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Column Titles */
.footer-column__title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column__title i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Contact Column */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact__address {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.footer-contact__address i {
    font-size: 1rem;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.footer-contact__address p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.footer-contact__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact__item i {
    width: 16px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.footer-contact__item a,
.footer-contact__item span {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.footer-contact__item a:hover {
    color: #ffffff;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li {
    position: relative;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 0.3rem;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom__links a:hover {
    color: #ffffff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .modern-footer .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-column--brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }
    
    .modern-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-column--brand {
        grid-column: 1;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 0;
    }
    
    .footer-column__title {
        font-size: 1rem;
    }
    
    .footer-links a,
    .footer-contact__item {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 2rem 0 0;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-contact__address {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact__item {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */

.dark-mode .modern-footer {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d1f3a 100%);
}

.dark-mode .footer-social a {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .footer-social a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   RTL Support
   ============================================ */

.rtl .modern-footer .footer-content {
    direction: rtl;
}

.rtl .footer-column--brand {
    align-items: flex-end;
}

.rtl .footer-social {
    flex-direction: row-reverse;
}

.rtl .footer-contact__address,
.rtl .footer-contact__item {
    flex-direction: row-reverse;
}

.rtl .footer-links a {
    flex-direction: row-reverse;
}

.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 0.3rem;
}

.rtl .footer-links a:hover i {
    transform: translateX(-3px);
}

.rtl .footer-bottom {
    direction: rtl;
}

.rtl .footer-bottom__links {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .rtl .footer-column--brand {
        align-items: center;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .modern-footer {
        background: #f8f9fa;
        color: #000000;
        page-break-inside: avoid;
    }
    
    .footer-social {
        display: none;
    }
    
    .footer-bottom__links {
        display: none;
    }
}
