/* ===================================
   손톱 (SONTOP) - 네일아트 샵 스타일시트
   =================================== */

/* CSS 변수 정의 */
:root {
    --primary-color: #e8a4b8;
    --primary-dark: #d4839a;
    --secondary-color: #f5e6e8;
    --accent-color: #c9a0dc;
    --gold-color: #d4af37;
    --rose-gold: #b76e79;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #faf7f8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

/* 리셋 및 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 웹폰트 로드 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 네비게이션 */
.nav {
    display: flex;
    gap: 5px;
}

.nav a {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-size: 15px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 50%, #f0e6f0 100%);
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(232, 164, 184, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232, 164, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 164, 184, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
}

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

.btn-camera {
    background: linear-gradient(135deg, var(--accent-color), #9b6fb5);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(201, 160, 220, 0.4);
}

.btn-camera:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 160, 220, 0.5);
}

/* 히어로 이미지 영역 */
.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.9;
}

/* 플로팅 요소 */
.floating-element {
    position: absolute;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.floating-element.top-left {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-element.bottom-right {
    bottom: 10%;
    right: -10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 섹션 기본 스타일 */
.section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

/* 특징 카드 섹션 */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 갤러리 프리뷰 */
.gallery-preview {
    background: linear-gradient(135deg, var(--secondary-color), #f5f0f5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: var(--white);
    font-weight: 500;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255,255,255,0.8);
}

/* 카메라 기능 섹션 */
.camera-features {
    background: var(--white);
}

.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.camera-card {
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid rgba(232, 164, 184, 0.2);
}

.camera-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.camera-card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.camera-card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.camera-card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.camera-card .btn {
    padding: 12px 24px;
    font-size: 14px;
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 푸터 */
.footer {
    background: #2d2d2d;
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo-text {
    font-size: 32px;
    margin-bottom: 15px;
    -webkit-text-fill-color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .camera-grid {
        grid-template-columns: 1fr;
    }

    .camera-card {
        flex-direction: column;
        text-align: center;
    }

    .camera-card-icon {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 40px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 스크롤바 커스텀 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 페이지 전환 애니메이션 */
.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   헤더 인증 영역
   =================================== */
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 164, 184, 0.4);
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--secondary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.user-avatar {
    font-size: 18px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .header-auth {
        display: none;
    }
}

/* ===================================
   토스트 메시지
   =================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    background: #333;
    color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { background: #4CAF50; }
.toast.error { background: #f44336; }
.toast.info { background: #2196F3; }
.toast.warning { background: #ff9800; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
