/* 
 * SBOBET88 - Category Page Styles
 * Additional styles specific to the category listing page
 */

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    padding: 2rem 0;
    color: white;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb span {
    color: white;
    font-weight: 600;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-description {
    max-width: 800px;
    margin-bottom: 2rem;
}

.category-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.category-banner {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-bottom: -3rem;
    position: relative;
    z-index: 10;
}

.category-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Category Filters */
.category-filters {
    background: white;
    padding: 4rem 0 2rem;
    border-bottom: 1px solid #eaeaea;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 0.5rem;
    color: #091e5b;
    font-weight: 600;
    white-space: nowrap;
}

.filter-group select {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    min-width: 180px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    border-color: #0056b3;
}

/* Search in Category */
.search-in-category {
    flex-grow: 1;
    max-width: 400px;
}

.search-in-category form {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-in-category form:focus-within {
    border-color: #0056b3;
}

.search-in-category input {
    flex: 1;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    outline: none;
}

.search-in-category .search-btn {
    background: #0056b3;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-in-category .search-btn:hover {
    background: #003d82;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.active-filter {
    background: #f0f7ff;
    color: #0056b3;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-filter button {
    background: none;
    border: none;
    color: #0056b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}

.active-filter button:hover {
    color: #003d82;
}

/* Category Products */
.category-products {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 500px;
}

.category-meta {
    margin-bottom: 2rem;
}

.category-meta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-meta p {
    color: #666;
}

.category-meta .count {
    font-weight: 700;
    color: #091e5b;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    border-top: 4px solid #0056b3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results.hidden {
    display: none;
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #666;
}

/* Category Info */
.category-info {
    padding: 4rem 0;
    background: white;
}

.category-content {
    margin-bottom: 3rem;
}

.category-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #091e5b;
    position: relative;
    padding-bottom: 1rem;
}

.category-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0056b3;
}

.category-info-text {
    max-width: 900px;
}

.category-info-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

.category-info-text ul,
.category-info-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-info-text li {
    margin-bottom: 0.5rem;
}

.category-faq h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #091e5b;
}

/* Related Categories */
.related-categories {
    padding: 4rem 0;
    background: #f0f7ff;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-link-card {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    width: 220px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    text-decoration: none;
}

.category-link-image {
    height: 120px;
    overflow: hidden;
}

.category-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-link-card:hover .category-link-image img {
    transform: scale(1.05);
}

.category-link-content {
    padding: 1.5rem;
    text-align: center;
}

.category-link-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #091e5b;
}

.category-link-count {
    font-size: 0.9rem;
    color: #666;
}

/* Popular Products */
.popular-products {
    padding: 4rem 0;
    background: white;
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-in-category {
        max-width: 100%;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .category-link-card {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .category-description p {
        font-size: 1rem;
    }
    
    .category-banner {
        margin-bottom: -2rem;
    }
    
    .category-filters {
        padding-top: 3rem;
    }
    
    .category-link-card {
        width: 150px;
    }
    
    .category-link-image {
        height: 100px;
    }
    
    .category-link-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 1.5rem 0;
    }
    
    .category-header h1 {
        font-size: 1.5rem;
    }
    
    .category-banner {
        margin-bottom: -1rem;
    }
    
    .category-filters {
        padding-top: 2rem;
    }
    
    .active-filter {
        font-size: 0.8rem;
    }
    
    .category-links {
        gap: 1rem;
    }
    
    .category-link-card {
        width: 130px;
    }
    
    .category-link-image {
        height: 80px;
    }
    
    .category-link-content {
        padding: 0.8rem;
    }
    
    .category-link-title {
        font-size: 0.9rem;
    }
    
    .category-link-count {
        font-size: 0.8rem;
    }
}