/**
 * KAC 講師選択システム スタイル
 */

/* 講師プロフィールページ */
.kac-instructor-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.kac-instructor-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.kac-instructor-photo {
    flex-shrink: 0;
}

.kac-instructor-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kac-instructor-info {
    flex: 1;
}

.kac-instructor-info h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #2A2E39;
}

.kac-instructor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.kac-specialty-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #E8F5E9;
    color: #2A2E39;
    border-radius: 20px;
    font-size: 13px;
}

.kac-instructor-stats {
    display: flex;
    gap: 30px;
}

.kac-stat {
    text-align: center;
}

.kac-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2A2E39;
}

.kac-stat-value .kac-star {
    color: #D97706;
}

.kac-stat-label {
    font-size: 12px;
    color: #666;
}

.kac-instructor-section {
    margin-bottom: 30px;
}

.kac-instructor-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2A2E39;
    font-size: 18px;
    color: #2A2E39;
}

.kac-qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kac-qualifications-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.kac-qualifications-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* 講師一覧 */
.kac-instructor-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.kac-instructor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kac-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kac-filter-group label {
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.kac-filter-group select,
.kac-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#kac-search-instructor {
    min-width: 200px;
}

.kac-instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 講師カード */
.kac-instructor-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kac-instructor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.kac-instructor-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.kac-instructor-card-photo {
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.kac-instructor-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kac-instructor-card-content {
    padding: 15px;
}

.kac-instructor-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2A2E39;
}

.kac-instructor-card-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.kac-instructor-card-specialties span {
    padding: 2px 8px;
    background: #E8F5E9;
    color: #2A2E39;
    border-radius: 3px;
    font-size: 11px;
}

.kac-instructor-card-rating {
    margin-bottom: 10px;
    font-size: 14px;
}

.kac-stars {
    color: #D97706;
}

.kac-rating-value {
    font-weight: 600;
    margin-left: 5px;
}

.kac-review-count {
    color: #666;
    font-size: 12px;
}

.kac-instructor-card-bio {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.kac-no-instructors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* レビュー */
.kac-instructor-reviews {
    max-width: 800px;
}

.kac-review-form-container {
    margin-bottom: 30px;
}

.kac-show-review-form {
    margin-bottom: 15px;
}

.kac-review-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.kac-form-group {
    margin-bottom: 15px;
}

.kac-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.kac-form-group input,
.kac-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 星評価入力 */
.kac-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.kac-star-rating input {
    display: none;
}

.kac-star-rating label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    padding: 0 2px;
}

.kac-star-rating input:checked ~ label,
.kac-star-rating label:hover,
.kac-star-rating label:hover ~ label {
    color: #D97706;
}

/* レビューリスト */
.kac-reviews-list {
    margin-top: 20px;
}

.kac-review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.kac-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.kac-reviewer-name {
    font-weight: 600;
}

.kac-verified-badge {
    padding: 2px 6px;
    background: #059669;
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
}

.kac-review-date {
    color: #999;
}

.kac-review-rating {
    color: #D97706;
    margin-bottom: 8px;
}

.kac-review-title {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.kac-review-comment {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

.kac-no-reviews {
    color: #999;
    text-align: center;
    padding: 20px;
}

/* 講師選択（予約用） */
.kac-instructor-selector {
    margin: 20px 0;
}

.kac-selector-description {
    color: #666;
    margin-bottom: 15px;
}

.kac-instructor-selector-list {
    display: grid;
    gap: 10px;
}

.kac-instructor-option {
    display: block;
    cursor: pointer;
}

.kac-instructor-option input {
    display: none;
}

.kac-instructor-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.kac-instructor-option input:checked + .kac-instructor-option-content {
    border-color: #2A2E39;
    background: #E8F5E9;
}

.kac-instructor-option-content img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.kac-instructor-option-info {
    flex: 1;
}

.kac-instructor-option-info strong {
    display: block;
    margin-bottom: 4px;
}

.kac-mini-rating {
    color: #D97706;
    font-size: 13px;
}

.kac-instructor-option-info small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* スケジュール表示 */
.kac-instructor-schedule-display {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kac-schedule-list {
    display: grid;
    gap: 10px;
}

.kac-schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.kac-schedule-item.kac-schedule-full {
    opacity: 0.6;
}

.kac-schedule-date {
    text-align: center;
    min-width: 50px;
}

.kac-schedule-date .kac-date {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.kac-schedule-date .kac-day {
    display: block;
    font-size: 11px;
    color: #666;
}

.kac-schedule-time {
    font-size: 15px;
    font-weight: 600;
    min-width: 50px;
}

.kac-schedule-info {
    flex: 1;
}

.kac-schedule-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.kac-availability {
    font-size: 12px;
    color: #059669;
}

.kac-schedule-full .kac-availability {
    color: #DC2626;
}

/* コース詳細の講師表示 */
.kac-course-instructor {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kac-course-instructor h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.kac-course-instructor-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.kac-course-instructor-link img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.kac-course-instructor-info strong {
    display: block;
    font-size: 15px;
    color: #2A2E39;
}

/* 管理画面 */
.kac-rating-stars {
    color: #D97706;
}

.kac-no-rating {
    color: #999;
}

/* バッジ */
.kac-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.kac-badge-success {
    background: #D1FAE5;
    color: #059669;
}

.kac-badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.kac-badge-error {
    background: #FEE2E2;
    color: #DC2626;
}

.kac-badge-info {
    background: #d1ecf1;
    color: #2A2E39;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .kac-instructor-header {
        flex-direction: column;
        text-align: center;
    }

    .kac-instructor-stats {
        justify-content: center;
    }

    .kac-instructor-filters {
        flex-direction: column;
    }

    .kac-instructor-grid {
        grid-template-columns: 1fr;
    }

    .kac-schedule-item {
        flex-wrap: wrap;
    }
}
