/* GIFT BANK 스타일시트 */

/* 폰트 정의 */
@font-face {
    font-family: 'GongGothicMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* CSS 변수 정의 */
:root {
    /* 색상 변수 */
    --primary-color: #00c9a7;
    --primary-dark: #00b894;
    --secondary-color: #74b9ff;
    --accent-color: #fd79a8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    /* 폰트 */
    --font-family: 'GongGothicMedium', 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* 헤더 스타일 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

/* PC 네비게이션 메뉴 */
.desktop-nav {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-menu .login-btn {
    background: var(--primary-color);
    color: var(--white);
}

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

.user-menu .register-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.user-menu .register-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.user-menu .mypage-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.user-menu .mypage-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.user-menu .logout-btn {
    background: var(--gray);
    color: var(--white);
}

.user-menu .logout-btn:hover {
    background: var(--dark-gray);
}

.user-name {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

/* 모바일 햄버거 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 햄버거 버튼 애니메이션 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 모바일 오버레이 메뉴 */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: bold;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-user-menu {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    background-color: var(--light-gray);
}

.mobile-user-info {
    margin-bottom: 15px;
    text-align: center;
}

.mobile-user-name {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.mobile-user-menu a {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.mobile-register-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.mobile-mypage-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.mobile-logout-btn {
    background: var(--gray);
    color: var(--white);
}

.mobile-logout-btn:hover {
    background: var(--dark-gray);
}

/* 메인 컨텐츠 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 슬라이더 스타일 */
.slider-container {
    position: relative;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--white);
}

.products-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 30px;
    text-align: center;
}

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--gray);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.buy-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
}

.buy-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.product-card .buy-btn {
    margin-left: 0;
    margin-right: 0;
}

/* 푸터 스타일 */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 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-size: 18px;
}

.footer-section p, .footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 20px;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    /* PC 네비게이션 숨기기 */
    .desktop-nav {
        display: none;
    }
    
    /* 모바일 햄버거 버튼 표시 */
    .mobile-menu-btn {
        display: block;
    }
    
    .user-menu {
        gap: 10px;
    }
    
    .user-menu a {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* 햄버거 버튼이 나타날 때 로그아웃 버튼 숨기기 */
    .user-menu .logout-btn {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .slide {
        height: 200px;
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .user-menu {
        gap: 5px;
    }
    
    .user-menu a {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .slide {
        height: 150px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    /* 모바일 메뉴 너비 조정 */
    .mobile-menu {
        width: 280px;
        right: -280px;
    }
} 