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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 헤더 스타일 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 네비게이션 */
.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 차량 카드 */
.vehicle-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.vehicle-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.vehicle-card .card-body {
    padding: 1.5rem;
}

.vehicle-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vehicle-card .card-text {
    color: #666;
    margin-bottom: 1rem;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vehicle-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.vehicle-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #666;
}

.vehicle-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* 버튼 스타일 */
.btn-group .btn {
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 검색창 */
#searchInput {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--primary-color);
    border-right: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

#searchInput:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.input-group .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--primary-color);
    border-left: none;
    padding: 0.75rem 1.5rem;
}

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

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

/* 폼 스타일 */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* 섹션 스타일 */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

section .lead {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* 푸터 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 로딩 스피너 */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* 배지 */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

/* 아이콘 */
.bi {
    vertical-align: middle;
}

/* 토스 에스크로 버튼 (숨김) */
#tossEscrowButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* 알림 메시지 */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.toast {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}