/* Courses/smart-goal-planning-course/style.css */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #8b5cf6;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --cyan: #06b6d4;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-glow: 0 10px 30px -10px var(--primary-glow);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

/* Navigation Bar Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-nav {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Header Gamification Bar */
.user-stats-bar {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    font-size: 0.9rem;
}

.stat-pill.xp-pill {
    color: var(--amber);
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-pill.lvl-pill {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Course Header Hero */
.hero-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow);
}

.hero-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #c7d2fe, var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Progress Overview Bar */
.progress-overview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.progress-track {
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--emerald));
    border-radius: 50px;
    width: 0%;
    transition: width 0.8s ease-in-out;
}

/* Badges Section */
.badges-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(16px);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
}

.achievement-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    text-align: center;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.achievement-badge.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.badge-icon-wrap {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--amber);
}

.achievement-badge.unlocked .badge-icon-wrap {
    background: linear-gradient(135deg, var(--amber), #b45309);
    color: #fff;
}

.achievement-badge span {
    font-size: 0.82rem;
    font-weight: 800;
    display: block;
    line-height: 1.3;
}

/* Roadmap Grid System */
.modules-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.module-header {
    margin-bottom: 1.5rem;
    border-right: 4px solid var(--primary);
    padding-right: 1rem;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.module-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cards (Lessons / Games / Tools) */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: all 0.35 ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.item-card:hover:not(.locked) {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.item-card.completed {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(15, 23, 42, 0.8));
}

.item-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.item-card.completed .card-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
}

.xp-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Lesson Content Page Styles */
.lesson-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.lesson-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lesson-header {
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.lesson-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.lesson-objective {
    background: rgba(99, 102, 241, 0.1);
    border-right: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: #c7d2fe;
    margin-bottom: 1.5rem;
}

/* Interactive Components inside Lessons */
.interactive-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.box-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn-action {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-action.btn-emerald {
    background: linear-gradient(135deg, var(--emerald), #047857);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-action.btn-emerald:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-complete {
    width: 100%;
    justify-content: center;
    padding: 1.1rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* Toast Box */
.toast-box {
    color: #fff;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

/* Responsive queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .lesson-card {
        padding: 1.5rem;
    }
}
