/* AIVIO Academy Premium Light Theme System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-sub: #f8fafc;
    --surface: #ffffff;
    --primary: #2563eb;
    /* Royal Blue */
    --primary-soft: #eff6ff;
    --accent: #0ea5e9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --nav-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-sub);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.text-highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding-bottom: 5rem;
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.instructor-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.learn-more-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Course Detail */
.course-header {
    background: var(--bg-main);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 3rem;
    align-items: center;
}

.course-thumb-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.course-page-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.course-page-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.status-badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Progress Section */
.progress-section {
    background: var(--primary-soft);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dbeafe;
}

.progress-bar-bg {
    background: #e2e8f0;
    height: 8px !important;
    border-radius: 99px;
}

.progress-bar-fill {
    background: var(--primary);
    border-radius: 99px;
}

/* Player */
.player-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding-bottom: 4rem;
}

.video-container {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.curriculum-container {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.lecture-link.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

@media (max-width: 1024px) {

    .course-header,
    .player-layout {
        grid-template-columns: 1fr;
    }
}