/* 강사진소개 페이지 스타일 */
.teacher-info-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #fff;
}

/* 상단 타이틀 */
.teacher-title {
    text-align: center;
    margin-bottom: 3rem;
}

.teacher-title h1 {
    font-size: 42px;
    font-weight: 400;
    color: #111;
    margin: 0;
}

/* 강사 선택 버튼 그룹 */
.teacher-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
    padding: 10px;
}

.teacher-btn {
    border: 1px solid #e1e1e1;
    border-radius: 50px;
    padding: 10px 20px;
    background-color: #fff;
    color: #444;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 45px;
    height: 45px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 특별히 긴 텍스트 처리 */
.teacher-btn[data-teacher="입시컨설턴트"] {
    font-size: 14px;
    padding: 1rem 0.3rem;
}

.teacher-btn:hover {
    background-color: #f0f7f6;
    color: #0a524c;
    font-weight: 500;
    border-color: #0a524c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 82, 76, 0.15);
}

.teacher-btn.active {
    background-color: #fff;
    color: #0a524c;
    font-weight: 600;
    border-color: #0a524c;
    border-width: 2px;
}

.teacher-btn.active:hover {
    background-color: #f0f7f6;
    color: #0a524c;
    border-color: #084540;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(8, 69, 64, 0.15);
}

/* 강사 프로필 이미지 영역 */
.teacher-profile {
    text-align: center;
    margin: 2rem auto;
    max-width: 1100px;
}

.teacher-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.teacher-image:not(:last-child) {
    margin-bottom: 1rem;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .teacher-info-page {
        padding: 1.5rem 1rem;
    }

    .teacher-title h1 {
        font-size: 36px;
    }

    .teacher-buttons {
        max-width: 800px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 8px;
    }

    .teacher-btn {
        font-size: 12px;
        padding: 10px 3px;
        height: 42px;
        min-height: 42px;
        margin: 4px;
        border-radius: 50px;
    }

    .teacher-btn[data-teacher="입시컨설턴트"] {
        font-size: 11px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .teacher-info-page {
        padding: 1rem;
    }

    .teacher-title {
        margin-bottom: 2rem;
    }

    .teacher-title h1 {
        font-size: 28px;
    }

    .teacher-buttons {
        max-width: 100%;
        margin-bottom: 2rem;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 5px;
    }

    .teacher-btn {
        font-size: 10px;
        padding: 6px 1px;
        height: 36px;
        min-height: 36px;
        width: calc(100% - 6px);
        margin: 3px;
        border: 1px solid #e1e1e1;
        border-radius: 50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
        word-break: keep-all;
    }

    /* 모바일에서 긴 텍스트 처리 */
    .teacher-btn[data-teacher="입시컨설턴트"] {
        font-size: 9px;
        padding: 6px 1px;
    }

    .teacher-profile {
        max-width: 100%;
        margin: 1.5rem auto;
    }

    .teacher-image:not(:last-child) {
        margin-bottom: 0.8rem;
    }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .teacher-info-page {
        padding: 0.75rem 0.5rem;
    }

    .teacher-title h1 {
        font-size: 24px;
    }

    .teacher-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 4px;
    }

    .teacher-btn {
        font-size: 9px;
        padding: 5px 1px;
        height: 33px;
        min-height: 33px;
        line-height: 1.1;
        margin: 2px;
        border: 1px solid #e1e1e1;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .teacher-btn[data-teacher="입시컨설턴트"] {
        font-size: 8px;
    }

    .teacher-profile {
        margin: 1rem auto;
    }

    .teacher-image:not(:last-child) {
        margin-bottom: 0.6rem;
    }
}

/* 반응형 - 아주 작은 모바일 (375px 이하) */
@media (max-width: 375px) {
    .teacher-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 3px;
    }

    .teacher-btn {
        font-size: 8px;
        padding: 4px 0;
        height: 30px;
        min-height: 30px;
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        margin: 2px;
        border: 1px solid #e1e1e1;
        border-radius: 50px;
        line-height: 1;
        letter-spacing: -0.3px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .teacher-btn[data-teacher="입시컨설턴트"] {
        font-size: 7px;
    }
}

/* Admin 모드 스타일 */
.teacher-profile {
    position: relative;
}

.editor-toolbar {
    position: sticky;
    top: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 5px;
}

.save-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.save-btn:hover {
    background: #45a049;
}

.teacher-content-editable {
    min-height: 400px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    outline: none;
}

.teacher-content-editable:focus {
    border-color: #4CAF50;
    background: #fafafa;
}

.teacher-content-editable img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#teacher-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.edit-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
}

.save-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.save-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.save-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

input[type="file"] {
    display: none;
} 