/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4d6d;
    --primary-dark: #c9184a;
    --secondary: #ff8fa3;
    --accent: #ffd6dd;
    --text-dark: #2d2d2d;
    --text-light: #888;
    --bg: #fff5f7;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 100%);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* 앱 컨테이너 - 모바일 너비 */
.app-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 헤더 */
.header {
    padding: 16px 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 24px;
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 320px;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 24px;
    width: 100%;
    color: var(--white);
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 24px;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
}

.hero-stats .stat i {
    color: var(--secondary);
}

/* 갤러리 슬라이더 */
.gallery {
    padding: 24px 0;
    background: var(--white);
}

.gallery h2 {
    font-size: 18px;
    font-weight: 600;
    padding: 0 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery h2 i {
    color: var(--primary);
}

.slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 12px;
    padding: 0 20px 10px;
}

.card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:active {
    transform: scale(0.98);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    color: var(--white);
}

.card-info .name {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.card-info .detail {
    font-size: 12px;
    opacity: 0.85;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(255,77,109,0.4);
}

.card-badge.new {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 2px 8px rgba(255,152,0,0.4);
}

/* 특징 섹션 */
.features {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.feature i {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature p {
    font-size: 13px;
    color: var(--text-light);
}

/* 固定底部按钮 */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 16px;
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta.line {
    background: #06C755;
    box-shadow: 0 4px 15px rgba(6,199,85,0.35);
}

.btn-cta.telegram {
    background: #0088cc;
    box-shadow: 0 4px 15px rgba(0,136,204,0.35);
}

.btn-cta:active {
    transform: scale(0.97);
}

.btn-cta i {
    font-size: 20px;
}

/* 푸터 */
.footer {
    padding: 20px;
    padding-bottom: 80px;
    text-align: center;
    border-top: 1px solid #eee;
    background: var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}

.footer p {
    font-size: 11px;
    color: #bbb;
}

/* 스크롤바 숨기기 */
.app-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container::-webkit-scrollbar {
    display: none;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: var(--white);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #eee;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 77px);
}

.modal-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 12px;
}
