/**
 * Business Category Page Styles
 * Enhanced styling for business category archive pages
 */

/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #6c63ff 0%, #5a52ff 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.category-header-content {
    padding: 1rem 0;
}

.category-icon-large {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.business-count {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
}

.category-illustration {
    text-align: center;
}

.hero-shapes .shape {
    position: absolute;
    background: rgba(255,255,255,0.1);
}

.shape-1 {
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.shape-2 {
    bottom: 15%;
    left: 5%;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transform: rotate(45deg);
}

.shape-3 {
    top: 35%;
    left: 15%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Filter Bar */
.filter-bar {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.view-options {
    display: flex;
    align-items: center;
}

.view-options span {
    color: #64748b;
    margin-right: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-group .btn {
    padding: 0.375rem 0.75rem;
}

.btn-group .active {
    background-color: #6c63ff;
    color: white;
    border-color: #6c63ff;
}

.filter-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.filter-options span {
    color: #64748b;
    margin-right: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-select {
    max-width: 200px;
    border-radius: 4px;
}

/* Business Cards Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-bottom: 3rem;
}

@media (min-width: 576px) {
    .businesses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .businesses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Business Cards List View */
.view-list .business-card .business-card-inner {
    flex-direction: row;
}

.view-list .business-card .business-image-container {
    width: 35%;
    max-width: 250px;
    height: 100%;
    min-height: 220px;
}

.view-list .business-card .business-info {
    flex: 1;
}

.view-list .business-card .business-actions {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .view-list .business-card .business-card-inner {
        flex-direction: column;
    }

    .view-list .business-card .business-image-container {
        width: 100%;
        height: 200px;
        max-width: none;
    }
}

/* Category Related Content */
.category-related-content {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.category-info-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.card-header {
    padding: 1.5rem;
    color: white;
}

.card-header h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

.tip-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    margin-right: 1rem;
    padding-top: 0.25rem;
}

.tip-icon i {
    font-size: 1.5rem;
}

.tip-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.tip-content p {
    color: #4B5563;
    margin-bottom: 0;
}

/* Toast notification container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Toast styles */
.toast {
    min-width: 250px;
    margin-top: 10px;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
    animation-fill-mode: forwards;
}

.toast-success {
    border-left: 4px solid #10B981;
}

.toast-info {
    border-left: 4px solid #3B82F6;
}

.toast-warning {
    border-left: 4px solid #F59E0B;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

/* Enhanced pagination styling */
.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.pagination {
    display: inline-flex;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: white;
    color: #4B5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.page-numbers:hover {
    background: #f3f4f6;
    color: #1F2937;
}

.page-numbers.current {
    background: #6c63ff;
    color: white;
    border-color: #6c63ff;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 2rem 0;
}

.empty-state-icon {
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 4rem;
    color: #dee2e6;
}

.empty-state-title {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 700;
}

.empty-state-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    margin-bottom: 3rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-icon-large {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }
    
    .businesses-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .filter-options, .view-options {
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .filter-bar, 
    .business-actions, 
    .business-quick-actions,
    .pagination-wrapper {
        display: none !important;
    }
    
    .businesses-grid {
        display: block;
    }
    
    .business-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}
