/* The Enchanters - Professional Footer Styles */

:root {
    /* Primary Colors */
    --primary-color: #C9B7E2; /* Lavender Glow */
    --secondary-color: #E6DDF3; /* Soft Lilac */

    /* Secondary Colors */
    --moonlight-cream: #FFF6E8;
    --pastel-pink: #F4C6D7;

    /* Accent Colors */
    --accent-color: #F6D77A; /* Stardust Gold */
    --midnight-plum: #5B3B6E;

    /* Legacy support */
    --dark-bg: #5B3B6E; /* Using Midnight Plum for dark backgrounds */
    --light-text: #000000;
    --border-color: #C9B7E2; /* Using Lavender Glow for borders */
}

/* Footer Container */
.enchanter-footer {
    background: #eed9ff;
    border-top: 2px solid var(--primary-color);
    color: var(--midnight-plum);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 12px rgba(91, 59, 110, 0.15);
}

.enchanter-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Section */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    color: var(--midnight-plum);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    position: relative;
    opacity: 0.85;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--midnight-plum);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--midnight-plum);
    opacity: 1;
    transform: translateX(4px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Social Links */
.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(91, 59, 110, 0.1);
    border: 1.5px solid var(--midnight-plum);
    border-radius: 50%;
    color: var(--midnight-plum);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.social-link i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--midnight-plum);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    color: var(--light-text);
    border-color: var(--midnight-plum);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(91, 59, 110, 0.3);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 2.5rem 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--primary-color);
}

/* Footer About block */
.footer-about {
    flex-basis: 100%;
    margin-top: 0.25rem;
}
.footer-about-details summary {
    cursor: pointer;
    color: var(--midnight-plum);
    font-weight: 600;
    opacity: 0.85;
}
.footer-about-details[open] summary {
    color: var(--midnight-plum);
    opacity: 1;
}
.footer-about-content {
    color: var(--midnight-plum);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}
.footer-about a {
    color: var(--midnight-plum);
    text-decoration: none;
    font-weight: 600;
}
.footer-about a:hover {
    color: var(--midnight-plum);
    opacity: 1;
}

.footer-copyright {
    color: var(--midnight-plum);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    opacity: 0.75;
}

.footer-credits {
    color: var(--midnight-plum);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    opacity: 0.75;
}

.footer-credits a {
    color: var(--midnight-plum);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.footer-credits a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--midnight-plum);
    transition: width 0.3s ease;
}

.footer-credits a:hover {
    color: var(--midnight-plum);
    opacity: 1;
}

.footer-credits a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enchanter-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-link {
        font-size: 0.92rem;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .enchanter-footer {
        padding: 2rem 0 1rem;
        margin-top: 2.5rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-socials {
        gap: 0.8rem;
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .footer-copyright,
    .footer-credits {
        font-size: 0.8rem;
    }

    .footer-divider {
        margin: 1.5rem 0;
    }
}

