/* =================================
   B2B Jewelry - Custom Styles
   ================================= */

/* 전역 스타일 */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 네비게이션 바 */
.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* 장바구니 배지 */
#cart-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 카드 스타일 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* 상품 카드 */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.product-card img {
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* 가격 표시 */
.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* 버튼 스타일 */
.btn {
    transition: all 0.3s;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-cart {
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    border: none;
    color: white;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #9b59b6, var(--primary-color));
    color: white;
}

/* 폼 스타일 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* 로그인/회원가입 페이지 */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 카테고리 카드 */
.category-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    transition: all 0.3s;
}

.category-card:hover {
    background: var(--light-color);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 통계 카드 */
.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.stat-card p {
    margin: 0;
    color: var(--secondary-color);
}

/* 푸터 */
footer a:hover {
    color: white !important;
}

/* 로딩 스피너 */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 테이블 */
.table-hover tbody tr {
    transition: background-color 0.3s;
}

.table-hover tbody tr:hover {
    background-color: var(--light-color);
}

/* 배지 */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* 페이지네이션 */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 알림 */
.alert {
    border-radius: 10px;
    border: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

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

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

