/* Footer - Modern Design */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9, #3b82f6, #0284c7);
}

.footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo img {
    height: 60px;
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.footer-about p {
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul,
.footer-categories ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-categories a {
    color: #9ca3af;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a::before,
.footer-categories a::before {
    content: '←';
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-categories a:hover {
    color: white;
    padding-right: 10px;
}

.footer-links a:hover::before,
.footer-categories a:hover::before {
    opacity: 1;
}

.footer-categories a i {
    color: var(--primary-color);
    width: 20px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #9ca3af;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-newsletter p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Hide about section details on mobile */
    .footer-about {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-about p {
        display: none;
    }
    
    .footer-about .logo img {
        height: 45px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 10px;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    /* Collapsible Footer Sections */
    .footer-links,
    .footer-categories,
    .footer-contact {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 0;
        margin-bottom: 0;
        font-size: 1rem;
        padding-bottom: 12px;
    }
    
    .footer-title::after {
        display: none;
    }
    
    .footer-title::before {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
        font-size: 0.85rem;
        order: -1;
        margin-left: 10px;
    }
    
    .footer-title.active::before {
        transform: rotate(180deg);
    }
    
    /* Hide content by default on mobile */
    .footer-collapse {
        display: none !important;
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }
    
    /* Show content when parent has open class */
    .footer-links.open .footer-collapse,
    .footer-categories.open .footer-collapse,
    .footer-contact.open .footer-collapse {
        display: flex !important;
        padding: 15px 0;
    }
    
    .footer-links a,
    .footer-categories a {
        justify-content: center;
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .footer-links a::before,
    .footer-categories a::before {
        display: none;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 3px;
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .footer-contact i {
        margin: 0;
        font-size: 1rem;
    }
    
    /* Newsletter compact */
    .footer-newsletter {
        padding: 20px 0 !important;
        margin-top: 15px !important;
    }
    
    .footer-newsletter .footer-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
        cursor: default;
    }
    
    .footer-newsletter .footer-title::before {
        display: none;
    }
    
    .footer-newsletter p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 10px 15px !important;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}
