/* Modern ProQyz Course Grid Styles */

.modern-proqyz-course-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.course-grid-header {
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

.course-grid-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.course-grid-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.header-right {
    display: flex;
    align-items: center;
}

.course-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filters Styles */
.course-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    min-width: 160px;
    transition: all 0.2s ease;
}

.modern-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Search Styles */
.course-search {
    margin-bottom: 2rem;
}

.search-container {
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Grid Styles */
.courses-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.courses-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.courses-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.courses-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Course Card Styles */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    position: relative;
}

.course-image {
    position: relative;
    overflow: hidden;
}

.image-link {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
}

.course-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .image-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.course-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-enroll {
    background: #fef3c7;
    color: #92400e;
}

.status-enrolled {
    background: #dbeafe;
    color: #1e40af;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-icon {
    color: #9ca3af;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-title a:hover {
    color: #2563eb;
}

.course-description {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
}

.course-expiry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.expiry-icon {
    color: #dc2626;
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
}

.course-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.original-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.sale-price {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
}

.price {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.course-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-action-btn:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-1px);
}

.btn-icon {
    transition: transform 0.2s ease;
}

.course-action-btn:hover .btn-icon {
    transform: translateX(2px);
}

/* No Courses State */
.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-courses-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-courses-icon {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-courses h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.no-courses p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #2563eb;
    color: white;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-proqyz-course-grid {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-grid-title {
        font-size: 2rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .courses-grid[data-columns="2"],
    .courses-grid[data-columns="3"],
    .courses-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .course-action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .course-grid-title {
        font-size: 1.75rem;
    }
    
    .course-grid-subtitle {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 1rem;
    }
}