/* Genre Filter Element Styles */

/*
 * The shows search block is styled in bricks-tailwind-rebuild/assets/css/custom/genre-filter.css,
 * alongside the rest of the sidebar (issue #36).
 *
 * What used to be here — `.shows-search-form`, `.shows-search-input`, its ::placeholder and
 * :focus, and `.shows-search-submit` — was an ad-hoc treatment: a purple #3F104F border, white
 * background, 16px type, 14px/18px padding, a purple focus outline, and white-on-nothing for the
 * button. It has been deleted rather than overridden. The input now takes the project's branded
 * field styling from input.css (which `[type="search"]` was missing from, which is why it looked
 * unstyled in the first place), and the button takes `.form-btn` from the sidebar scope.
 */

.genre-filter-submit {
    padding: 15px 30px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.genre-filter-submit:hover {
    background-color: #0055aa;
}

/* Results Column */
.genre-filter-results {
    flex: 1;
    min-width: 0;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-spinner p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Skeleton Loading Cards */
.skeleton-card {
    width: 315px;
    height: 330px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skeleton-title {
    width: 80%;
    height: 28px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.skeleton-badge {
    width: 70px;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
}

.skeleton-text {
    width: 100%;
    height: 14px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 85%;
}

.skeleton-link {
    width: 120px;
    height: 14px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 15px;
}

