/* Categories Page Styles - Matching Brands Page Design */

.categories-main {
    background-color: #F8FAFC;
    min-height: 100vh;
    padding: 2rem 0;
}

.categories-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Content Area */
.categories-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header Section */
.categories-header {
    background: #0D9488;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.categories-logo {
    flex-shrink: 0;
}

.categories-logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.categories-title-section {
    flex: 1;
}

.categories-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.categories-badge i {
    color: #0D9488;
}

.categories-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.categories-title-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.categories-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #0D9488;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #0F766E;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Featured Categories Section */
.featured-categories-section {
    padding: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1.5rem;
}

.section-divider {
    height: 2px;
    background: #16A34A;
    margin: 2rem 0;
}

/* All Categories Section */
.all-categories-section {
    padding: 2rem;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.alphabet-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #6B7280;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.alphabet-link:hover {
    color: #0D9488;
    border-color: #0D9488;
}

.alphabet-link.active {
    background: #0D9488;
    color: white;
    border-color: #0D9488;
}

/* Alphabet Groups */
.all-categories-container {
    padding: 0;
}

.alphabet-group {
    margin-bottom: 2rem;
}

.alphabet-header {
    font-size: 2rem;
    font-weight: 700;
    color: #0D9488;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.featured-categories-section .categories-grid,
.all-categories-section .categories-grid {
    padding: 0;
}

.category-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: #ffd700;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.subcategory-card {
    border-left: 4px solid #28a745;
}

.subcategory-card:hover {
    border-color: #28a745;
    border-left-color: #1e7e34;
}

.parent-category {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
    flex-shrink: 0;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.category-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.category-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.category-info .subcategories-list {
    margin-top: 0.5rem;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.subcategory-link {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.subcategory-link:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
    transform: translateY(-1px);
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.category-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.featured {
    background: #e8f5e8;
    color: #2e7d32;
}

.category-badge.popular {
    background: #fff3e0;
    color: #f57c00;
}

.category-action {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-action:hover {
    background: #ffed4e;
    transform: translateY(-1px);
}

/* No Categories State */
.no-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-categories p {
    font-size: 1.1rem;
}

/* Right Sidebar */
.categories-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Verification Card */
.verification-card {
    text-align: center;
}

.verification-badge {
    background: #ffd700;
    color: #333;
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.verification-badge i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

.verification-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.trustpilot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stars {
    color: #28a745;
}

/* VIP Card */
.vip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vip-header i {
    color: #ffd700;
}

.vip-header span {
    background: #ffd700;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vip-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.vip-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.vip-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-white {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-white:hover {
    border-color: #ffd700;
    transform: translateY(-1px);
}

.btn-yellow {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    background: #ffed4e;
    transform: translateY(-1px);
}

/* Stats Card */
.stats-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .categories-title-section h1 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .categories-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .categories-main {
        padding: 1rem 0;
    }
    
    .categories-header {
        padding: 1.5rem;
    }
    
    .categories-title-section h1 {
        font-size: 1.75rem;
    }
    
    .categories-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Category Page Banner Styles */
.category-page-banner {
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-page-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-page-banner img {
    width: 100%;
    height: auto;
    display: block;
}
