*,
*::before,
*::after {
    box-sizing: border-box;
}

.cluster-container {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* === HERO SLIDER (Simpel & Elegan) === */
.cluster-hero-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 4;  
    overflow: hidden;
    background: #f0f0f0;
    
}

.cluster-slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.cluster-slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.cluster-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay Gelap Tipis di Slider agar teks putih terbaca (Opsional) */
.cluster-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2); 
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.9); color: #000; }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; 
}
/* === CARD DESIGN === */
.card-floating-logo {
    position: absolute;
    top: 12px;       
    left: 12px;      
    z-index: 20;    
    
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80px; 
    height: 36px;
}

.card-floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.inspiration-card-link:hover .card-floating-logo {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* --- NEW Cluster Star Badge --- */
.cluster-new-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
    clip-path: polygon(50% 0%, 64% 33%, 98% 35%, 74% 58%, 79% 91%, 50% 75%, 21% 91%, 27% 59%, 2% 35%, 35% 34%);
    animation: pulse-star-cluster 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.cluster-new-badge .new-text {
    transform: rotate(10deg);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

@keyframes pulse-star-cluster {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(229, 62, 62, 0.6);
    }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .cluster-new-badge {
        width: 50px;
        height: 50px;
    }

    .cluster-new-badge .new-text {
        font-size: 10px;
    }
}
.inspiration-card {
    aspect-ratio: 4 / 3;
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* Pastikan gambar tidak keluar */
}

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

.inspiration-card-link:hover .inspiration-card-image {
    transform: scale(1.05); /* Efek zoom saat hover */
}

/* OVERLAY (Dimodifikasi sedikit untuk menampung Dev Info) */
.inspiration-card-terms-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    
    /* Ganti display ke Flex Column agar rapi */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Jarak antara Judul dan Nama Dev */
    
    padding: 8px 12px;
    background-color: rgba(18, 52, 86, 0.85); /* Sedikit lebih gelap agar teks terbaca */
    border-radius: 6px;
    color: white;
    backdrop-filter: blur(2px);
}

.card-overlay-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Info Developer di dalam Overlay */
.card-overlay-dev {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 4px;
}

.dev-name-small {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-logo-micro {
    height: 16px; /* Logo kecil saja */
    width: auto;
    background: white; 
    padding: 2px 4px;
    border-radius: 2px;
    margin-left: 8px;
}

#inspiration-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

#inspiration-filters {
    flex: 0 0 280px;
    max-width: 100%;
}

#inspiration-filters form {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

#inspiration-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.accordion-item {
    border-bottom: none;
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.accordion-header::after {
    content: none;
}
.accordion-header.active {
    border-color: #f3082b;
    color: #f3082b;
}
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease-in-out;
}
.accordion-content.open {
    grid-template-rows: 1fr;
}
.accordion-content > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 8px 16px 8px;
    min-height: 0;
    max-height: 250px;
    overflow-y: auto;
    transition:
        padding-top 0.3s ease-in-out,
        padding-bottom 0.3s ease-in-out;
}
.accordion-content:not(.open) > div {
    padding-top: 0;
    padding-bottom: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}
.filter-item input {
    margin-right: 10px;
}
.filter-count {
    margin-left: auto;
    color: #777;
    font-size: 14px;
}

#inspiration-apply-desktop,
.btn-reset {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
#inspiration-apply-desktop {
    background-color: #f3082b;
    color: white;
    border: none;
}
.btn-reset {
    background-color: #fff;
    color: #f3082b;
    border: 1px solid #f3082b;
}

#inspiration-results {
    flex: 1;
    min-width: 0;
}
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.inspiration-card-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    transition:
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
}
.inspiration-card-link:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}
.inspiration-card {
    aspect-ratio: 4 / 3;
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
}
.inspiration-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.inspiration-card-terms-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 6px;
    padding: 6px 8px;
    background-color: rgba(18, 52, 86, 0.5);
    border-radius: 4px;
    color: white;
    font-size: 12px;
}
.term-separator {
    color: white;
    opacity: 0.7;
}

.inspiration-pagination {
    margin-top: 30px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.inspiration-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.2s ease;
}
.inspiration-page-link.active,
.inspiration-page-link:hover {
    background: #f3082b;
    color: white;
    border-color: #f3082b;
}

#mobile-action-bar {
    display: none;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
    align-items: center;
}
.mobile-search-form {
    flex: 1;
}
.mobile-search-form .search-input-wrapper {
    position: relative;
}
.mobile-search-form .search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}
.mobile-search-form input {
    width: 100%;
    height: 44px;
    padding: 10px 14px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
}
.mobile-search-form input:focus {
    background-color: #fff;
    border-color: #f3082b;
    box-shadow: 0 0 0 3px rgba(243, 8, 43, 0.1);
    outline: none;
}
#mobile-filter-open {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f3082b;
    color: white;
    border: 1px solid #f3082b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
#mobile-filter-open:hover {
    opacity: 0.85;
}
#mobile-filter-open svg {
    display: block;
}
#filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
#filter-overlay.show {
    display: block;
}

.inspiration-page-content-after {
    margin-top: 60px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    #inspiration-filter-wrapper {
        flex-direction: column;
    }
    #mobile-action-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    #inspiration-search {
        display: none;
    }
    #inspiration-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 80%;
        height: 100%;
        background: white;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    #inspiration-filters.show {
        left: 0;
    }
    #inspiration-filters form {
        position: static;
        top: auto;
        border: none;
        padding-bottom: 80px;
    }
}

@media (min-width: 901px) {
    #inspiration-filter-wrapper {
        flex-direction: row;
        gap: 30px;
    }
    #inspiration-filters {
        flex: 0 0 280px;
    }
    #inspiration-results {
        flex: 1;
    }
}

.not-found {
    grid-column-start: 0;
    grid-column-end: 3;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #555;
}
