/* 색상 변수 */
:root {
    --primary-blue: #7BA5D6;
    --primary-blue-light: #A8C8E8;
    --primary-blue-dark: #5B8BC4;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --bg-light: #FAFBFC;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --text-light: #ADB5BD;
    --border-gray: #DEE2E6;
    --border-light: #E9ECEF;
    --success: #8BC4A8;
    --warning: #F4C27C;
    --error: #E89B9B;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* 기본 타이포그래피 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

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

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* 요율 슬라이더 */
.rate-slider {
    height: 40px;
    overflow: hidden;
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    min-width: 350px;
}

.rate-slider-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #7BA5D6;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid #7BA5D6;
    border-radius: 6px;
    padding: 3px 8px;
    background: #f0f6ff;
}

.rate-slider-content {
    flex: 1;
    position: relative;
    height: 40px;
}

.rate-slider-items {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.rate-slider-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rate-slider-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.rate-slider-icon-default {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    color: white;
}

.rate-slider-name {
    font-weight: 600;
}

.rate-slider-rate {
    font-size: 12px;
    font-weight: 700;
}

.rate-slider-time {
    font-size: 12px;
    opacity: 0.6;
    white-space: nowrap;
    color: var(--text-gray);
}

/* 모바일 메뉴 */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
}

/* 메인 콘텐츠 */
.main-content {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 섹션 - Next.js 스타일 */
.section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-gray) 50%, transparent 100%);
    margin: 60px 0;
}

/* 버튼 - Next.js 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(123, 165, 214, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(123, 165, 214, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    border-color: var(--text-gray);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

/* 카드 - Next.js 스타일 */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-gray);
}

.card-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 0;
}

/* 폼 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 푸터 */
.footer {
    background-color: var(--bg-gray);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-content p {
    margin: 5px 0;
}

/* 유틸리티 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* 그리드 - Next.js 스타일 */
.grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.grid-gap-sm {
    gap: 12px;
}

.grid-gap-md {
    gap: 24px;
}

.grid-gap-lg {
    gap: 32px;
}

/* 반응형 */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 모바일 요율 드롭다운 */
.rate-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
}

.rate-dropdown.active {
    max-height: 500px;
    overflow-y: auto;
}

.rate-dropdown-header {
    padding: 16px 20px;
    background: var(--bg-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
}

.rate-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.rate-dropdown-time {
    font-size: 11px;
    color: var(--text-gray);
}

.rate-dropdown-list {
    padding: 8px 0;
}

.rate-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px dashed var(--border-light);
}

.rate-dropdown-item:last-child {
    border-bottom: none;
}

.rate-dropdown-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.rate-dropdown-name img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.rate-dropdown-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.rate-dropdown-rate {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .nav {
        display: none;
    }

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

    .rate-slider {
        min-width: auto;
        padding: 0;
        cursor: pointer;
    }

    .rate-slider-content {
        display: none;
    }

    .rate-dropdown {
        display: block;
    }

    .section {
        padding: 50px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}