/**
 * Haneen Nemer - Footer Styles
 * Made With Love By HOSSAM ALZYOD - Mr.Server | https://hossam.net | i@hossam.net
 * Mobile-First Responsive Footer
 */

/* ===== Footer Container ===== */
.site-footer {
    background: linear-gradient(180deg, var(--secondary-black) 0%, #0d0d0d 100%);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-gold) 25%,
        var(--accent-bronze) 50%,
        var(--primary-gold) 75%,
        transparent 100%
    );
}

/* Tiger pattern overlay */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 15px,
            rgba(212, 175, 55, 0.02) 15px,
            rgba(212, 175, 55, 0.02) 30px
        );
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 2;
}

/* ===== Footer Content Grid ===== */
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* ===== Footer About Section ===== */
.footer-about {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
    text-decoration: none;
}

.footer-logo:hover {
    color: var(--primary-gold-light);
}

.footer-logo .logo-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: var(--transition-fast);
}

.footer-logo:hover .logo-icon {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.footer-description {
    color: var(--text-light);
    font-size: var(--fs-body);
    line-height: 1.8;
    margin-top: var(--spacing-sm);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer Links ===== */
.footer-section h3 {
    color: var(--primary-gold);
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-body);
}

.footer-links li a:hover {
    color: var(--primary-gold);
    padding-right: var(--spacing-xs);
}

.footer-links li a i {
    color: var(--primary-gold);
    font-size: 0.875rem;
}

/* ===== Footer Contact Info ===== */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
    font-size: var(--fs-body);
}

.contact-item i {
    color: var(--primary-gold);
    font-size: 1.25rem;
    min-width: 25px;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-gold);
}

/* ===== Social Media ===== */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-full);
    color: var(--primary-gold);
    font-size: 1.25rem;
    transition: var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--secondary-black);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ===== Footer Bottom ===== */
.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.footer-copyright {
    color: var(--text-light);
    font-size: var(--fs-small);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.footer-copyright a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-copyright a:hover {
    color: var(--primary-gold-light);
    text-decoration: underline;
}

.footer-copyright .heart {
    color: #e74c3c;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.developer-credit {
    margin-top: var(--spacing-xs);
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.05),
        0 2px 3px rgba(0, 0, 0, 0.5);
    filter: contrast(1.2);
}

.developer-credit .heart {
    color: #e74c3c;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(231, 76, 60, 0.5));
}

.developer-credit .developer-link {
    color: rgba(212, 175, 55, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.05),
        0 2px 3px rgba(0, 0, 0, 0.5);
}

.developer-credit .developer-link:hover {
    color: var(--primary-gold);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.1),
        0 0 10px rgba(212, 175, 55, 0.5),
        0 2px 3px rgba(0, 0, 0, 0.5);
}

.developer-credit strong {
    font-weight: 700;
}

/* ===== Mobile Optimization ===== */
@media (max-width: 479px) {
    .site-footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .footer-content {
        gap: var(--spacing-md);
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-logo .logo-icon {
        height: 50px;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links li a {
        font-size: 0.9rem;
    }

    .footer-social {
        gap: var(--spacing-xs);
        margin-top: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .developer-credit {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 1.3rem;
    }
}

/* ===== Tablet & Desktop ===== */
@media (min-width: 480px) {
    .footer-social {
        gap: var(--spacing-md);
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    .site-footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        text-align: right;
    }

    .footer-about {
        text-align: right;
        max-width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .footer-description {
        margin-left: 0;
        margin-right: 0;
        max-width: 600px;
        font-size: 0.95rem;
    }

    .footer-social {
        justify-content: flex-start;
        margin-top: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .footer-section {
        text-align: right;
    }

    .footer-section h3 {
        font-size: 1.15rem;
        margin-bottom: var(--spacing-xs);
    }

    .footer-links {
        gap: 4px;
    }

    .footer-links li a {
        font-size: 0.95rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .footer-bottom {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .developer-credit {
        font-size: 0.68rem;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 1.4rem;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .site-footer {
        padding: var(--spacing-xxl) 0 var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: var(--spacing-xxl);
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-logo .logo-icon {
        height: 70px;
    }

    .footer-description {
        max-width: 100%;
        font-size: 1.05rem;
    }

    .footer-section h3 {
        font-size: 1.35rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-bronze));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-gold);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}
