/**
 * SML Footer Widget CSS
 * Clinical Precision Design - 연구소/바이오텍 스타일
 */

/* ============================================
   SML Footer - Clinical Precision Design
   ============================================ */

.sml-footer {
    --sml-primary: #0A2540;
    --sml-secondary: #00C9A7;
    --sml-accent: #00D4FF;
    --sml-text-light: #FFFFFF;
    --sml-text-muted: rgba(255, 255, 255, 0.6);
    --sml-border: rgba(255, 255, 255, 0.1);
    
    background: var(--sml-primary);
    color: var(--sml-text-light);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ============================================
   Footer Container & Layout
   ============================================ */

.sml-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sml-footer__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .sml-footer__row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .sml-footer__row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Company Column
   ============================================ */

.sml-footer__column--company {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sml-footer__logo img {
    max-width: 100%;
    height: auto;
}

.sml-footer__company-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.sml-footer__description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--sml-text-muted);
}

/* ============================================
   Social Links
   ============================================ */

.sml-footer__social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.sml-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--sml-text-light);
}

.sml-footer__social-icon:hover {
    transform: translateY(-2px);
    color: var(--sml-secondary);
}

/* ============================================
   Link Columns
   ============================================ */

.sml-footer__column-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sml-text-light);
}

.sml-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sml-footer__link-item {
    margin: 0;
    margin-bottom: 10px;
}

.sml-footer__link {
    display: inline-block;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--sml-text-muted);
}

.sml-footer__link:hover {
    padding-left: 5px;
    color: var(--sml-secondary);
}

/* ============================================
   Bottom Bar
   ============================================ */

.sml-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sml-footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .sml-footer__bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

.sml-footer__copyright {
    font-size: 14px;
    color: var(--sml-text-muted);
}

.sml-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sml-footer__bottom-link {
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--sml-text-muted);
}

.sml-footer__bottom-link:hover {
    color: var(--sml-secondary);
}

.sml-footer__separator {
    color: #64748b;
    font-size: 14px;
}

/* Background Pattern */
.sml-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(0, 201, 167, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 90% 10%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sml-footer-main {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

.sml-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

/* Company Info */
.sml-footer-brand {
    max-width: 320px;
}

.sml-footer-logo {
    margin-bottom: 24px;
}

.sml-footer-logo img {
    height: 40px;
    width: auto;
}

.sml-footer-desc {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    color: var(--sml-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.sml-footer-social {
    display: flex;
    gap: 12px;
}

.sml-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--sml-text-light);
    transition: all 0.3s ease;
}

.sml-footer-social a:hover {
    background: var(--sml-secondary);
    color: var(--sml-primary);
    transform: translateY(-3px);
}

/* Navigation */
.sml-footer-nav h4 {
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--sml-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.sml-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sml-footer-nav li {
    margin-bottom: 12px;
}

.sml-footer-nav a {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    color: var(--sml-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sml-footer-nav a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--sml-secondary);
    transition: width 0.3s ease;
}

.sml-footer-nav a:hover {
    color: var(--sml-secondary);
}

.sml-footer-nav a:hover::before {
    width: 16px;
}

/* Contact Info */
.sml-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.sml-footer-contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 201, 167, 0.1);
    border-radius: 8px;
    color: var(--sml-secondary);
    flex-shrink: 0;
}

.sml-footer-contact-text {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--sml-text-muted);
    line-height: 1.5;
}

.sml-footer-contact-text a {
    color: var(--sml-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sml-footer-contact-text a:hover {
    color: var(--sml-secondary);
}

/* Footer Bottom */
.sml-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--sml-border);
    padding: 24px 40px;
}

.sml-footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sml-footer-copyright {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--sml-text-muted);
}

.sml-footer-legal {
    display: flex;
    gap: 24px;
}

.sml-footer-legal a {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--sml-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sml-footer-legal a:hover {
    color: var(--sml-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .sml-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .sml-footer-brand {
        grid-column: span 2;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .sml-footer-main {
        padding: 60px 24px 40px;
    }

    .sml-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sml-footer-brand {
        grid-column: span 1;
        text-align: center;
    }

    .sml-footer-social {
        justify-content: center;
    }

    .sml-footer-nav h4 {
        text-align: center;
    }

    .sml-footer-nav ul {
        text-align: center;
    }

    .sml-footer-nav a::before {
        display: none;
    }

    .sml-footer-contact-item {
        justify-content: center;
    }

    .sml-footer-bottom {
        padding: 20px 24px;
    }

    .sml-footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
