/**
 * 제주 요가 원데이클래스 - 메인 스타일시트
 * 컬러 스킴:
 * - 제주 오션블루: #3AC1CF (포인트/버튼)
 * - 에코 그린: #A7C957 (배경/액센트)
 * - 크림 화이트: #FDF6EC (배경/텍스트)
 * - 딥 브라운: #5E473B (본문/서브텍스트)
 * - 라벤더 퍼플: #A986B4 (하이라이트)
 */

:root {
    --primary: #3AC1CF;
    --primary-dark: #2BA5B2;
    --primary-light: #6DD3DE;
    --secondary: #A7C957;
    --secondary-dark: #8FB344;
    --accent: #A986B4;
    --accent-dark: #926FA3;
    --bg-main: #FDF6EC;
    --bg-white: #FFFFFF;
    --bg-cream: #FEF9F3;
    --text-primary: #5E473B;
    --text-secondary: #7D6459;
    --text-light: #A8968C;
    --text-white: #FFFFFF;
    --border: #E8DCD4;
    --shadow: rgba(94, 71, 59, 0.1);
    --shadow-lg: rgba(94, 71, 59, 0.15);
    --star-color: #FFB800;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   헤더
   =================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.75rem;
}

.main-nav {
    position: relative;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

.nav-menu.active {
    display: flex;
}

.nav-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu li a:hover {
    background: var(--bg-cream);
    color: var(--primary);
}

.nav-menu .btn-login {
    background: var(--primary);
    color: var(--text-white);
    text-align: center;
}

.nav-menu .btn-login:hover {
    background: var(--primary-dark);
    color: var(--text-white);
}

.nav-menu .btn-logout {
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 4px;
    }

    .nav-menu li a {
        padding: 8px 16px;
    }
}

/* ===================================
   메인 컨텐츠
   =================================== */
.site-main {
    flex: 1;
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===================================
   히어로 섹션
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .hero-section {
        padding: 72px 48px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* ===================================
   섹션 스타일
   =================================== */
.section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-icon {
    font-size: 1.25rem;
}

.section-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.section-link:hover {
    text-decoration: underline;
}

/* ===================================
   카드 스타일
   =================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.card-price-original {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.card-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* 클래스 그리드 */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===================================
   후기 카드
   =================================== */
.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 12px var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.review-author {
    font-weight: 600;
    color: var(--text-primary);
}

.review-rating {
    color: var(--star-color);
    font-size: 0.875rem;
}

.review-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.review-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 별점 */
.star {
    color: var(--star-color);
}

.star.empty {
    color: var(--border);
}

/* ===================================
   효과/장점 섹션
   =================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px var(--shadow);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.benefit-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   가격 비교
   =================================== */
.pricing-table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 20px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-body {
    padding: 24px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-name {
    font-weight: 500;
    color: var(--text-primary);
}

.pricing-value {
    font-weight: 700;
    color: var(--primary);
}

/* ===================================
   FAQ
   =================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-cream);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   폼 스타일
   =================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 193, 207, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input.error {
    border-color: #E53935;
}

.form-error {
    color: #E53935;
    font-size: 0.875rem;
    margin-top: 8px;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 8px;
}

/* ===================================
   버튼 스타일
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
}

.btn-accent:hover {
    background: var(--accent-dark);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-danger {
    background: #E53935;
    color: var(--text-white);
}

.btn-danger:hover {
    background: #C62828;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ===================================
   인증 페이지
   =================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-logo .logo-icon {
    font-size: 2rem;
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ===================================
   마이페이지
   =================================== */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 32px 24px;
    color: var(--text-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-email {
    opacity: 0.8;
    font-size: 0.875rem;
}

.profile-content {
    background: var(--bg-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 24px;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    color: var(--text-secondary);
}

.profile-info-value {
    font-weight: 500;
    color: var(--text-primary);
}

.withdraw-link {
    color: var(--text-light);
    font-size: 0.75rem;
    text-align: right;
    display: block;
    margin-top: 32px;
    opacity: 0.6;
}

.withdraw-link:hover {
    opacity: 1;
    color: #E53935;
}

/* ===================================
   알림 메시지
   =================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.alert-warning {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFCC80;
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* ===================================
   푸터
   =================================== */
.site-footer {
    background: var(--text-primary);
    color: var(--text-white);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-top {
    padding: 48px 0 32px;
    display: grid;
    gap: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 2fr;
    }
}

/* ===================================
   사이트맵 페이지
   =================================== */
.sitemap-section {
    margin-bottom: 32px;
}

.sitemap-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sitemap-list li a {
    display: block;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.2s;
}

.sitemap-list li a:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ===================================
   약관 페이지
   =================================== */
.legal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 2px 12px var(--shadow);
}

.legal-content h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

/* ===================================
   빈 상태
   =================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===================================
   로딩 스피너
   =================================== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   탈퇴 경고
   =================================== */
.withdraw-warning {
    background: #FFF3E0;
    border: 2px solid #FF9800;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.withdraw-warning-title {
    color: #E65100;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdraw-warning ul {
    color: #E65100;
    padding-left: 20px;
}

.withdraw-warning li {
    margin-bottom: 4px;
    list-style: disc;
}

/* ===================================
   페이지 타이틀
   =================================== */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 400;
    font-size: 1rem;
}

/* ===================================
   반응형
   =================================== */
@media (max-width: 767px) {
    .auth-card {
        padding: 32px 24px;
    }

    .profile-header {
        padding: 24px 20px;
    }

    .legal-content {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* ===================================
   유틸리티
   =================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-danger { color: #E53935; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
