/* ========================================
   CATALOGUE PAGE - Against Stones
   Design professionnel avec filtres et recherche
   ======================================== */

/* ========================================
   SEARCH CONTAINER
   ======================================== */
.search-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: stretch;
}

#quick-search {
    width: calc(100% - 70px);
    padding: 16px 20px 16px 56px;
    background: #1F2937;
    border: 1px solid #374151;
    color: #E5E7EB;
    font-size: 16px;
    transition: all 0.3s ease;
}

#quick-search::placeholder {
    color: #64748B;
}

#quick-search:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
    background: #1f2330;
}

.btn-filters {
    background: #1a1d26;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 28px;
    color: #b0b0b0;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-filters:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ========================================
   ADVANCED SEARCH PANEL
   ======================================== */
.advanced-panel {
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-panel[style*="display: none"] {
    max-height: 0;
    padding: 0 32px;
    margin-bottom: 0;
    opacity: 0;
}

/* ========================================
   FILTER GRID
   ======================================== */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.filter-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-grid label,
.filter-row label {
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

.filter-grid select,
.filter-row select,
.filter-row input[type="date"] {
    background: #0f1117;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-grid select:hover,
.filter-row select:hover,
.filter-row input[type="date"]:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: #14161f;
}

.filter-grid select:focus,
.filter-row select:focus,
.filter-row input[type="date"]:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Date inputs styling */
.filter-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.6);
    cursor: pointer;
}

.filter-row input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(1) opacity(1);
}

/* ========================================
   FILTER ROW
   ======================================== */
.filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.filter-row > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   FILTER ACTIONS
   ======================================== */
.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-apply,
.btn-reset {
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-apply {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-reset {
    background: transparent;
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   ARTWORK GRID
   ======================================== */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.artwork-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7),
                0 0 0 2px rgba(255, 215, 0, 0.3);
}

.artwork-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.artwork-card:hover .artwork-image {
    transform: scale(1.1);
}

/* Video badge (play icon) */
.video-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #FFD700;
    color: #111;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 1;
}

.artwork-info {
    padding: 20px;
}

.artwork-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.artwork-meta {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.artwork-details {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #b0b8c4;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    margin: 80px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 12px 18px;
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pagination a.active {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    border-color: #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.pagination a.prev,
.pagination a.next {
    padding: 12px 24px;
    background: #0f1117;
    border-color: rgba(255, 215, 0, 0.2);
}

.pagination a.prev:hover,
.pagination a.next:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    border-color: #FFD700;
}

.pagination span {
    padding: 12px 8px;
    color: #64748B;
}

/* ========================================
   MUSEUM COLLECTION HEADER
   ======================================== */
.collection-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94A3B8;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.collection-label {
    font-weight: 500;
}

.collection-count {
    font-weight: 400;
}

.collection-count strong {
    color: #FFD700;
    font-weight: 700;
    font-size: 16px;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #64748B;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.empty-state::before {
    content: '🎨';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .artwork-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 12px;
    }

    .advanced-panel {
        padding: 24px 20px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-apply,
    .btn-reset {
        width: 100%;
        padding: 14px 32px;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artwork-image-wrapper {
        height: 240px;
    }

    .pagination {
        margin: 60px 0;
        gap: 6px;
    }

    .pagination a {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 40px;
    }

    .pagination a.prev,
    .pagination a.next {
        padding: 10px 16px;
        font-size: 13px;
    }

    .collection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #quick-search {
        padding: 14px 16px;
        font-size: 14px;
    }

    .btn-filters {
        padding: 14px 20px;
        font-size: 14px;
    }

    .advanced-panel {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .artwork-image-wrapper {
        height: 200px;
    }

    .artwork-title {
        font-size: 16px;
    }

    .artwork-meta,
    .artwork-details {
        font-size: 13px;
    }

    .pagination {
        margin: 40px 0;
    }

    .pagination a.prev,
    .pagination a.next {
        font-size: 12px;
    }
}

/* ========================================
   SEARCH BAR - Catalogue (Responsive)
   ======================================== */
.forum-search-container {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.forum-search-wrapper{
    width: 100%;
}

.search-bar {
    flex: 1;
    position: relative;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 10px;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.search-icon {
    color: #94A3B8;
    margin-right: 14px;
    font-size: 20px;
}

#quick-search {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #E5E7EB;
    font-size: 16px;
    padding: 0;
}

#quick-search::placeholder {
    color: #9CA3AF;
}

.search-arrow-btn {
    width: 46px;
    height: 46px;
    background: #374151;
    color: #CBD5E1;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-arrow-btn:hover {
    background: #FFD700;
    color: #111;
}

/* Bouton Nouvelle discussion */
.btn-new-discussion {
    background: #FFD700;
    color: #111827;
    padding: 0 28px;
    height: 58px;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-new-discussion:hover {
    background: #FACC15;
    transform: translateY(-2px);
}

.plus-icon {
    font-size: 20px;
    font-weight: bold;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .forum-search-container {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 32px;
    }

    .search-bar {
        height: 54px;
    }

    #quick-search {
        font-size: 15.5px;
    }

    .search-arrow-btn {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .btn-new-discussion {
        width: 100%;
        height: 54px;
        justify-content: center;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .forum-search-container {
        padding: 0 16px;
    }

    .search-bar {
        height: 52px;
        padding: 0 6px 0 20px;
    }

    #quick-search {
        font-size: 15px;
    }
}