/* 커스텀 스타일 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

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

main {
    flex: 1;
}

/* 카드 호버 효과 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* 카테고리 카드 */
.category-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

/* 전문가 카드 */
.expert-card .badge {
    font-size: 0.8rem;
    padding: 0.5em 1em;
}

.expert-card .rating {
    color: #ffc107;
}

/* 의뢰 카드 */
.request-card {
    border-left: 4px solid var(--primary-color);
}

/* 폼 스타일링 */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 버튼 스타일 */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 네비게이션 바 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 푸터 */
footer {
    margin-top: auto;
    background-color: #f8f9fa;
}

footer a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

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

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

/* 로딩 스피너 */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 알림 메시지 */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 프로필 이미지 */
.profile-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

/* 별점 */
.star-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.star-rating .bi-star {
    color: #ddd;
}

/* 통계 카드 */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}