﻿@charset "utf-8";
/* CSS Document */
        /* 모바일 퍼스트 CSS */
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f8f9fa;
            margin: 0;
            padding: 0;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }
        
        /* 헤더 */
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-align: center;
            padding: 30px 20px;
            border-radius: 12px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
        }
        
        .header h1 {
            margin: 0 0 10px 0;
            font-size: 2rem;
            font-weight: 700;
        }
        
        .header p {
            margin: 0;
            font-size: 1rem;
            opacity: 0.9;
        }
        
        /* 검색 섹션 */
        .search-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        
        .search-form {
            margin-bottom: 20px;
        }
        
        .search-row {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .search-input-group {
            display: flex;
            gap: 10px;
        }
        
        .search-input-group input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 16px;
            background: #fff;
            transition: border-color 0.3s ease;
        }
        
        .search-input-group input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        .btn-search {
            padding: 12px 20px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .btn-search:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
        }
        
        .filter-row {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .filter-group label {
            font-weight: 600;
            color: #495057;
            font-size: 14px;
        }
        
        .filter-group select {
            padding: 10px 14px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            transition: border-color 0.3s ease;
        }
        
        .filter-group select:focus {
            outline: none;
            border-color: #667eea;
        }
        
        /* 초성 네비게이션 */
        .initial-nav {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #f8f9fa;
        }
        
        .initial-nav h3 {
            margin: 0 0 15px 0;
            font-size: 1.1rem;
            color: #495057;
            font-weight: 600;
        }
        
        .initial-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .initial-link {
            display: inline-block;
            padding: 8px 12px;
            background: #f8f9fa;
            color: #495057;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .initial-link:hover {
            background: #667eea;
            color: white;
            transform: translateY(-1px);
        }
        
        .initial-link.active {
            background: #667eea;
            color: white;
            border-color: #5a67d8;
        }
        
        /* 결과 정보 */
        .result-info {
            background: #e3f2fd;
            border-left: 4px solid #667eea;
            padding: 15px 20px;
            margin-bottom: 25px;
            border-radius: 8px;
        }
        
        .result-info p {
            margin: 0;
            color: #1565c0;
            font-weight: 500;
        }
        
        /* 용어 목록 */
        .terms-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-bottom: 30px;
        }
        
        .term-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }
        
        .term-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
            border-color: #667eea;
        }
        
        .term-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .term-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .term-names {
            flex: 1;
        }
        
        .korean-term {
            font-size: 1.2rem;
            font-weight: 700;
            color: #2c3e50;
            margin: 0 0 5px 0;
        }
        
        .english-term {
            font-size: 0.95rem;
            color: #6c757d;
            font-style: italic;
        }
        
        .category-badge {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
        }
        
        .term-arrow {
            color: #667eea;
            font-size: 1.2rem;
            margin-left: 15px;
            transition: transform 0.3s ease;
        }
        
        .term-card:hover .term-arrow {
            transform: translateX(5px);
        }
        
        /* 검색 결과 없음 */
        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }
        
        .no-results i {
            color: #dee2e6;
            margin-bottom: 20px;
        }
        
        .no-results h3 {
            margin: 0 0 10px 0;
            color: #495057;
        }
        
        /* 페이징 */
        .pagination-wrapper {
            margin-top: 40px;
            text-align: center;
        }
        
        .pagination {
            display: inline-flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .pagination a,
        .pagination span {
            padding: 10px 14px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .pagination a {
            background: white;
            color: #495057;
            border: 1px solid #dee2e6;
        }
        
        .pagination a:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .pagination .active {
            background: #667eea;
            color: white;
            border: 1px solid #667eea;
        }
        
        /* 관리자 링크 */
        .admin-links {
            text-align: center;
            margin-top: 30px;
        }
        
        .btn-admin {
            background: #28a745;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-admin:hover {
            background: #218838;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
        }
        
        /* 태블릿 최적화 */
        @media (min-width: 768px) {
            .container {
                padding: 20px;
            }
            
            .header h1 {
                font-size: 2.5rem;
            }
            
            .search-row {
                flex-direction: row;
                align-items: end;
            }
            
            .search-input-group {
                flex: 1;
            }
            
            .filter-row {
                flex-direction: row;
                align-items: end;
            }
            
            .filter-group {
                flex: 1;
            }
            
            .terms-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
            
            .initial-links {
                gap: 10px;
            }
            
            .initial-link {
                padding: 10px 16px;
                font-size: 15px;
            }
        }
        
        /* PC 최적화 */
        @media (min-width: 1024px) {
            .container {
                padding: 30px;
            }
            
            .header {
                padding: 50px 40px;
            }
            
            .search-section {
                padding: 35px;
            }
            
            .terms-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
            
            .term-card {
                padding: 25px;
            }
            
            .korean-term {
                font-size: 1.3rem;
            }
        }
        
        /* 대형 화면 */
        @media (min-width: 1200px) {
            .terms-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }


