/* Exponat Archive Styles */

.exponat-archive-container {
    min-height: calc(100vh - 200px);
}

.exponat-card-image img {
    height: 100%;
}

.archive-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

/* Filters */
.exponat-filters {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.filter-search {
    grid-column: span 1;
}

.filter-input,
.filter-select {
    width: 100%;
    /*padding: 12px 16px;*/
    font-size: 15px;
    color: #1a1a1a;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #495057;
    background: #ffffff;
}

.filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Exponat Grid */
.exponat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Exponat Card */
.exponat-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.exponat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

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

.exponat-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.exponat-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exponat-card:hover .exponat-card-image img {
    transform: scale(1.05);
}

.exponat-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.85);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.exponat-card-content {
    padding: 20px;
}

.exponat-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    /* Одна линия с троеточием */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exponat-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exponat-card-meta-item {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    /* Одна линия с троеточием */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading */
.exponat-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid #f8f9fa;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 1200px) {
    .exponat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .archive-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .filter-search {
        grid-column: span 2;
    }

    .exponat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .exponat-archive-container {
        padding: 40px 0;
    }

    .archive-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .exponat-filters {
        padding: 20px;
    }

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

    .filter-search {
        grid-column: span 1;
    }

    .filter-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .exponat-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 24px;
    }

    .exponat-filters {
        padding: 15px;
    }

    .filter-input,
    .filter-select {
        padding: 10px 14px;
        font-size: 14px;
    }

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

    .exponat-card-content {
        padding: 16px;
    }
}