﻿@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.7;
            color: #333;
            background: #f8f9fa;
            margin: 0;
            padding: 0;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 15px;
        }
        
        /* 브레드크럼 */
        .breadcrumb {
            background: white;
            padding: 12px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            font-size: 14px;
        }
        
        .breadcrumb a {
            color: #667eea;
            text-decoration: none;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        /* 용어 헤더 */
        .term-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px 25px;
            border-radius: 12px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            text-align: center;
        }
        
        .term-title {
            margin: 0 0 10px 0;
            font-size: 2.2rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .term-english {
            font-size: 1.2rem;
            opacity: 0.9;
            font-style: italic;
            margin-bottom: 15px;
        }
        
        .term-meta {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            font-size: 14px;
        }
        
        .category-badge {
            background: rgba(255,255,255,0.2);
            padding: 6px 14px;
            border-radius: 20px;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.3);
        }
        
        .term-stats {
            display: flex;
            gap: 15px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        /* 컨텐츠 영역 */
        .content-section {
            background: white;
            border-radius: 12px;
            padding: 30px 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border: 1px solid #e9ecef;
        }
        
        .section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 20px 0;
            font-size: 1.3rem;
            font-weight: 600;
            color: #2c3e50;
            padding-bottom: 10px;
            border-bottom: 2px solid #f8f9fa;
        }
        
        .section-title i {
            color: #667eea;
            width: 24px;
            text-align: center;
        }
        
        /* 간단 정의 */
        .short-definition {
            font-size: 1.1rem;
            color: #495057;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            margin-bottom: 25px;
        }
        
        /* 상세 설명 (TinyMCE 콘텐츠) */
        .description-content {
            font-size: 16px;
            line-height: 1.8;
        }
        
        .description-content h1,
        .description-content h2,
        .description-content h3,
        .description-content h4,
        .description-content h5,
        .description-content h6 {
            color: #2c3e50;
            margin-top: 1.5em;
            margin-bottom: 0.8em;
        }
        
        .description-content p {
            margin-bottom: 1em;
        }
        
        .description-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            margin: 15px 0;
        }
        
        .description-content blockquote {
            border-left: 4px solid #667eea;
            margin: 20px 0;
            padding: 15px 20px;
            background: #f8f9fa;
            border-radius: 0 8px 8px 0;
            font-style: italic;
        }
        
        .description-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .description-content table th,
        .description-content table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }
        
        .description-content table th {
            background: #667eea;
            color: white;
            font-weight: 600;
        }
        
        /* TinyMCE 미디어 클래스 */
        .align-left-wrap {
            float: left !important;
            margin: 0 20px 15px 0 !important;
            max-width: 45% !important;
        }
        
        .align-right-wrap {
            float: right !important;
            margin: 0 0 15px 20px !important;
            max-width: 45% !important;
        }
        
        .align-center-block {
            display: block !important;
            margin: 20px auto !important;
            text-align: center !important;
            max-width: 100% !important;
        }
        
        .margin-small { margin: 10px !important; }
        .margin-medium { margin: 15px !important; }
        .margin-large { margin: 25px !important; }
        
        .image-border { border: 2px solid #dee2e6 !important; }
        .image-rounded { border-radius: 12px !important; }
        .image-shadow { box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important; }
        
        .size-small { max-width: 250px !important; }
        .size-medium { max-width: 400px !important; }
        .size-large { max-width: 600px !important; }
        
        /* 첨부 파일 섹션 */
        .file-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .file-item {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            border: 2px dashed #dee2e6;
            transition: all 0.3s ease;
        }
        
        .file-item:hover {
            border-color: #667eea;
            background: #f0f2ff;
        }
        
        .file-item img {
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .file-item img:hover {
            transform: scale(1.05);
        }
        
        .file-name {
            margin-top: 10px;
            font-size: 14px;
            color: #495057;
            font-weight: 500;
        }
        
        /* 미디어 섹션 */
        .media-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-top: 20px;
        }
        
        .media-item {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #e9ecef;
        }
        
        .media-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .media-item audio,
        .media-item video {
            width: 100%;
            border-radius: 8px;
            outline: none;
        }
        
        .media-item iframe {
            width: 100%;
            height: 250px;
            border-radius: 8px;
            border: none;
        }
        
        /* 관련 용어 */
        .related-terms {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }
        
        .related-term-tag {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .related-term-tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
		
		
/* 네비게이션 */
.term-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: static !important; /* total_common.css 오버라이드 */
}

.term-nav-btn {
    background: white;
    color: #495057;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    position: relative;
}

.term-nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.term-nav-btn.term-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.term-nav-btn.term-list {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.term-nav-btn.term-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.term-nav-btn small {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

/* 관리자 액션 */
.term-admin-actions {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.term-btn-admin {
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.term-btn-admin:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.term-btn-admin.term-btn-edit {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.term-btn-admin.term-btn-edit:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.term-btn-admin.term-btn-delete {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.term-btn-admin.term-btn-delete:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* 태블릿 최적화 */
@media (min-width: 768px) {
    .term-navigation {
        gap: 20px;
    }
    
    .term-nav-btn {
        padding: 18px 25px;
    }
    
    .term-admin-actions {
        padding: 25px;
    }
    
    .term-btn-admin {
        padding: 14px 24px;
        margin: 0 15px;
    }
}

/* PC 최적화 */
@media (min-width: 1024px) {
    .term-navigation {
        gap: 25px;
        margin: 40px 0;
    }
    
    .term-nav-btn {
        padding: 20px 30px;
        font-size: 15px;
    }
    
    .term-nav-btn small {
        font-size: 12px;
    }
    
    .term-admin-actions {
        padding: 30px;
        margin: 40px 0;
    }
    
    .term-btn-admin {
        padding: 16px 28px;
        font-size: 15px;
    }
}

/* 모바일 최적화 */
@media (max-width: 767px) {
    .term-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 25px 0;
    }
    
    .term-nav-btn {
        padding: 15px;
        min-height: 50px;
        font-size: 14px;
    }
    
    .term-nav-btn small {
        display: none; /* 모바일에서는 용어명 숨김 */
    }
    
    .term-admin-actions {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .term-btn-admin {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 15px;
        text-align: center;
        justify-content: center;
    }
}

/* 프린트 시 숨김 */
@media print {
    .term-navigation,
    .term-admin-actions {
        display: none;
    }
}	
		
		

		
		
        /* 이미지 모달 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            animation: fadeIn 0.3s ease;
        }
        
        .modal-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 800px;
            max-height: 90%;
            object-fit: contain;
            border-radius: 8px;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
        }
        
        .close:hover {
            opacity: 0.7;
        }
        
        #caption {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 150px;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* 태블릿 최적화 */
        @media (min-width: 768px) {
            .container {
                padding: 20px;
            }
            
            .term-header {
                padding: 40px 35px;
            }
            
            .term-title {
                font-size: 2.8rem;
            }
            
            .content-section {
                padding: 40px 35px;
            }
            
            .file-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 20px;
            }
            
            .media-grid {
                grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            }
            
            .media-item iframe {
                height: 315px;
            }
            
        }
        
        /* PC 최적화 */
        @media (min-width: 1024px) {
            .container {
                padding: 30px;
            }
            
            .term-header {
                padding: 50px 45px;
            }
            
            .term-title {
                font-size: 3.2rem;
            }
            
            .content-section {
                padding: 45px 40px;
            }
            
            .description-content {
                font-size: 17px;
            }
            
            .align-left-wrap,
            .align-right-wrap {
                max-width: 400px !important;
            }
            
            .size-small { max-width: 300px !important; }
            .size-medium { max-width: 500px !important; }
            .size-large { max-width: 750px !important; }
            
            .media-item iframe {
                height: 400px;
            }
        }
        
        /* 프린트 최적화 */
        @media print {
            .navigation,
            .breadcrumb {
                display: none;
            }
            
            .term-header {
                background: #667eea !important;
                -webkit-print-color-adjust: exact;
                color-adjust: exact;
            }
            
            .content-section {
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }








