/* ===================================
   KoreaWave Academy - Footer Styles
   =================================== */

.main-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    margin-top: -20px; /* CTA와 자연스럽게 연결 */
}

/* Footer Main Content */
.footer-main {
    max-width: 1230px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

/* Footer Brand */
.footer-brand {
    padding-right: 1rem;
}

.footer-logo {
    margin-bottom: 1.2rem;
}

.footer-logo img {
    height: 45px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.7rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: #60a5fa;
    padding-left: 5px;
}

/* Contact Info */
.footer-contact {
    margin-top: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-contact-item .icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #60a5fa;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
}

.footer-bottom-inner {
    max-width: 1230px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .main-footer {
        margin-top: -15px; /* 태블릿에서 CTA와 연결 */
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        padding: 2.5rem 1.5rem 2rem;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contact-item {
        font-size: 0.85rem;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        margin-top: -10px; /* 모바일에서 CTA와 연결 */
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 1.5rem;
        gap: 0.8rem; /* 간격 줄임 */
    }

    .footer-brand {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* 아코디언 스타일 */
    .footer-column {
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.5rem;
    }

    .footer-column:last-of-type {
        border-bottom: none;
    }

    .footer-column h4 {
        border-bottom: none;
        padding: 0.8rem 0;
        font-size: 0.9rem;
        cursor: pointer;
        user-select: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        transition: color 0.2s ease;
    }

    .footer-column h4:hover {
        color: #60a5fa;
    }

    .footer-column h4::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        color: #94a3b8;
    }

    .footer-column.active h4::after {
        transform: rotate(180deg);
        color: #60a5fa;
    }

    .footer-column ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
    }

    .footer-column.active ul {
        max-height: 500px;
        opacity: 1;
        padding: 0.5rem 0 1rem 0;
    }

    .footer-column a {
        font-size: 0.85rem;
        padding-left: 0;
    }

    .footer-contact {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .footer-column.active .footer-contact {
        max-height: 500px;
        opacity: 1;
        padding: 0.5rem 0 1rem 0;
    }

    .footer-contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 5px;
        margin-bottom: 1rem;
    }

    .footer-contact-item:last-child {
        margin-bottom: 0;
    }

    .footer-contact-item .icon {
        margin-bottom: 3px;
    }

    .footer-contact-item span,
    .footer-contact-item a {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-bottom {
        padding: 1.2rem 1rem;
    }

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