/* ============================================
   힐링 스웨디샵 - Mobile First Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* 主色调 */
    --primary-color: #6c5ce7;
    --primary-dark: #5b4cdb;
    --secondary-color: #00b894;
    --accent-color: #fd79a8;
    
    /* 背景色 */
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* 其他 */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Desktop Only (QR Code Screen) ---------- */
.desktop-only {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.desktop-container {
    text-align: center;
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    max-width: 400px;
}

.desktop-logo {
    margin-bottom: var(--spacing-lg);
}

.desktop-logo .logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.desktop-logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius-sm);
    width: fit-content;
}

.desktop-message {
    color: var(--text-secondary);
}

.desktop-message p {
    margin-bottom: var(--spacing-xs);
    font-size: 15px;
}

.scan-hint {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* ---------- Mobile Only ---------- */
.mobile-only {
    display: none;
}

/* ---------- Container Base ---------- */
.container {
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.section-header.light h2 {
    color: var(--text-primary);
}

/* ---------- Container 1: Hero ---------- */
.container-hero {
    padding-top: var(--spacing-xl);
    background: linear-gradient(180deg, var(--bg-darker) 0%, transparent 100%);
}

.hero-content {
    text-align: center;
}

.hero-logo {
    margin-bottom: var(--spacing-lg);
}

.hero-logo .logo-icon {
    font-size: 56px;
    display: block;
    margin-bottom: var(--spacing-sm);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.hero-logo .tagline {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.hero-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    position: relative;
    min-height: 300px;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

/* 图片轮播样式 */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide:not(.active) {
    z-index: 0;
}

.hero-slide.active {
    z-index: 1;
}

/* ---------- Container 2: Services ---------- */
.container-services {
    background: transparent;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.service-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.service-image {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.service-info .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ---------- Container 3: App Info ---------- */
.container-app-info {
    padding: 0;
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

/* 背景区域 - 人物剪影 */
.app-info-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, #c4b8a8 0%, #d4c8b8 100%);
    z-index: 0;
}

/* 主内容卡片 */
.app-info-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    margin: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.app-title {
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin-bottom: var(--spacing-md);
    font-family: 'Nanum Myeongjo', serif;
}

.app-title .highlight {
    font-weight: 700;
    color: #8B4513;
}

.app-subtitle-box {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: var(--spacing-md);
}

.app-subtitle-box span {
    font-size: 13px;
    color: #666;
}

.app-highlight-text {
    font-size: 24px;
    font-weight: 700;
    color: #C0392B;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.app-description {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
}

.app-description p {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.8;
}

.app-description .underline {
    color: #C0392B;
    text-decoration: underline;
    font-weight: 500;
}

.app-notice {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
}

.app-notice p {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.7;
}

.app-warning {
    margin-bottom: 0;
}

.app-warning p {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    line-height: 1.7;
}

/* CTA 区域 */
.app-cta-section {
    position: relative;
    z-index: 1;
    background: #f5f0eb;
    padding: var(--spacing-lg);
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: var(--spacing-md);
    font-family: 'Black Han Sans', sans-serif;
}

.cta-title .red {
    color: #C0392B;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.store-btn {
    display: block;
    transition: transform 0.3s ease;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn img {
    height: 50px;
    width: auto;
}

/* Store 按钮样式 */
.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 150px;
}

.store-btn.onestore {
    background: linear-gradient(135deg, #ff6b6b, #e55a5a);
    color: white;
}

.store-btn.appstore {
    background: #000;
    color: white;
}

.store-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.onestore .store-icon {
    background: white;
    color: #ff6b6b;
    border-radius: 6px;
    font-weight: 800;
}

.appstore .store-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appstore .store-icon svg {
    width: 20px;
    height: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-text small {
    font-size: 10px;
    opacity: 0.9;
}

.store-text strong {
    font-size: 16px;
    font-weight: 700;
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 11px;
    opacity: 0.8;
}

/* ---------- Container 4: Gallery Slider ---------- */
.container-gallery {
    background: transparent;
}

.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-slide.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* 指示器样式 */
.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ---------- Container 5: CTA ---------- */
.container-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00a085 100%);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.cta-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.cta-content > p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: var(--bg-dark);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.btn-kakao {
    background: #FEE500;
    color: #3C1E1E;
}

.btn-kakao:hover {
    background: #F5DC00;
}

/* ---------- Container 6: Location ---------- */
.container-location {
    background: transparent;
}

.location-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.location-map img {
    width: 100%;
    height: auto;
}

.location-details {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ---------- Container 7: Footer ---------- */
.container-footer {
    background: var(--bg-darker);
    text-align: center;
    padding-bottom: 100px; /* 为浮动按钮留空间 */
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ---------- Floating Buttons ---------- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 1000;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.float-telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.float-kakao {
    background: #FEE500;
}

.float-btn:hover {
    transform: scale(1.1);
}

/* ---------- Responsive: Mobile ---------- */
@media only screen and (max-width: 900px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease-out;
}

.container:nth-child(2) { animation-delay: 0.1s; }
.container:nth-child(3) { animation-delay: 0.2s; }
.container:nth-child(4) { animation-delay: 0.3s; }
.container:nth-child(5) { animation-delay: 0.4s; }
.container:nth-child(6) { animation-delay: 0.5s; }
.container:nth-child(7) { animation-delay: 0.6s; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
