/**
 * APEIRON LMS Frontend Styles
 * Matches APEIRON theme colors: #0B2B40 (dark teal), #FFB74D (gold)
 */

/* Global LMS Container */
.aelms-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a202c;
}

/* Headings */
.aelms-container h1,
.aelms-container h2,
.aelms-container h3 {
    color: #0B2B40;
    margin-bottom: 1rem;
}
.aelms-container h1 {
    font-size: 2rem;
    border-left: 5px solid #FFB74D;
    padding-left: 15px;
}
.aelms-container h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #FFB74D;
    display: inline-block;
    padding-bottom: 5px;
}

/* Buttons */
.aelms-btn,
.aelms-container .button,
.aelms-container button:not(.aelms-enroll-btn) {
    background: #0B2B40;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
}
.aelms-btn:hover,
.aelms-container .button:hover {
    background: #1a4a6e;
    transform: translateY(-2px);
}
.aelms-btn-outline {
    background: transparent;
    border: 2px solid #FFB74D;
    color: #0B2B40;
}
.aelms-btn-outline:hover {
    background: #FFB74D;
    color: #0B2B40;
}

/* Cards */
.aelms-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.aelms-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: #FFB74D;
}

/* Course Grid */
.aelms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.aelms-course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.aelms-course-card:hover {
    transform: translateY(-5px);
}
.aelms-course-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.aelms-course-content {
    padding: 20px;
}
.aelms-course-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0B2B40;
    margin-bottom: 10px;
}
.aelms-course-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}
.aelms-course-meta span {
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 5px;
}

/* Lesson & Quiz Styles */
.aelms-lesson-list {
    background: #f9fafb;
    border-radius: 16px;
    padding: 10px;
}
.aelms-lesson-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #FFB74D;
    transition: all 0.2s;
}
.aelms-lesson-item:hover {
    background: #fffaf0;
}
.aelms-lesson-title {
    font-weight: 600;
    margin-bottom: 5px;
}
.aelms-lesson-duration {
    font-size: 0.7rem;
    color: #888;
}

/* Quiz Container */
.aelms-quiz-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.aelms-quiz-question {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}
.aelms-quiz-question-text {
    font-weight: 700;
    margin-bottom: 10px;
}
.aelms-quiz-option {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.aelms-quiz-option input {
    width: auto;
}
.aelms-quiz-feedback {
    background: #eef2ff;
    padding: 10px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 0.9rem;
}
.aelms-quiz-feedback.correct {
    background: #d4edda;
    color: #155724;
}
.aelms-quiz-feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
}

/* Progress Bar */
.aelms-progress {
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    height: 10px;
    margin: 15px 0;
}
.aelms-progress-bar {
    background: #FFB74D;
    width: 0%;
    height: 100%;
    transition: width 0.3s;
}

/* Assignments */
.aelms-assignment-form {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
}
.aelms-assignment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 10px;
}
.aelms-assignment-form input[type="file"] {
    margin-bottom: 10px;
}

/* Dashboard Cards */
.aelms-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.aelms-dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.aelms-dashboard-card h3 {
    margin-top: 0;
}
.aelms-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFB74D;
}

/* Certificate List */
.aelms-certificates {
    list-style: none;
    padding: 0;
}
.aelms-certificates li {
    background: white;
    margin: 10px 0;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.aelms-certificates a {
    text-decoration: none;
    color: #0B2B40;
    font-weight: 500;
}
.aelms-certificates a:hover {
    color: #FFB74D;
}

/* Leaderboard */
.aelms-leaderboard {
    background: white;
    border-radius: 20px;
    padding: 20px;
}
.aelms-leaderboard ol {
    padding-left: 20px;
}
.aelms-leaderboard li {
    margin: 8px 0;
    padding: 5px;
    border-bottom: 1px solid #eef2f8;
}

/* Responsive */
@media (max-width: 768px) {
    .aelms-course-grid {
        grid-template-columns: 1fr;
    }
    .aelms-container {
        padding: 15px;
    }
    .aelms-container h1 {
        font-size: 1.6rem;
    }
}