/**
 * EduLive (실시간 교육방송) 전용 CSS
 * 레거시 ASP 디자인을 참고하여 현대적으로 재구성
 */

/* ========================================
   페이지 기본 설정
======================================== */
.edulive-page {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ========================================
   페이지 헤더 (Hero Section)
======================================== */
.page-header.edulive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header.edulive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern-overlay.png') repeat;
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.page-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.page-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ========================================
   탭 네비게이션
======================================== */
.tabs-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.edulive-tabs {
    justify-content: center;
    border-bottom: none;
    padding: 1rem 0;
}

.edulive-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.edulive-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.edulive-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tab-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .edulive-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .edulive-tabs::-webkit-scrollbar {
        display: none;
    }

    .edulive-tabs .nav-item {
        flex: 0 0 auto;
    }

    .tab-text {
        display: none;
    }

    .edulive-tabs .nav-link {
        padding: 0.75rem;
        min-width: 50px;
        text-align: center;
    }
}

/* ========================================
   특징 카드 그리드
======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   강사 카드
======================================== */
.teacher-grid {
    margin: 2rem 0;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.teacher-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-card:hover .teacher-overlay {
    opacity: 1;
}

.teacher-info {
    padding: 1.5rem;
    text-align: center;
}

.teacher-name {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.teacher-subject .badge {
    font-size: 0.9rem;
}

/* ========================================
   강의 카드
======================================== */
.lecture-grid {
    margin: 2rem 0;
}

.lecture-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.lecture-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lecture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lecture-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.lecture-badges .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e53e3e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.lecture-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lecture-subject {
    margin-bottom: 0.75rem;
}

.lecture-title {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    font-size: 1.1rem;
}

.lecture-teacher {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.lecture-price {
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.price-free {
    color: #38a169;
    font-weight: 700;
    font-size: 1.2rem;
}

.price-original {
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.price-current {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.2rem;
}

.lecture-actions {
    display: flex;
    gap: 0.5rem;
}

.lecture-actions .btn {
    flex: 1;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* ========================================
   대상 섹션
======================================== */
.target-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.target-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.target-card h5 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.target-card ul li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ========================================
   진행 단계 (Process Timeline)
======================================== */
.process-timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #e2e8f0;
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
    z-index: 2;
}

.timeline-content h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #718096;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ========================================
   가격표
======================================== */
.pricing-section {
    margin: 2rem 0;
}

.pricing-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-table .table {
    margin-bottom: 0;
}

.pricing-table .table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.5rem 1rem;
}

.pricing-table .table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.price-highlight {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-cards {
    display: grid;
    gap: 1rem;
}

.pricing-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pricing-card h5 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
}

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

.price-label {
    color: #718096;
    font-weight: 500;
}

.price-value {
    color: #2d3748;
    font-weight: 600;
}

/* ========================================
   진단평가 섹션
======================================== */
.evaluation-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.evaluation-info h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.eval-features {
    margin-top: 1.5rem;
}

.eval-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.eval-feature i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.btn-edulive {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-edulive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

/* ========================================
   섹션 공통
======================================== */
.section-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ========================================
   유틸리티 클래스
======================================== */
.text-primary {
    color: #667eea !important;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* ========================================
   반응형 디자인
======================================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .teacher-image,
    .lecture-image {
        height: 200px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header.edulive {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .feature-card,
    .teacher-card,
    .lecture-card {
        margin-bottom: 1.5rem;
    }

    .lecture-actions {
        flex-direction: column;
    }
}