/**
 * Student Today Lessons - Styles
 * Shows today's lessons with online meeting links
 * 
 * CSS prefix: stl- (Student Today Lessons)
 * 
 * @author selcukmart <admin@hostingdevi.com>
 * @version 1.0.0
 * @date 18.01.2026
 */

/* Container */
.stl-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.stl-header {
    background: linear-gradient(135deg, #36D1DC 0%, #5B86E5 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stl-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.stl-header-title i {
    font-size: 18px;
}

.stl-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stl-current-time {
    font-size: 14px;
    opacity: 0.9;
}

/* Badges */
.stl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.stl-badge-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stl-badge-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.stl-badge-default {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.stl-badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Lessons List */
.stl-lessons-list {
    padding: 10px;
}

/* Lesson Card */
.stl-lesson-card {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    border-left: 4px solid #6c757d;
    transition: all 0.3s ease;
}

.stl-lesson-card:last-child {
    margin-bottom: 0;
}

.stl-lesson-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stl-lesson-card.stl-in-progress {
    border-left-color: #28a745;
    background: #f0fff4;
}

.stl-lesson-card.stl-upcoming {
    border-left-color: #5B86E5;
}

/* Status Indicator */
.stl-lesson-status-indicator {
    display: none;
}

.stl-in-progress .stl-lesson-status-indicator {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: stl-pulse 2s infinite;
}

/* Lesson Main Content */
.stl-lesson-main {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 15px;
    flex-wrap: wrap;
}

/* Time Section */
.stl-lesson-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stl-time-start {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stl-time-separator {
    font-size: 12px;
    color: #adb5bd;
}

.stl-time-end {
    font-size: 14px;
    color: #6c757d;
}

/* Info Section */
.stl-lesson-info {
    flex: 1;
    min-width: 200px;
}

.stl-lesson-name {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.stl-lesson-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stl-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.stl-detail i {
    font-size: 12px;
    color: #adb5bd;
}

/* Badges Section */
.stl-lesson-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Online Section */
.stl-online-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #e7f5ff;
    border-top: 1px solid rgba(91, 134, 229, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.stl-online-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1971c2;
    font-size: 13px;
    font-weight: 500;
}

.stl-online-label i {
    font-size: 14px;
}

.stl-online-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons */
.stl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.stl-btn i {
    font-size: 12px;
}

.stl-btn-join {
    background: #228be6;
    color: white;
}

.stl-btn-join:hover {
    background: #1971c2;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(34, 139, 230, 0.3);
}

.stl-btn-copy {
    background: white;
    color: #495057;
    border: 1px solid #dee2e6;
}

.stl-btn-copy:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
}

.stl-btn-copy.stl-copied {
    background: #d3f9d8;
    color: #2b8a3e;
    border-color: #69db7c;
}

/* No Lessons */
.stl-no-lessons {
    background: #f8f9fa;
}

.stl-no-lessons-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.stl-no-lessons-content i {
    font-size: 20px;
    color: #adb5bd;
}

/* Animations */
@keyframes stl-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .stl-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stl-lesson-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stl-lesson-time {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .stl-lesson-info {
        width: 100%;
    }
    
    .stl-lesson-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stl-online-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stl-online-actions {
        width: 100%;
    }
    
    .stl-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .stl-container {
        margin: 0 -5px 10px -5px;
        border-radius: 0;
    }
    
    .stl-header {
        padding: 10px 12px;
    }
    
    .stl-header-title {
        font-size: 14px;
    }
    
    .stl-lessons-list {
        padding: 8px;
    }
    
    .stl-lesson-card {
        margin-bottom: 8px;
    }
    
    .stl-lesson-main {
        padding: 10px;
    }
    
    .stl-lesson-name {
        font-size: 14px;
    }
    
    .stl-detail {
        font-size: 12px;
    }
    
    .stl-online-section {
        padding: 8px 10px;
    }
    
    .stl-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stl-lesson-card {
        border-width: 2px;
    }
    
    .stl-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .stl-lesson-card,
    .stl-btn,
    .stl-lesson-status-indicator {
        animation: none;
        transition: none;
    }
    
    .stl-btn:hover {
        transform: none;
    }
}
