/* =====================================================
   MY CLASSES (STUDENT DASHBOARD) STYLES
   ===================================================== */

/* Classes Hero Section */
.classes-hero {
    padding-top: 130px; padding-bottom: 50px;
    background: linear-gradient(135deg, rgba(7,9,42,0.85) 0%, rgba(13,16,64,0.95) 100%), url('../images/pc.png') center/cover no-repeat;
    position: relative; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Dashboard Stats */
.dashboard-stats-wrapper { background: var(--bg-color); padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dashboard-stats { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.d-stat {
    flex: 1; min-width: 200px;
    background: #ffffff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; padding: 24px;
    display: flex; align-items: center; gap: 20px; transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.d-stat:hover { transform: translateY(-5px); border-color: rgba(245,166,35,0.4); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.d-stat-icon { font-size: 36px; color: #f5a623; }
.d-stat-info h3 { font-size: 28px; color: #111827; font-weight: 800; margin-bottom: 4px; }
.d-stat-info p { font-size: 14px; color: #4b5563; text-transform: uppercase; letter-spacing: 1px; }

/* Active Courses */
.course-dashboard { padding: 100px 0; background: #ffffff; }
.active-classes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.class-card {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px; overflow: hidden; transition: all 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.class-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: rgba(245,166,35,0.4); }
.class-card-img { height: 160px; background-size: cover; background-position: center; position: relative; }
.live-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(220, 53, 69, 0.9); color: #fff;
    padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(220,53,69,0.4);
}
.live-badge i { font-size: 8px; animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.class-card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.class-title { font-size: 20px; color: #111827; font-weight: 700; margin-bottom: 8px; }
.class-meta { font-size: 14px; color: #4b5563; margin-bottom: 20px; }

/* Progress Bar */
.progress-wrapper { margin-bottom: auto; }
.progress-bar-bg { width: 100%; height: 8px; background: rgba(0,0,0,0.05); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #f5a623, #ffc107); border-radius: 4px; transition: width 1s ease-in-out; }
.progress-text { font-size: 13px; color: #4b5563; font-weight: 600; text-align: right; }

/* Recent Recordings */
.recent-materials { padding: 100px 0; background: #f8fafc; border-top: 1px solid rgba(0,0,0,0.05); }
.recordings-list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 40px auto 0; }
.recording-item {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; padding: 16px 24px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.recording-item:hover { background: #ffffff; border-color: rgba(245,166,35,0.4); transform: translateX(5px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.rec-info { flex: 1; margin: 0 20px; }
.rec-icon { font-size: 32px; color: rgba(255,255,255,0.3); transition: color 0.3s; }
.recording-item:hover .rec-icon { font-size: 24px; color: #f5a623; }
.rec-info h4 { font-size: 16px; color: #111827; font-weight: 600; margin-bottom: 4px; }
.rec-info p { font-size: 12px; color: #4b5563; }
.rec-btn { padding: 8px 20px; font-size: 13px; border-radius: 20px; }

@media (max-width: 900px) {
    .active-classes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .active-classes-grid { grid-template-columns: 1fr; }
    .recording-item { flex-direction: column; text-align: center; gap: 16px; }
    .rec-info { margin: 10px 0; }
}

/* Breadcrumbs */
.breadcrumb {
    margin-top: 20px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.breadcrumb a { color: #f5a623; transition: color 0.3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; color: rgba(255,255,255,0.4); }

@media (max-width: 600px) {
    .classes-hero { padding-top: 120px; padding-bottom: 20px; }
    .classes-hero .about-title { font-size: 24px; margin-bottom: 10px; line-height: 1.2; }
    .classes-hero .about-subtitle { font-size: 13px; line-height: 1.5; padding: 0 10px; text-align: justify; }
    
    .dashboard-stats-wrapper { padding: 20px 0; }
    .dashboard-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .d-stat { padding: 12px 10px; gap: 8px; min-width: 0; flex-direction: column; text-align: center; justify-content: center; }
    .d-stat-icon { font-size: 26px; }
    .d-stat-info h3 { font-size: 20px; margin-bottom: 2px; }
    .d-stat-info p { font-size: 10px; letter-spacing: 0; }
    
    .course-dashboard { padding: 50px 0; }
    .course-dashboard .section-title { font-size: 24px; margin-bottom: 12px; }
    .active-classes-grid { grid-template-columns: 1fr; margin-top: 24px; gap: 20px; }
    .class-card-img { height: 140px; }
    .class-card-content { padding: 16px; }
    .class-title { font-size: 16px; margin-bottom: 6px; }
    .class-meta { font-size: 12px; margin-bottom: 16px; }
    
    .recent-materials { padding: 50px 0; }
    .recent-materials .section-title { font-size: 24px; margin-bottom: 12px; }
    .recent-materials .section-desc { font-size: 13px; text-align: justify; padding: 0 10px; }
    .recordings-list { margin-top: 24px; }
    .recording-item { padding: 16px; flex-direction: row; flex-wrap: wrap; text-align: left; gap: 12px; align-items: flex-start; justify-content: flex-start; }
    .rec-icon { font-size: 24px; margin: 0; }
    .rec-info { margin: 0; flex: 1; min-width: calc(100% - 45px); }
    .rec-btn { width: 100%; justify-content: center; margin-top: 4px; }
    .rec-info h4 { font-size: 15px; margin-bottom: 4px; line-height: 1.3; }
    .rec-info p { font-size: 11px; }
}
