/*
Theme Name: 여성탈모 케어
Theme URI: https://talmo.zibsuri.com
Author: ationkr
Author URI: https://talmo.zibsuri.com
Description: 여성 탈모 정보 및 관리를 위한 전문 사이트 테마
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talmo-custom
Tags: custom, healthcare, women, hair-loss
*/

/* ===== 기본 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #2d2d2d;
    margin-bottom: 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ===== 색상 변수 ===== */
:root {
    --primary-color: #059669;
    --primary-hover: #047857;
    --secondary-color: #0891b2;
    --success-color: #10b981;
    --danger-color: #dc3545;
    --warning-color: #fbbf24;
    --info-color: #0891b2;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
}

/* ===== 레이아웃 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

/* ===== 헤더 ===== */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-hover);
}

/* ===== 내비게이션 ===== */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: -0.3px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    padding: 10px 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== 버튼 ===== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    letter-spacing: -0.3px;
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}

.btn-secondary:hover {
    background: #0e7490;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* ===== 폼 요소 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d2d2d;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* ===== 카드 ===== */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: none;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.card-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card-body {
    color: #6b7280;
    line-height: 1.7;
}

/* ===== 알림 메시지 ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid;
    border-left: 4px solid;
    font-weight: 400;
    line-height: 1.7;
}

.alert-success {
    background: #ecfdf5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error, .alert-danger {
    background: #fef2f2;
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background: #f0fdfa;
    border-color: var(--info-color);
    color: #115e59;
}

/* ===== 푸터 ===== */
.site-footer {
    background: #2a2a2a;
    color: #b8b8b8;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
    font-size: 0.9rem;
    color: #999;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active ul {
        flex-direction: column;
        padding: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ===== 유틸리티 클래스 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
