/* Footer Styles - 3 Rows */

.alpha-footer {
    margin-top: 80px;
}

/* ===== First Row: Policy + Utility Links ===== */
.footer-top {
    background: #FFF;  /* White - contrast with last section (#F3F4F6 gray) */
    padding: 20px 0;
    border-top: 1px solid #E5E7EB;
}

.footer-top-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.footer-policy-links,
.footer-utility-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-policy-links a,
.footer-utility-links a {
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-policy-links a:hover,
.footer-utility-links a:hover {
    color: #8B5CF6;
}

/* ===== Second Row: Sitemap ===== */
.footer-sitemap {
    background: #F9FAFB;  /* Light gray - contrast with first row (white) */
    padding: 60px 0;
    border-top: 1px solid #E5E7EB;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.sitemap-column h4.sitemap-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.sitemap-column h4.sitemap-title a {
    color: #1F2937;
    text-decoration: none;
    transition: color 0.3s;
}

.sitemap-column h4.sitemap-title a:hover {
    color: #8B5CF6;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 12px;
}

.sitemap-list li a {
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

.sitemap-list li a:hover {
    color: #8B5CF6;
}

/* ===== Third Row: Logo + Company + SNS ===== */
.footer-bottom {
    background: #1e293b;  /* Header navy color */
    padding: 60px 0 40px 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 60px;
    align-items: start;
}

/* Logo */
.footer-brand .footer-logo {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);  /* Make logo white */
}

/* Company Info */
.footer-company {
    text-align: center;
}

.footer-company p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-company p strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer-company .copyright {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* SNS Icons */
.footer-sns {
    text-align: right;
}

.footer-sns h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.sns-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sns-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.sns-icons a:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-3px);
}

.sns-icons a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);  /* Make icons white */
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .footer-top-grid {
        flex-direction: column;
        gap: 16px;
    }

    .footer-policy-links,
    .footer-utility-links {
        justify-content: center;
        width: 100%;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-sns {
        text-align: center;
    }

    .sns-icons {
        justify-content: center;
    }
}

/* ===== Dark Mode Support ===== */
body.dark-mode .footer-top {
    background: #1E293B;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-sitemap {
    background: #0F172A;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-policy-links a,
body.dark-mode .footer-utility-links a {
    color: #9CA3AF;
}

body.dark-mode .footer-policy-links a:hover,
body.dark-mode .footer-utility-links a:hover {
    color: #A78BFA;
}

body.dark-mode .sitemap-column h4.sitemap-title,
body.dark-mode .sitemap-column h4.sitemap-title a {
    color: #E5E7EB;
}

body.dark-mode .sitemap-list li a {
    color: #9CA3AF;
}

body.dark-mode .sitemap-list li a:hover {
    color: #A78BFA;
}

body.dark-mode .footer-bottom {
    background: #0F172A;
}

/* Fix Footer Issues */

/* 1. First Row: Left/Right Split (not left aligned) */
.footer-policy-links {
    justify-content: flex-start;
}

.footer-utility-links {
    justify-content: flex-end;
}

/* 2. Second Row: Reduce column width for single line */
.sitemap-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
}

/* 3. Third Row: Logo size + Left align company info */
.footer-brand .footer-logo {
    max-width: 120px;  /* Reduce logo size like header */
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-company {
    text-align: left;  /* Left align instead of center */
}

/* Logo Size Fix - Match header size */
.footer-brand .footer-logo {
    max-width: 100px !important;  /* Match header logo size */
    max-height: 50px;  /* Limit height to header height */
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Footer First Row - Force Left/Right Split */
.footer-top-grid {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.footer-policy-links {
    flex: 0 0 auto;
}

.footer-utility-links {
    flex: 0 0 auto;
    margin-left: auto;
}
