/* Placeholder for general component styles */

/* --- Spinner Styles --- */

/* Styles for the full-page initial loader */
.loading-container.full-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Stack spinner and text */
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
    z-index: 9999;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove previous padding */
}

.w-full-h-full-container-centered{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
    z-index: 9999;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    /* Thicker border */
    border-radius: 50%;
    border-top: 6px solid var(--primary-color);
    /* Thicker top border */
    width: 60px;
    /* Larger spinner */
    height: 60px;
    /* Larger spinner */
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    /* Add space below spinner */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Skeleton Styles --- */
/* General skeleton style with pulse animation */
.skeleton {
    background-color: var(--dark-bg-tertiary);
    /* Base color */
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Pulse animation using the defined theme colors */
@keyframes pulse {
    0% {
        background-color: var(--dark-bg-tertiary);
    }

    50% {
        background-color: var(--dark-bg-secondary);
    }

    /* Use secondary dark color for pulse effect */
    100% {
        background-color: var(--dark-bg-tertiary);
    }
}

/* Specific skeleton element styles */
.skeleton-header {
    height: 400px;
    margin-bottom: 20px;
    display: flex;
    /* Use flex for alignment */
    align-items: flex-end;
    /* Align content to bottom */
    padding: 30px;
    /* Match real header padding */
    box-sizing: border-box;
    /* Include padding in height */
}

.skeleton-header .header-content {
    position: relative;
    z-index: 2;
    width: 60%;
    /* Match real header content width */
}

.skeleton-header .skeleton-title {
    width: 70%;
    /* Adjust width */
    height: 36px;
    margin-bottom: 10px;
}

.skeleton-header .skeleton-text {
    width: 90%;
    /* Adjust width */
    height: 16px;
    margin-bottom: 15px;
}

.skeleton-header .skeleton-teacher {
    width: 40%;
    /* Adjust width */
    height: 14px;
}

.skeleton-section {
    margin-bottom: 40px;
}

.skeleton-section-title {
    width: 200px;
    /* Fixed width */
    height: 24px;
    margin: 20px 0 15px 0;
}

.skeleton-carousel {
    display: flex;
    gap: 15px;
    padding: 15px;
    padding-left: 15px;
    margin-left: -15px;
    overflow: hidden;
    /* Hide during skeleton */
}

.skeleton-card {
    min-width: 220px;
    height: 200px;
    /* Approx height of real card (thumbnail + title) */
    border-radius: 8px;
}

.skeleton-category-nav {
    margin: 20px 0;
    overflow: hidden;
}

.skeleton-category-scroll {
    display: flex;
    gap: 15px;
    padding: 8px 15px;
    /* Match real category nav padding */
    padding-left: 15px;
    margin-left: -15px;
}

.skeleton-category-box {
    width: 150px;
    /* Approx width */
    height: 48px;
    /* Approx height (padding + font size) */
    border-radius: 8px;
}