/* ============================================ */
/* CATEGORY PAGE - Modern Design */
/* ============================================ */

/* Page Header with Gradient */
.page-header {
    background: linear-gradient(135deg, #1a1625 0%, #2d2640 100%) !important;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: fadeInDown 0.6s ease;
}

.breadcrumb a {
    color: #928DAB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #6366f1;
}

.breadcrumb span {
    color: #6b7280;
}

.breadcrumb span:last-child {
    color: #E5E3ED;
    font-weight: 600;
}

/* Category Title */
#category-title {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E3ED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#category-description {
    font-size: 18px;
    color: #928DAB;
    margin: 0;
    animation: fadeInUp 1s ease;
}

/* Category Content */
.category-content {
    background: #1a1625 !important;
    padding: 40px 0 80px;
    min-height: 60vh;
}

/* Override any conflicting styles */
body {
    background: #1a1625 !important;
}

section {
    background: transparent !important;
}

/* Controls Bar */
.category-controls {
    background: linear-gradient(145deg, #2A2738 0%, #252035 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(146, 141, 171, 0.15);
    animation: slideInUp 0.6s ease;
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #2A2738 !important; /* Koyu arka plan */
    background-color: #2A2738 !important;
    border: 1px solid rgba(146, 141, 171, 0.3) !important;
    border-radius: 12px;
    color: #E5E3ED !important; /* Açık gri metin */
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #928DAB !important; /* Koyu gri placeholder */
}

.search-input:focus {
    outline: none;
    background: #352F47 !important; /* Focus'ta daha açık koyu */
    background-color: #352F47 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #928DAB;
    font-size: 16px;
    pointer-events: none;
}

/* Results Info */
.results-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E5E3ED;
    font-size: 15px;
    font-weight: 600;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count i {
    color: #6366f1;
    font-size: 18px;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-controls label {
    color: #928DAB;
    font-size: 14px;
    font-weight: 500;
}

.sort-select {
    padding: 10px 36px 10px 16px;
    background: #2A2738 !important; /* Koyu arka plan */
    border: 1px solid rgba(146, 141, 171, 0.3) !important;
    border-radius: 10px;
    color: #928DAB !important; /* Koyu gri metin */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important; /* Deseni kaldır */
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #2A2738 !important;
}

.sort-select:hover {
    background: #352F47 !important; /* Hover'da daha açık koyu */
    background-color: #352F47 !important;
    border-color: rgba(146, 141, 171, 0.5) !important;
    color: #E5E3ED !important; /* Hover'da daha açık metin */
}

.sort-select:focus {
    outline: none;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: #352F47 !important; /* Focus'ta daha açık koyu */
    background-color: #352F47 !important;
    color: #E5E3ED !important; /* Focus'ta daha açık metin */
}

/* Select option'ları için koyu stil */
.sort-select option {
    background: #2A2738 !important;
    background-color: #2A2738 !important;
    color: #E5E3ED !important; /* Açık gri metin - okunabilirlik için */
    padding: 10px;
}

/* Select içindeki seçili metin için */
.sort-select:not(:focus) {
    color: #E5E3ED !important; /* Normal durumda açık gri */
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    animation: fadeIn 0.8s ease;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-state p {
    color: #928DAB;
    font-size: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 0.8s ease;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    color: #E5E3ED;
    font-size: 24px;
    margin: 0 0 12px 0;
}

.empty-state p {
    color: #928DAB;
    font-size: 16px;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease;
}

.pagination button {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(146, 141, 171, 0.2);
    border-radius: 10px;
    color: #E5E3ED;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateY(-2px);
}

.pagination button.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #category-title {
        font-size: 36px;
    }

    .page-header {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: 1fr;
    }

    .category-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .controls-left,
    .controls-right {
        width: 100%;
    }

    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        flex: 1;
    }

    #category-title {
        font-size: 28px;
    }

    .page-header {
        padding: 40px 0 30px;
    }
}

/* Stagger Animation for Cards */
.models-grid .product-card {
    animation: fadeInUp 0.6s ease backwards;
}

.models-grid .product-card:nth-child(1) { animation-delay: 0.1s; }
.models-grid .product-card:nth-child(2) { animation-delay: 0.2s; }
.models-grid .product-card:nth-child(3) { animation-delay: 0.3s; }
.models-grid .product-card:nth-child(4) { animation-delay: 0.4s; }
.models-grid .product-card:nth-child(5) { animation-delay: 0.5s; }
.models-grid .product-card:nth-child(6) { animation-delay: 0.6s; }
.models-grid .product-card:nth-child(7) { animation-delay: 0.7s; }
.models-grid .product-card:nth-child(8) { animation-delay: 0.8s; }

