/**
 * KAICE 교육 프론트엔드 스타일
 */

/* 교육 목록 스타일 */
.kaice-education-list {
    display: grid;
    gap: 30px;
    margin: 20px 0;
}

.kaice-education-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.kaice-education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.education-thumbnail {
    overflow: hidden;
}

.education-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.kaice-education-item:hover .education-thumbnail img {
    transform: scale(1.05);
}

.education-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.education-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.education-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.education-content h3 a:hover {
    color: #408090;
}

.education-meta {
    margin-bottom: 15px;
}

.education-meta p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.meta-label {
    font-weight: bold;
    color: #408090;
    margin-right: 8px;
}

.education-excerpt {
    flex-grow: 1;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.education-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* 신청 폼 스타일 */
.kaice-education-form {
    background: #f9f9f9;
    padding: 30px;
    border: 2px solid #408090;
    border-radius: 8px;
    margin: 30px 0;
}

.kaice-education-form h3 {
    color: #408090;
    margin: 0 0 25px 0;
    text-align: center;
    font-size: 1.5em;
}

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

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.required {
    color: #d63638;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    line-height: 1;
}

.btn-secondary {
    background-color: transparent;
    color: #408090;
    border: 2px solid #408090;
}

.btn-secondary:hover {
    background-color: #408090;
    color: white;
}

/* 알림 메시지 */
.notice {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.notice-success {
    background-color: #f0f9ff;
    border: 1px solid #38bdf8;
    color: #0369a1;
}

.notice-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notice-warning {
    background-color: #fefce8;
    border: 1px solid #fde047;
    color: #a16207;
}

/* 로딩 상태 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #408090;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 인증 배지 스타일 */
.instructor-verified-badge {
    background: #e8f4f8 !important;
    color: #408090 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    margin-left: 6px !important;
    font-weight: bold !important;
    display: inline-block !important;
    border: 1px solid #b3d7e0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.instructor-verified-badge:hover {
    background: #d0ebf0 !important;
    color: #408090 !important;
    text-decoration: none !important;
}

/* 연결된 계정 정보 스타일 (프론트엔드) */
.linked-account-info {
    background: #e8f4f8;
    border-left: 3px solid #408090;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 12px;
}

.linked-account-info strong {
    color: #0073aa;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.linked-account-info .account-details {
    color: #666;
    line-height: 1.4;
}

.linked-account-info .account-details div {
    margin-bottom: 1px;
}

/* 택소노미 스타일 */
.education-taxonomy {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.taxonomy-tag,
.program-field-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.taxonomy-tag a,
.program-field-tag a {
    color: inherit;
    text-decoration: none;
}

.taxonomy-tag.category-tag,
.program-field-tag.category-tag {
    background: #e8f4f8;
    color: #408090;
    border-color: #d1e7ed;
}

.taxonomy-tag.tag-tag,
.program-field-tag.tag-tag {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.taxonomy-tag.no-tag,
.program-field-tag.no-tag {
    background: #f8f9fa;
    color: #6c757d;
    font-style: italic;
    border-color: #dee2e6;
}

.taxonomy-tag.category-tag:hover,
.program-field-tag.category-tag:hover {
    background: #d1e7ed;
    color: #356a78;
    transform: translateY(-1px);
}

.taxonomy-tag.tag-tag:hover,
.program-field-tag.tag-tag:hover {
    background: #e9ecef;
    color: #343a40;
    transform: translateY(-1px);
}

/* 기본 태그 스타일 (택소노미가 없는 경우) */
.program-field-tag:not(.category-tag):not(.tag-tag):not(.no-tag) {
    background: #e8f4f8;
    color: #408090;
    border-color: #d1e7ed;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .kaice-education-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .education-thumbnail img {
        height: 200px;
    }
    
    .education-content {
        padding: 15px;
    }
    
    .education-actions {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .kaice-education-form {
        padding: 20px;
        margin: 20px 0;
    }
    
    .instructor-verified-badge {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 4px !important;
        width: fit-content !important;
    }
}

@media (max-width: 480px) {
    .kaice-education-list {
        gap: 20px;
    }
    
    .kaice-education-form {
        padding: 15px;
    }
    
    .education-content h3 {
        font-size: 1.2em;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 여러 강사 표시 스타일 (사용하지 않음 - 대신 '외 N명' 표시) */
.instructor-thumbnail.mini {
    width: 28px;
    height: 28px;
    display: none; /* 더 이상 사용하지 않음 */
}

.instructor-thumbnails {
    display: none; /* 더 이상 사용하지 않음 */
}

.multiple-instructors {
    display: none; /* 더 이상 사용하지 않음 */
}

.instructor-names {
    display: none; /* 더 이상 사용하지 않음 */
}

.instructor-more {
    display: none; /* 더 이상 사용하지 않음 */
}
