/* ============================= */
/* === COMMUNITY SHOWCASE    === */
/* ============================= */

/* ---- Homepage carousel section ---- */

.showcase-section {
    padding: 16px 0 6px;
    margin-bottom: 0;
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0;
}

.showcase-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.showcase-count {
    font-size: 0.85rem;
    color: #888;
    background-color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 12px;
}

.showcase-view-all {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.showcase-view-all:hover {
    color: #E8BD2C;
}

.showcase-view-all i {
    font-size: 0.75rem;
    margin-left: 2px;
}

/* Arrow buttons */
.showcase-arrows {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.showcase-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.showcase-arrow:hover {
    background: #282828;
    border-color: #E8BD2C;
    color: #E8BD2C;
}

.showcase-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    border-color: #222;
}

.showcase-arrow:disabled:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #222;
}

.showcase-viewport {
    overflow: hidden;
    padding: 2px 0 10px;
}

/* Horizontal scroll track */
.showcase-scroll {
    display: flex;
    gap: 16px;
    padding: 10px 0 0 0;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar {
    display: none;
}

/* ---- Shared card styles ---- */

.showcase-card {
    min-width: 340px;
    flex: 0 0 340px;
    scroll-snap-align: start;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.showcase-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.showcase-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.showcase-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    overflow: hidden;
}

.showcase-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-cover-image {
    transform: scale(1.05);
}

.showcase-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.7);
    color: #E8BD2C;
    backdrop-filter: blur(4px);
}

.showcase-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #555;
}

.showcase-placeholder i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.showcase-placeholder span {
    font-size: 0.85rem;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 20px 12px 10px;
}

.showcase-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}

.showcase-frame-count {
    background-color: rgba(232, 189, 44, 0.2);
    color: #E8BD2C;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.75rem;
}

.showcase-date {
    color: #888;
    font-size: 0.75rem;
}

/* ---- Showcase page (grid layout) ---- */

.showcase-page {
    padding: 30px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-page-header {
    margin-bottom: 30px;
}

.showcase-page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.showcase-page-header p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Filters bar */
.showcase-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.showcase-search {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    position: relative;
}

.showcase-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.showcase-search input:focus {
    border-color: #E8BD2C;
}

.showcase-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.showcase-type-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.showcase-type-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #333;
    background: transparent;
    color: #aaa;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.showcase-type-btn:hover {
    border-color: #E8BD2C;
    color: #E8BD2C;
}

.showcase-type-btn.active {
    background: rgba(232, 189, 44, 0.15);
    border-color: #E8BD2C;
    color: #E8BD2C;
}

.showcase-sort {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.showcase-sort select {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.showcase-sort select:focus {
    border-color: #E8BD2C;
}

/* Grid layout */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.showcase-grid .showcase-card {
    min-width: unset;
    flex: unset;
}

/* Stats bar */
.showcase-stats {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.showcase-stats strong {
    color: #E8BD2C;
}

/* Empty state */
.showcase-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.showcase-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.showcase-empty h3 {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.showcase-empty p {
    font-size: 0.9rem;
}

/* ============================= */
/* ===  RESPONSIVE            === */
/* ============================= */

@media (max-width: 992px) {
    .showcase-arrows {
        display: none;
    }
}

@media (max-width: 768px) {
    .showcase-image-wrapper {
        height: 200px;
    }

    .showcase-view-all {
        display: none;
    }

    /* Grid page */
    .showcase-page {
        padding: 20px 15px 40px;
    }

    .showcase-page-header h1 {
        font-size: 1.4rem;
    }

    .showcase-filters {
        gap: 8px;
    }

    .showcase-search {
        max-width: none;
    }

    .showcase-sort {
        margin-left: 0;
        width: 100%;
    }

    .showcase-sort select {
        width: 100%;
    }

    .showcase-grid .showcase-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .showcase-image-wrapper {
        height: 200px;
    }

    .showcase-header h2 {
        font-size: 1.1rem;
    }

    /* Grid page */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .showcase-grid .showcase-card {
        border-radius: 8px;
    }

    .showcase-grid .showcase-image-wrapper {
        height: 200px;
    }

    .showcase-grid .showcase-title {
        font-size: 0.95rem;
    }
}
