/**
 * Marketplace plugin CSS styles
 *
 * @package    local_marketplace
 * @copyright  2025 Your Organization
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/* Homepage Styles */
.marketplace-homepage {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-headline {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subheading {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 30px;
}

.hero-cta .btn {
    margin: 0 10px;
}

/* Featured Courses */
.featured-courses {
    padding: 60px 20px;
    background: #f8f9fa;
}

.featured-courses h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Course Card */
.course-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.course-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.course-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-beginner {
    background: #28a745;
    color: white;
}

.badge-intermediate {
    background: #ffc107;
    color: #333;
}

.badge-advanced {
    background: #dc3545;
    color: white;
}

.course-card-content {
    padding: 20px;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.course-title a {
    color: #333;
    text-decoration: none;
}

.course-title a:hover {
    color: #667eea;
}

.course-instructor {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 10px;
}

.course-summary {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 15px;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

/* Social Proof */
.social-proof {
    padding: 60px 20px;
    background: white;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

.featured-testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    font-style: italic;
}

/* Categories */
.course-categories {
    padding: 60px 20px;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card a {
    color: #333;
    text-decoration: none;
}

.category-card a:hover {
    color: #667eea;
}

/* Catalogue Styles */
.catalogue-header {
    background: #f8f9fa;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.search-bar {
    max-width: 600px;
    margin: 20px auto 0;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
}

.filters-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.catalogue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalogue-pagination {
    margin-top: 40px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

/* Course Landing Page */
.marketplace-course-landing {
    width: 100%;
}

.breadcrumb-wrapper {
    background: #f8f9fa;
    padding: 15px 0;
}

.course-hero {
    padding: 40px 0;
}

.course-purchase-card {
    position: sticky;
    top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.price-section {
    text-align: center;
    margin: 20px 0;
}

.price-section .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.buy-now-btn {
    width: 100%;
}

.course-meta-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.course-overview,
.course-outcomes,
.course-syllabus,
.course-instructor,
.course-prerequisites,
.course-testimonials,
.course-faq,
.related-courses {
    padding: 60px 0;
}

.course-overview {
    background: #f8f9fa;
}

.outcomes-list {
    list-style: none;
    padding: 0;
}

.outcomes-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.outcomes-list i {
    color: #28a745;
    margin-right: 10px;
}

.instructor-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.instructor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Welcome Page */
.marketplace-welcome {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.course-welcome-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    text-align: center;
    margin: 30px 0;
}

.what-to-expect,
.how-to-get-help,
.explore-courses {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 30px;
    }

    .instructor-info {
        flex-direction: column;
        text-align: center;
    }

    .catalogue-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Authentication Modal */
#authModal .modal-body {
    padding: 30px;
}

#authModal .oauth-providers {
    margin: 20px 0;
}

/* OAuth Provider Buttons */
.btn-microsoft {
    background-color: #00a4ef;
    color: white;
    border: none;
}

.btn-microsoft:hover {
    background-color: #008ac9;
    color: white;
}

.btn-google {
    background-color: #dd4b39;
    color: white;
    border: none;
}

.btn-google:hover {
    background-color: #c23321;
    color: white;
}

.btn-github {
    background-color: #333;
    color: white;
    border: none;
}

.btn-github:hover {
    background-color: #24292e;
    color: white;
}

.btn-linkedin {
    background-color: #0077b5;
    color: white;
    border: none;
}

.btn-linkedin:hover {
    background-color: #005885;
    color: white;
}

.btn-apple {
    background-color: #000;
    color: white;
    border: none;
}

.btn-apple:hover {
    background-color: #333;
    color: white;
}

.btn-discord {
    background-color: #5865f2;
    color: white;
    border: none;
}

.btn-discord:hover {
    background-color: #4752c4;
    color: white;
}

/* Print styles */
@media print {
    .hero-section,
    .filters-sidebar,
    .catalogue-controls,
    .course-purchase-card {
        display: none;
    }
}
