/* ============================================
   Components CSS - Reusable UI Components
   ============================================ */

/* Hero Section - Base styles (colors can be customized per page) */
.hero-section {
    color: white;
    padding: 2rem 0;
    margin: 0 -15px 2rem -15px;
    border-radius: 0 0 24px 24px;
}

.hero-section * {
    color: white !important;
}

.hero-section .btn-light {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.hero-section .btn-light:hover {
    background-color: white !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

.hero-section .btn-warning {
    background-color: #ffc107 !important;
    border: 2px solid #ffc107 !important;
    color: #212529 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-warning:hover {
    background-color: #ffca2c !important;
    border-color: #ffca2c !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.hero-section .btn-sm {
    border-radius: 8px;
}

.hero-section small {
    opacity: 0.95;
    font-weight: 400;
}

/* Hero section dropdown menu override */
.hero-section .dropdown-menu {
    background-color: #ffffff !important;
}

.hero-section .dropdown-menu * {
    color: #212529 !important;
}

.hero-section .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #0d6efd !important;
}

[data-theme="dark"] .hero-section .dropdown-menu {
    background-color: #2b2d31 !important;
}

[data-theme="dark"] .hero-section .dropdown-menu * {
    color: #dbdee1 !important;
}

[data-theme="dark"] .hero-section .dropdown-item:hover {
    background-color: #383a40 !important;
    color: #667eea !important;
}

/* Material Card */
.material-card {
    background-color: var(--bg-card);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.material-card:hover {
    box-shadow: 0 6px 12px var(--shadow-md);
    transform: translateY(-2px);
}

/* Filter Card */
.filter-card {
    background-color: var(--bg-card);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-btn {
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-sm);
}

/* Quick Manage Card */
.quick-manage-card {
    background-color: var(--bg-card);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-sm);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

/* Lesson Content */
.lesson-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.lesson-content h1, .lesson-content h2, .lesson-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.lesson-content p {
    margin-bottom: 1rem;
}

.lesson-content code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 1rem;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

