/* AI 프로그램 분류 체계 웹사이트 커스텀 스타일 */

/* 3분할 분류 카드 스타일 - 작은 함수로 나누어 관리 */
.category-section {
    transition: all 0.3s ease;
}

.category-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 대분류 카드 스타일 */
.category-section:nth-child(1) {
    border-left: 4px solid #3b82f6; /* 파란색 */
}

/* 중분류 카드 스타일 */
.category-section:nth-child(2) {
    border-left: 4px solid #10b981; /* 초록색 */
}

/* 소분류 카드 스타일 */
.category-section:nth-child(3) {
    border-left: 4px solid #8b5cf6; /* 보라색 */
}

/* 디지털 시계 스타일 */
#digitalClock {
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 공지사항 항공편 패널 스타일 - 가운데 정렬 및 선명하게 개선 */
.notice-ticker {
    font-family: 'Courier New', monospace;
    color: #1e3a8a;
    font-weight: 600;
    text-align: center;
    position: relative;
    background: rgba(239, 246, 255, 0.8);
    /* 한글 주석: 패널 높이와 여백 최적화 - 글자보다 약간만 크게 */
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px;
}

/* 회전하는 공지사항 패널 스타일 - 작은 함수로 나누어 관리 */
.notice-rotating-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
    transition: all 0.3s ease;
}

.notice-rotating-panel:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.notice-rotating-panel .rotating-notice {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: 100%;
    text-align: center;
}

.notice-rotating-panel .rotating-notice.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.notice-rotating-panel .rotating-notice .notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.025em;
}

.notice-rotating-panel .rotating-notice .notice-code {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.notice-rotating-panel .rotating-notice .notice-status {
    font-size: 0.8rem;
    font-weight: 500;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.notice-ticker-viewport {
    overflow: hidden;
}

.notice-ticker-track {
    display: flex;
}

.notice-vertical-viewport { 
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 2px 0;
    /* 한글 주석: 뷰포트 크기 최적화 - 글자보다 약간만 크게 */
    min-height: 64px;
    width: 100%;
}

.notice-vertical-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.notice-vertical-list li { 
    height: 56px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #1e3a8a; 
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    visibility: hidden;
    text-align: center;
    line-height: 1.2;
}

.notice-vertical-list li.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* 한글 주석: 공지사항 알약 스타일 개선 - 더 선명하고 읽기 쉽게 */
.notice-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    margin: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 1);
    color: #1e3a8a;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 300px;
    max-width: 500px;
    height: 48px;
    box-sizing: border-box;
    /* 한글 주석: 텍스트 가독성 향상 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.notice-pill:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 한글 주석: 공지사항 코드 스타일 개선 */
.notice-pill .code {
    font-weight: 700;
    color: #1e3a8a;
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.1);
    font-size: 0.95rem;
    min-width: 80px;
    text-align: center;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 한글 주석: 공지사항 경로 스타일 개선 */
.notice-pill .route {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    text-align: center;
    line-height: 1.2;
}

/* 한글 주석: 공지사항 시간 스타일 개선 */
.notice-pill .time {
    color: #6b7280;
    font-size: 0.9rem;
    min-width: 70px;
    text-align: center;
    font-weight: 500;
}

/* 한글 주석: 공지사항 상태 스타일 개선 */
.notice-pill .status {
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    min-width: 60px;
    text-align: center;
    font-size: 0.9rem;
}

#digitalClock:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#digitalClock:active {
    animation: clockPulse 0.3s ease;
}

@keyframes clockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* 반응형 디지털 시계 */
@media (max-width: 768px) {
    #digitalClock {
        width: 100px;
        height: 36px;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    #digitalClock {
        width: 80px;
        height: 32px;
        font-size: 0.625rem;
        letter-spacing: 0.2px;
        line-height: 1.0;
    }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /* 배경 대비 개선 */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 편집 모드 스타일 */
.edit-mode .editable {
    border: 2px dashed #3b82f6 !important;
    padding: 4px !important;
    border-radius: 4px !important;
    background-color: #f0f9ff !important;
    transition: all 0.2s ease;
}

.edit-mode .editable:focus {
    border-color: #1d4ed8 !important;
    background-color: #dbeafe !important;
    outline: none;
}

.edit-mode .edit-btn,
.edit-mode .delete-btn {
    display: inline-block !important;
}

.edit-mode .program-card {
    border: 2px solid #e5e7eb;
}

.edit-mode .program-card:hover {
    border-color: #3b82f6;
}

/* 편집 버튼 스타일 */
.edit-btn, .delete-btn {
    display: none;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    transform: scale(1.1);
}

.delete-btn:hover {
    transform: scale(1.1);
}

/* 카테고리 카드 스타일 */
.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    /* 텍스트 가독성 개선 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-card.selected {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

/* 선택 가능한 상태 표시 - 미묘한 표시 */
.category-card.selectable {
    border: 1px solid #10b981;
    position: relative;
}

.category-card.selectable::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.6;
}

.category-card.selectable:hover {
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

/* AI 프로그램 카드 스타일 */
.program-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    /* 텍스트 가독성 개선을 위한 색상 설정 */
    color: #1a1a1a;
    /* 더 선명한 배경을 위한 추가 설정 */
    backdrop-filter: blur(10px);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.98);
    /* hover 상태에서도 텍스트 가독성 유지 */
    color: #1a1a1a;
}

/* 클릭 가능한 프로그램 카드 스타일 */
.program-card.clickable {
    cursor: pointer;
    user-select: none;
}

.program-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.98);
    /* hover 상태에서도 텍스트 가독성 유지 */
    color: #1a1a1a;
}

/* 프로그램 카드 내 텍스트 가독성 개선 */
.program-card h3 {
    color: #1a1a1a !important;
    font-weight: 600;
}

.program-card p {
    color: #374151 !important;
}

.program-card .text-gray-500 {
    color: #6b7280 !important;
}

.program-card .text-gray-400 {
    color: #9ca3af !important;
}

.program-card .text-gray-600 {
    color: #4b5563 !important;
}

/* 가장 강력한 CSS 규칙 - 모든 텍스트 요소 강제 적용 */
.program-card:hover h3,
.program-card.clickable:hover h3,
.program-card:hover h3 *,
.program-card.clickable:hover h3 * {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

.program-card:hover p,
.program-card.clickable:hover p,
.program-card:hover p *,
.program-card.clickable:hover p * {
    color: #374151 !important;
}

.program-card:hover span,
.program-card.clickable:hover span,
.program-card:hover span *,
.program-card.clickable:hover span * {
    color: #6b7280 !important;
}

.program-card:hover div,
.program-card.clickable:hover div,
.program-card:hover div *,
.program-card.clickable:hover div * {
    color: #374151 !important;
}

/* hover 상태에서도 텍스트 가독성 유지 - 더 강력한 선택자 사용 */
.program-card:hover h3,
.program-card.clickable:hover h3 {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

.program-card:hover p,
.program-card.clickable:hover p {
    color: #374151 !important;
}

.program-card:hover .text-gray-500,
.program-card.clickable:hover .text-gray-500 {
    color: #6b7280 !important;
}

.program-card:hover .text-gray-400,
.program-card.clickable:hover .text-gray-400 {
    color: #9ca3af !important;
}

.program-card:hover .text-gray-600,
.program-card.clickable:hover .text-gray-600 {
    color: #4b5563 !important;
}

/* 모든 텍스트 요소에 대한 강제 적용 */
.program-card:hover *,
.program-card.clickable:hover * {
    color: inherit !important;
}

.program-card:hover h3,
.program-card.clickable:hover h3 {
    color: #1a1a1a !important;
}

.program-card:hover p,
.program-card.clickable:hover p {
    color: #374151 !important;
}

.program-card:hover span,
.program-card.clickable:hover span {
    color: #6b7280 !important;
}

/* Tailwind CSS 클래스 직접 타겟팅 */
.program-card:hover .text-white,
.program-card.clickable:hover .text-white {
    color: #1a1a1a !important;
}

.program-card:hover .text-gray-100,
.program-card.clickable:hover .text-gray-100 {
    color: #374151 !important;
}

.program-card:hover .text-gray-200,
.program-card.clickable:hover .text-gray-200 {
    color: #4b5563 !important;
}

.program-card:hover .text-gray-300,
.program-card.clickable:hover .text-gray-300 {
    color: #6b7280 !important;
}

.program-card:hover .text-gray-400,
.program-card.clickable:hover .text-gray-400 {
    color: #9ca3af !important;
}

.program-card:hover .text-gray-500,
.program-card.clickable:hover .text-gray-500 {
    color: #6b7280 !important;
}

.program-card:hover .text-gray-600,
.program-card.clickable:hover .text-gray-600 {
    color: #4b5563 !important;
}

.program-card:hover .text-gray-700,
.program-card.clickable:hover .text-gray-700 {
    color: #374151 !important;
}

.program-card:hover .text-gray-800,
.program-card.clickable:hover .text-gray-800 {
    color: #1f2937 !important;
}

.program-card:hover .text-gray-900,
.program-card.clickable:hover .text-gray-900 {
    color: #111827 !important;
}

/* 태그 색상 개선 */
.program-card .bg-blue-100 {
    background-color: #dbeafe !important;
}

.program-card .text-blue-800 {
    color: #1e40af !important;
}

.program-card .bg-gray-100 {
    background-color: #f3f4f6 !important;
}

.program-card .text-gray-600 {
    color: #4b5563 !important;
}

.program-card.clickable:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
}

/* 프로그램 카드 선택 가능한 상태 - 미묘한 표시 */
.program-card.selectable {
    border: 1px solid #10b981;
    position: relative;
}

.program-card.selectable::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.6;
}

.program-card.selectable:hover {
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

/* 프로그램 아이콘 스타일 */
.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

/* 한국 프로그램 아이콘 특별 스타일 */
.program-icon:has(.korean-emoji) {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* 이모지 크기 조정 스타일 */
.emoji-large {
    font-size: 2.5rem !important;
}

.emoji-medium {
    font-size: 2rem !important;
}

.emoji-small {
    font-size: 1.5rem !important;
}

/* 한국 프로그램 이모지 특별 스타일 */
.korean-emoji {
    font-size: 2.5rem !important;
    font-weight: bold;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
}

/* 한국 플래그 이모지 스타일 - 투명 배경 */
.korean-flag-emoji {
    font-size: 1.2rem !important;
    font-weight: bold;
    color: #2563eb;
    position: relative;
    display: inline-block;
    margin-left: 15px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    animation: koreanFlagFloat 3s ease-in-out infinite;
    z-index: 10;
    letter-spacing: 0.5px;
}

@keyframes koreanFlagFloat {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}












/* 일반 이모지 호버 효과 */
.program-icon:hover .emoji-large,
.program-icon:hover .emoji-medium,
.program-icon:hover .emoji-small {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* 한국 이모지 호버 효과 */
.program-icon:hover .korean-emoji {
    transform: scale(1.1);
    transition: transform 0.3s ease;
    font-size: 3rem !important;
}

/* 한국 플래그 이모지 호버 효과 */
.program-icon:hover .korean-flag-emoji {
    transform: scale(1.3);
    opacity: 1;
    transition: all 0.3s ease;
}

/* 별점 평가 스타일 */
.rating-stars {
    display: flex;
    gap: 2px;
    margin: 0.5rem 0;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star.filled {
    color: #f39c12;
}

.star.half {
    color: #f39c12;
    position: relative;
}

.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    color: #ddd;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* 평가 항목 스타일 */
.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.rating-label {
    font-weight: 600;
    color: #2c3e50;
}

.rating-value {
    font-weight: bold;
    color: #27ae60;
}

/* 검색 결과 스타일 */
.search-result {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #3498db;
    /* 텍스트 가독성 개선 */
    color: #1a1a1a;
    /* 더 선명한 배경을 위한 추가 설정 */
    backdrop-filter: blur(10px);
}

.search-result:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(52, 152, 219, 0.1);
    /* hover 상태에서도 텍스트 가독성 유지 */
    color: #1a1a1a;
}

/* 검색 결과 내 텍스트 가독성 개선 */
.search-result h3 {
    color: #1a1a1a !important;
    font-weight: 600;
}

.search-result p {
    color: #374151 !important;
}

.search-result .text-gray-500 {
    color: #6b7280 !important;
}

.search-result .text-gray-400 {
    color: #9ca3af !important;
}

.search-result .text-gray-600 {
    color: #4b5563 !important;
}

/* 검색 결과 hover 상태에서도 텍스트 가독성 유지 */
.search-result:hover h3 {
    color: #1a1a1a !important;
}

.search-result:hover p {
    color: #374151 !important;
}

.search-result:hover .text-gray-500 {
    color: #6b7280 !important;
}

.search-result:hover .text-gray-400 {
    color: #9ca3af !important;
}

.search-result:hover .text-gray-600 {
    color: #4b5563 !important;
}

/* 검색 결과 Tailwind CSS 클래스 직접 타겟팅 */
.search-result:hover .text-white {
    color: #1a1a1a !important;
}

.search-result:hover .text-gray-100 {
    color: #374151 !important;
}

.search-result:hover .text-gray-200 {
    color: #4b5563 !important;
}

.search-result:hover .text-gray-300 {
    color: #6b7280 !important;
}

.search-result:hover .text-gray-400 {
    color: #9ca3af !important;
}

.search-result:hover .text-gray-500 {
    color: #6b7280 !important;
}

.search-result:hover .text-gray-600 {
    color: #4b5563 !important;
}

.search-result:hover .text-gray-700 {
    color: #374151 !important;
}

.search-result:hover .text-gray-800 {
    color: #1f2937 !important;
}

.search-result:hover .text-gray-900 {
    color: #111827 !important;
}

/* 어두운 배경화면 사용자를 위한 검색 기능 대비 개선 */
/* 검색 섹션 배경 및 텍스트 개선 */
#searchSection {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 검색 입력 필드 개선 */
#searchInput {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #e5e7eb !important;
    color: #1f2937 !important;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#searchInput::placeholder {
    color: #6b7280 !important;
    font-weight: 400;
}

#searchInput:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #111827 !important;
}

/* 검색 결과 카드 개선 - 어두운 배경에서도 잘 보이도록 */
.search-result {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #111827 !important;
}

.search-result:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(5px) translateY(-2px);
}

/* 검색 결과 내 모든 텍스트 색상 강화 */
.search-result h3,
.search-result:hover h3 {
    color: #111827 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.search-result p,
.search-result:hover p {
    color: #374151 !important;
    font-weight: 500;
}

.search-result .text-gray-500,
.search-result:hover .text-gray-500 {
    color: #6b7280 !important;
    font-weight: 500;
}

.search-result .text-gray-400,
.search-result:hover .text-gray-400 {
    color: #9ca3af !important;
    font-weight: 500;
}

.search-result .text-gray-600,
.search-result:hover .text-gray-600 {
    color: #4b5563 !important;
    font-weight: 500;
}

/* 검색 결과 내 모든 Tailwind 텍스트 클래스 강화 */
.search-result .text-white,
.search-result:hover .text-white {
    color: #111827 !important;
    font-weight: 600;
}

.search-result .text-gray-100,
.search-result:hover .text-gray-100 {
    color: #374151 !important;
    font-weight: 600;
}

.search-result .text-gray-200,
.search-result:hover .text-gray-200 {
    color: #4b5563 !important;
    font-weight: 600;
}

.search-result .text-gray-300,
.search-result:hover .text-gray-300 {
    color: #6b7280 !important;
    font-weight: 600;
}

.search-result .text-gray-700,
.search-result:hover .text-gray-700 {
    color: #374151 !important;
    font-weight: 600;
}

.search-result .text-gray-800,
.search-result:hover .text-gray-800 {
    color: #1f2937 !important;
    font-weight: 600;
}

.search-result .text-gray-900,
.search-result:hover .text-gray-900 {
    color: #111827 !important;
    font-weight: 600;
}

/* 검색 버튼들 개선 */
#searchSubmitBtn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

#searchSubmitBtn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

#closeSearchBtn {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    border: none;
}

#closeSearchBtn:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
}

/* 검색 결과가 없을 때 메시지 스타일 */
#searchResults:empty::after {
    content: "검색 결과가 없습니다.";
    display: block;
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-weight: 500;
    font-style: italic;
}

/* 어두운 테마 감지 및 자동 조정 */
@media (prefers-color-scheme: dark) {
    #searchSection {
        background: rgba(30, 41, 59, 0.95) !important;
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    #searchInput {
        background: rgba(51, 65, 85, 0.9) !important;
        border-color: #475569 !important;
        color: #f1f5f9 !important;
    }
    
    #searchInput::placeholder {
        color: #94a3b8 !important;
    }
    
    #searchInput:focus {
        background: rgba(51, 65, 85, 1) !important;
        color: #f8fafc !important;
    }
    
    .search-result {
        background: rgba(51, 65, 85, 0.98) !important;
        color: #f1f5f9 !important;
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .search-result:hover {
        background: rgba(59, 130, 246, 0.15) !important;
    }
    
    .search-result h3,
    .search-result:hover h3 {
        color: #f8fafc !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    .search-result p,
    .search-result:hover p {
        color: #e2e8f0 !important;
    }
    
    .search-result .text-gray-500,
    .search-result:hover .text-gray-500 {
        color: #cbd5e1 !important;
    }
    
    .search-result .text-gray-400,
    .search-result:hover .text-gray-400 {
        color: #94a3b8 !important;
    }
    
    .search-result .text-gray-600,
    .search-result:hover .text-gray-600 {
        color: #cbd5e1 !important;
    }
}

/* 버튼 스타일 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 모달 스타일 */
.modal-overlay {
    backdrop-filter: blur(5px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 알림 메시지 스타일 */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #27ae60;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: #f39c12;
    color: #e67e22;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #c0392b;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #2980b9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .category-card {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .program-card {
        padding: 1rem;
    }
    
    .program-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* 모바일에서 이모지 크기 조정 */
    .emoji-large {
        font-size: 1.8rem !important;
    }
    
    .emoji-medium {
        font-size: 1.5rem !important;
    }
    
    .emoji-small {
        font-size: 1.2rem !important;
    }
    
    .korean-emoji {
        font-size: 2rem !important;
    }
    
    .korean-flag-emoji {
        font-size: 1rem !important;
        margin-left: 12px;
    }
    
    .rating-stars {
        gap: 1px;
    }
    
    .star {
        font-size: 1rem;
    }
    
    /* 모바일 네비게이션 개선 */
    nav .flex {
        padding: 0 1rem;
    }
    
    nav h1 {
        font-size: 1.125rem;
    }
    
    /* 모바일 버튼 간격 조정 */
    .flex.items-center.space-x-2 {
        gap: 0.25rem;
    }
    
    /* 모바일에서 선택 표시 더 미묘하게 */
    .category-card.selectable::before,
    .program-card.selectable::after {
        width: 3px;
        height: 3px;
        top: 3px;
        right: 3px;
        opacity: 0.4;
    }
}

/* 매우 작은 화면 (320px 이하) */
@media (max-width: 320px) {
    nav .flex {
        padding: 0 0.5rem;
    }
    
    nav h1 {
        font-size: 1rem;
    }
    
    .flex.items-center.space-x-2 {
        gap: 0.125rem;
    }
    
    .flex.items-center.space-x-2 button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* 매우 작은 화면에서 이모지 크기 조정 */
    .emoji-large {
        font-size: 1.5rem !important;
    }
    
    .emoji-medium {
        font-size: 1.3rem !important;
    }
    
    .emoji-small {
        font-size: 1rem !important;
    }
    
    .korean-emoji {
        font-size: 1.8rem !important;
    }
    
    .korean-flag-emoji {
        font-size: 0.9rem !important;
        margin-left: 10px;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .program-card {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
    }
    
    .program-card h3 {
        color: #ffffff !important;
    }
    
    .program-card p {
        color: #d1d5db !important;
    }
    
    .program-card .text-gray-500 {
        color: #9ca3af !important;
    }
    
    .program-card .text-gray-400 {
        color: #6b7280 !important;
    }
    
    .program-card .text-gray-600 {
        color: #d1d5db !important;
    }
    
    /* 다크 모드에서 hover 상태 텍스트 가독성 */
    .program-card:hover h3 {
        color: #ffffff !important;
    }
    
    .program-card:hover p {
        color: #d1d5db !important;
    }
    
    .program-card:hover .text-gray-500 {
        color: #9ca3af !important;
    }
    
    .program-card:hover .text-gray-400 {
        color: #6b7280 !important;
    }
    
    .program-card:hover .text-gray-600 {
        color: #d1d5db !important;
    }
    
    .search-result {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
    }
    
    .search-result h3 {
        color: #ffffff !important;
    }
    
    .search-result p {
        color: #d1d5db !important;
    }
    
    .search-result .text-gray-500 {
        color: #9ca3af !important;
    }
    
    .search-result .text-gray-400 {
        color: #6b7280 !important;
    }
    
    .search-result .text-gray-600 {
        color: #d1d5db !important;
    }
    
    /* 다크 모드에서 검색 결과 hover 상태 텍스트 가독성 */
    .search-result:hover h3 {
        color: #ffffff !important;
    }
    
    .search-result:hover p {
        color: #d1d5db !important;
    }
    
    .search-result:hover .text-gray-500 {
        color: #9ca3af !important;
    }
    
    .search-result:hover .text-gray-400 {
        color: #6b7280 !important;
    }
    
    .search-result:hover .text-gray-600 {
        color: #d1d5db !important;
    }
}

/* 펄스 애니메이션 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 선택 안내 메시지 */
.selection-guide {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
    color: #1e40af;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 포커스 하이라이트 스타일 */
.focus-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    pointer-events: none;
    z-index: 10;
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 스타일 */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* ChatGPT 스타일 편집 모드 CSS */
.chatgpt-edit-mode .editable-element {
    border: 2px dashed #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.05) !important;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.chatgpt-edit-mode .editable-element:hover {
    border-color: #1d4ed8 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    transform: scale(1.02) !important;
}

/* 편집창 스타일 */
#chatgpt-edit-window {
    backdrop-filter: blur(4px);
}

#chatgpt-edit-window .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 편집 가능한 요소 목록 스타일 */
#editable-elements-list > div:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 편집 폼 스타일 */
#chatgpt-edit-form textarea,
#chatgpt-edit-form input {
    transition: all 0.2s ease;
}

#chatgpt-edit-form textarea:focus,
#chatgpt-edit-form input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 알림 스타일 */
#chatgpt-edit-notification,
#edit-success-notification {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 

/* 방문자 카운터 표시 스타일 */
.visitor-count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    min-height: 40px;
}

.visitor-count-display .total-visitors {
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
    white-space: nowrap;
}

.visitor-count-display .today-visitors {
    font-weight: 500;
    color: #f0f9ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
    white-space: nowrap;
}

.visitor-count-display .visitor-number {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    white-space: nowrap;
    margin-top: 1px;
}

/* 방문자 카운터 호버 효과 */
#digitalClock:hover .visitor-count-display .total-visitors {
    color: #f0f9ff;
    transition: color 0.2s ease;
}

#digitalClock:hover .visitor-count-display .today-visitors {
    color: #e0f2fe;
    transition: color 0.2s ease;
}

#digitalClock:hover .visitor-count-display .visitor-number {
    color: #f0f9ff;
    transition: color 0.2s ease;
}

/* 방문자 통계 모달 스타일 */
.visitor-stats-modal .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.visitor-stats-modal .stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.visitor-stats-modal .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #94a3b8;
}

.visitor-stats-modal .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.visitor-stats-modal .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* 반응형 방문자 카운터 */
@media (max-width: 640px) {
    .visitor-count-display {
        font-size: 0.65rem;
        min-height: 36px;
    }
    
    .visitor-count-display .total-visitors,
    .visitor-count-display .today-visitors {
        font-size: 0.6rem;
    }
    
    .visitor-count-display .visitor-number {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .visitor-count-display {
        font-size: 0.6rem;
        min-height: 32px;
    }
    
    .visitor-count-display .total-visitors,
    .visitor-count-display .today-visitors {
        font-size: 0.55rem;
    }
    
    .visitor-count-display .visitor-number {
        font-size: 0.75rem;
    }
} 

/* 관리자 전용 테스트 버튼 스타일 */
#adminTestButtons {
    /* 한글 주석: 기본적으로 숨겨진 상태 */
    display: none !important;
}

#adminTestButtons button {
    /* 한글 주석: 버튼 호버 효과 개선 */
    transition: all 0.3s ease;
    transform: scale(1);
}

#adminTestButtons button:hover {
    /* 한글 주석: 호버 시 약간 확대 및 그림자 효과 */
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 한글 주석: 관리자 로그인 시에만 표시 */
#adminTestButtons.admin-visible {
    display: block !important;
}

/* 한글 주석: 반응형 디자인 - 작은 화면에서 버튼 크기 조정 */
@media (max-width: 640px) {
    #adminTestButtons {
        bottom: 2rem;
        left: 2rem;
    }
    
    #adminTestButtons button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
} 