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

:root {
    --primary-color: #c4a77d;
    --primary-hover: #a08b74;
    --secondary-color: #8b7760;
    --background-dark: #faf9f7;
    --background-secondary: #ffffff;
    --background-tertiary: #f5f3f0;
    --border-color: #e8e2d8;
    --text-primary: #2a1f1a;
    --text-secondary: #5a5047;
    --text-muted: #8b7760;
    --discord-color: #5865f2;
    --discord-hover: #4752c4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --accent-gold: #c4a77d;
    --accent-dark: #2a1f1a;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 50%, #ebe8e4 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    font-size: 14px;
}

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

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

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

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

/* 사이드바 */
.sidebar {
    width: 280px;
    background: var(--background-secondary);
    border-right: none;
    box-shadow: 4px 0 20px rgba(42,31,26,0.06);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    padding: 0 24px 20px 24px;
    border-bottom: 2px solid var(--accent-dark);
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.navigation .nav-section {
    margin-bottom: 28px;
}

.nav-title {
    padding: 16px 24px 12px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 2px solid var(--accent-dark);
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: none;
    margin: 0;
}

.nav-item:hover {
    background: var(--background-tertiary);
    color: var(--primary-color);
}

.nav-item.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
}

.nav-item i {
    display: none;
}

/* 모바일 헤더 */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: 1200px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    border-bottom: 3px solid var(--accent-dark);
    padding-bottom: 12px;
    display: inline-block;
}

.page-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* 디스코드 섹션 */
.discord-section {
    background: var(--background-secondary);
    border: none;
    border-bottom: 2px solid var(--accent-dark);
    border-radius: 0;
    padding: 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(42,31,26,0.06);
}

.discord-section:hover {
    border-bottom-color: var(--discord-color);
    transform: translateY(-1px);
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-icon {
    width: 56px;
    height: 56px;
    background: var(--discord-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.discord-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
}

.discord-btn {
    background: var(--discord-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discord-btn:hover {
    background: var(--discord-hover);
    transform: translateY(-1px);
}

/* 콘텐츠 영역 */
.content-area {
    background: var(--background-secondary);
    border: none;
    border-bottom: 2px solid var(--accent-dark);
    border-radius: 0;
    padding: 40px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(42,31,26,0.06);
}

/* 홈페이지 스타일 */
.welcome-section {
    margin-bottom: 60px;
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.welcome-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--background-secondary);
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 4px 15px rgba(42,31,26,0.05);
}

.action-card:hover {
    border-bottom-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42,31,26,0.1);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dark);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.action-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.action-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 기능 섹션 */
.features-section {
    margin-bottom: 60px;
}

.features-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 팁 섹션 */
.tips-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.tips-list {
    display: grid;
    gap: 16px;
}

.tip-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--background-secondary);
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 10px rgba(42,31,26,0.04);
}

.tip-item:hover {
    border-bottom-color: var(--accent-dark);
}

.tip-number {
    width: 36px;
    height: 36px;
    background: var(--accent-dark);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tip-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 가이드 페이지 */
.guide-content {
    max-width: none;
}

.guide-navigation {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.guide-body {
    margin-bottom: 40px;
}

.guide-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.guide-body h2:first-child {
    margin-top: 0;
}

.guide-body p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.guide-image-rounded {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image-rounded:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.guide-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.guide-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.guide-meta small {
    color: var(--text-muted);
    font-size: 12px;
}

/* 버튼 스타일 */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-tertiary);
    color: var(--text-primary);
    border-bottom-color: var(--accent-dark);
}

/* 에러 페이지 */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 40px 20px;
}

.error-card {
    background: var(--background-secondary);
    border: none;
    border-bottom: 3px solid var(--accent-dark);
    border-radius: 0;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(42,31,26,0.1);
    padding: 48px 56px;
    width: min(560px, 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.error-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-code {
    font-size: clamp(48px, 8vw, 64px);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
}

.error-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.35em;
}

.error-icon-bubble {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 0;
    background: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(42,31,26,0.15);
}

.error-title {
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 700;
    color: var(--text-primary);
}

.error-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.error-redirect-note {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--background-tertiary);
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
}

.error-redirect-note span {
    font-weight: 700;
    color: var(--accent-dark);
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 페이지 네비게이션 */
.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.page-nav-item {
    flex: 1;
    max-width: 50%;
}

.page-nav-link {
    display: block;
    padding: 20px 24px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-nav-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(42,31,26,0.08);
}

.page-nav-link.prev {
    text-align: left;
}

.page-nav-link.next {
    text-align: right;
}

.page-nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.page-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.page-nav-link:hover .page-nav-title {
    color: var(--accent-dark);
}

@media (max-width: 600px) {
    .page-navigation {
        flex-direction: column;
    }
    
    .page-nav-item {
        max-width: 100%;
    }
}

/* 푸터 */
.footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--accent-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

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

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .main-content {
        padding: 32px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .discord-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
    
    .guide-actions {
        flex-direction: column;
    }
    
    .error-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
    }
    
    .content-area {
        padding: 24px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .discord-section {
        padding: 20px;
    }
    
    .tip-item {
        flex-direction: column;
        gap: 12px;
    }
}

.mechanic-guide {
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    background: rgba(45, 45, 45, 0.3);
    backdrop-filter: blur(10px);
}

.repair-types,
.tuning-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.repair-item,
.price-tier {
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    background: rgba(45, 45, 45, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.repair-item:hover,
.price-tier:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    border-left-color: #0056b3;
    background: rgba(45, 45, 45, 0.7);
}

.success-rates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.level-item {
    background: linear-gradient(135deg, #727272 0%, #5a5a5a 100%);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.level-item:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(114, 114, 114, 0.4);
    background: linear-gradient(135deg, #828282 0%, #6a6a6a 100%);
}

.tips-section {
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
    margin: 15px 0;
    background: rgba(23, 162, 184, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tips-section:hover {
    background: rgba(23, 162, 184, 0.15);
    border-left-width: 6px;
    padding-left: 18px;
}

.warning-box {
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin: 15px 0;
    background: rgba(220, 53, 69, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.warning-box:hover {
    background: rgba(220, 53, 69, 0.15);
    border-left-width: 6px;
    padding-left: 18px;
}

.repair-times {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.repair-times::-webkit-scrollbar {
    height: 8px;
}

.repair-times::-webkit-scrollbar-track {
    background: #1d1d1d;
    border-radius: 4px;
}

.repair-times::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.repair-times::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.repair-times table {
    width: 100%;
    border-collapse: collapse;
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
}

.repair-times th,
.repair-times td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #3d3d3d;
    transition: all 0.2s ease;
}

.repair-times thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.repair-times thead th {
    position: relative;
    padding: 15px;
}

.repair-times thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.repair-times tbody tr {
    transition: all 0.3s ease;
}

.repair-times tbody tr:nth-child(even) {
    background-color: #363636;
}

.repair-times tbody tr:hover {
    background: linear-gradient(90deg, #444 0%, #4a4a4a 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.repair-times tbody td {
    font-variant-numeric: tabular-nums;
}

.repair-times tbody tr:hover td {
    color: #ffffff;
    border-color: #555;
}

/* 첫 번째 열 강조 */
.repair-times tbody td:first-child {
    font-weight: bold;
    background: rgba(0, 123, 255, 0.1);
}

.repair-times tbody tr:hover td:first-child {
    background: rgba(0, 123, 255, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .repair-types,
    .tuning-prices {
        grid-template-columns: 1fr;
    }
    
    .repair-times th,
    .repair-times td {
        padding: 8px 10px;
        font-size: 0.9em;
    }
}

/* 중첩 메뉴 스타일 */
.nav-item-group {
    position: relative;
}

.nav-item.has-children {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item.has-children::after {
    display: none;
}

.nav-item .expand-icon {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-item-group.expanded .expand-icon {
    transform: rotate(180deg);
}

.nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
    border-radius: 0;
    margin: 0;
}

.nav-item-group.expanded .nav-children {
    max-height: 500px;
}

.nav-child-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px 10px 36px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    font-size: 13px;
    position: relative;
}

.nav-child-item::before {
    display: none;
}

.nav-child-item i {
    display: none;
}

.nav-child-item:hover {
    background: var(--background-tertiary);
    color: var(--primary-color);
}

.nav-child-item.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .nav-child-item {
        padding: 10px 12px 10px 32px;
    }
    
    .nav-child-item::before {
        left: 16px;
    }
}

/* 직업 목록 카드 */
.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.job-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(76,175,80,0.2), rgba(76,175,80,0.1));
    border-color: rgba(76,175,80,0.5);
    box-shadow: 0 10px 30px rgba(76,175,80,0.2);
}

.job-card i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 15px;
    display: block;
}

.job-card h3 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #fff;
}

.job-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .job-list {
        grid-template-columns: 1fr;
    }
    
    .repair-types,
    .tuning-prices {
        grid-template-columns: 1fr;
    }
    
    .success-rates {
        grid-template-columns: repeat(2, 1fr);
    }
}

.taxi-guide {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.8;
  color: #333;
}

.taxi-guide h2 {
  color: #FDB913;
  border-bottom: 3px solid #FDB913;
  padding-bottom: 10px;
  margin-top: 30px;
  font-size: 1.8em;
}

.taxi-guide h3 {
  color: #2c3e50;
  margin-top: 25px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fare-box {
  background: linear-gradient(135deg, #FDB913 0%, #FF9800 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
}

.fare-box h3 {
  color: white;
  margin-top: 0;
  font-size: 1.6em;
}

.fare-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 10px;
  margin: 10px 0;
  backdrop-filter: blur(10px);
}

.fare-item strong {
  font-size: 1.3em;
  display: block;
  margin-bottom: 5px;
}

.surcharge-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
  border-left: 5px solid #4a5568;
}

.surcharge-box strong {
  font-size: 1.2em;
  color: #ffd700;
}

.key-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.key-card {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.key-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-color: #FDB913;
}

.key-badge {
  display: inline-block;
  background: #FDB913;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.key-desc {
  color: #555;
  font-size: 0.95em;
  margin-top: 8px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.status-item {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.status-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.status-name {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.tip-box {
  background: #e8f5e9;
  border-left: 5px solid #4caf50;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.tip-box h4 {
  color: #2e7d32;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-box {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.warning-box h4 {
  color: #856404;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.step-list li {
  counter-increment: step-counter;
  background: #f8f9fa;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  border-left: 5px solid #FDB913;
  position: relative;
}

.step-list li::before {
  content: counter(step-counter);
  background: #FDB913;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
}

.highlight {
  background: linear-gradient(120deg, #ffd70080 0%, #ffd70080 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 80%;
  padding: 2px 5px;
  font-weight: bold;
}

.example-box {
  background: #f0f4ff;
  border: 2px dashed #667eea;
  padding: 20px;
  border-radius: 10px;
  margin: 15px 0;
}

.example-box h4 {
  color: #667eea;
  margin-top: 0;
}

.calc-example {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
}
/* Criminal Guide Styles - Dark Theme */

.info-box {
    background-color: #1e293b;
    border-left: 4px solid #3b82f6;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .info-box p {
    color: #f1f5f9;
    margin: 10px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
  }
  
  .info-box strong {
    color: #60a5fa;
    font-weight: 700;
  }
  
  .warning-box {
    background-color: #2d1b1e;
    border-left: 4px solid #ef4444;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .warning-box p,
  .warning-box ul,
  .warning-box li {
    color: #f1f5f9;
    font-size: 16px;
    line-height: 1.7;
  }
  
  .warning-box strong {
    color: #f87171;
    font-weight: 700;
  }
  
  .shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
  }
  
  .shop-item {
    background-color: #1e293b;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
  }
  
  .shop-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
  }
  
  .shop-item h4 {
    margin: 0 0 12px 0;
    color: #f1f5f9;
    font-size: 20px;
    font-weight: 700;
  }
  
  .shop-item p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
    margin: 6px 0;
  }
  
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 2px solid #334155;
    background: #000;
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }
  
  .guide-video-rounded {
    border-radius: 12px;
  }
  
  @media (max-width: 768px) {
    .info-box,
    .warning-box {
      padding: 20px;
      margin: 20px 0;
    }
    
    .shop-list {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    .shop-item {
      padding: 20px;
    }
  }

  .tip-box {
    background-color: #1a2e1a;
    border-left: 4px solid #10b981;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .tip-box p,
  .tip-box ul,
  .tip-box li {
    color: #f1f5f9;
    font-size: 16px;
    line-height: 1.7;
  }
  
  .tip-box strong {
    color: #4ade80;
    font-weight: 700;
  }

  /* 법률 페이지 스타일 */
  .rules-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
  }

  /* 법전 헤더 */
  .law-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .law-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #f8fafc;
    text-align: center;
  }

  .law-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .law-version,
  .law-date {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #a5b4fc;
  }

  .law-info {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
  }

  .law-info p {
    margin: 8px 0;
    color: #cbd5e1;
    font-size: 14px;
  }

  .economic-note {
    background: rgba(234, 179, 8, 0.1);
    border-left: 4px solid #eab308;
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px;
    color: #fef3c7;
    font-size: 14px;
  }

  .economic-note i {
    color: #fbbf24;
    margin-right: 8px;
  }

  /* 검색 섹션 */
  .rules-search-section {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .search-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 18px;
  }

  .rules-search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    background: var(--background-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
  }

  .rules-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-dark);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  }

  .clear-search-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
  }

  .search-results-count {
    margin-top: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
  }

  /* 카테고리 필터 */
  .rules-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .category-btn {
    padding: 12px 24px;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .category-btn:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  }

  /* 법률 컨텐츠 */
  .rules-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .rule-category {
    transition: opacity 0.3s ease;
  }

  .rule-category.hidden {
    display: none;
  }

  .category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .category-title i {
    color: var(--primary-color);
  }

  /* 법률 카드 */
  .rule-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .rule-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
  }

  .rule-card.search-highlight {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
  }

  .rule-card.dimmed {
    opacity: 0.3;
    pointer-events: none;
  }

  .rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .rule-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    min-width: 200px;
  }

  .rule-penalty {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #fca5a5;
    white-space: nowrap;
    font-weight: 600;
  }

  .rule-body {
    color: var(--text-secondary);
    line-height: 1.7;
  }

  .rule-body p {
    margin-bottom: 12px;
  }

  .rule-body ol,
  .rule-body ul {
    margin-left: 24px;
    margin-top: 12px;
  }

  .rule-body li {
    margin-bottom: 8px;
    padding-left: 8px;
  }

  .rule-body strong {
    color: var(--text-primary);
    font-weight: 600;
  }

  /* 반응형 디자인 */
  @media (max-width: 768px) {
    .law-header {
      padding: 24px;
    }

    .law-title {
      font-size: 24px;
    }

    .law-meta {
      flex-direction: column;
      gap: 12px;
      align-items: center;
    }

    .rules-search-section {
      padding: 16px;
    }

    .rules-categories {
      gap: 8px;
    }

    .category-btn {
      padding: 10px 16px;
      font-size: 13px;
    }

    .rule-card {
      padding: 20px;
    }

    .rule-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .rule-title {
      font-size: 16px;
    }

    .rule-penalty {
      font-size: 12px;
    }

    .category-title {
      font-size: 20px;
    }
  }