/*
Theme Name: Wanko Learning System
Theme URI: https://example.com
Description: Custom Learning Management System for YouTube Course Platform
Author: Your Name
Author URI: https://example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wanko-learning
Tags: education, lms, learning, custom-post-types

This theme supports: WordPress 6.0+
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;

    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;

    --text-main: #333333;
    --text-muted: #6c757d;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.site-navigation li {
    margin-left: 20px;
}

.site-main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: auto;
}

/* ========================================
   Course Grid
   ======================================== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.course-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   Lesson Single
   ======================================== */
.lesson-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lesson-sidebar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.lesson-list {
    list-style: none;
    padding: 0;
}

.lesson-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.lesson-list li.current {
    font-weight: bold;
    color: var(--primary);
}

/* ========================================
   Progress & Quiz
   ======================================== */
.progress-bar {
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    height: 20px;
    margin: 10px 0;
}

.progress-bar-fill {
    background: var(--success);
    height: 100%;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
}

.quiz-container {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .lesson-layout {
        grid-template-columns: 1fr;
    }
}
