/* Gab24 Courses List Styles - Minimal CSS Only */

/* Loading overlay */
.gab24-course-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
}

/* Make course items clickable */
.gab24-course-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gab24-course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Course Popup Styles */
.gab24-course-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gab24-course-popup-overlay.active {
    display: block;
    opacity: 1;
}

.gab24-course-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: var(--bs-white);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 0.5rem 3rem rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.gab24-course-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gab24-course-popup-content {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 1.5rem;
}

.gab24-course-popup-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gab24-course-popup-header h2 {
    margin: 0;
    color: var(--bs-primary);
}

.gab24-course-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bs-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.gab24-course-popup-close:hover {
    background-color: var(--bs-light);
    color: var(--bs-dark);
}

.gab24-course-popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
}

/* Course details minimal styles */
.gab24-course-details .accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

.gab24-course-details .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gab24-course-popup {
        width: 95%;
        max-height: 95vh;
    }
    
    .gab24-course-popup-content {
        max-height: calc(95vh - 140px);
    }
}