/* Usaha Lokal Page Styles */

/* Hero Section */
.usaha-lokal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.usaha-lokal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="1"/></g></svg>') repeat;
    opacity: 0.3;
}

.usaha-lokal-hero .container {
    position: relative;
    z-index: 1;
}

/* Category Filter Tabs */
.category-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-filter-tabs .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.category-filter-tabs .btn.active {
    background-color: white;
    color: #667eea;
    border-color: white;
}

.category-filter-tabs .btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Business Cards Section */
.business-cards-section {
    background-color: #f8f9fa;
    min-height: 60vh;
}

/* Business Card Styles */
.business-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background: white;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 0;
}

.business-card-body {
    padding: 20px;
    position: relative;
}

.business-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
}

.business-card-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.business-card-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-card-location {
    color: #8e9090;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.business-card-location i {
    margin-right: 6px;
    color: #dc3545;
}

.business-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.business-rating {
    display: flex;
    align-items: center;
    color: #ffc107;
    font-size: 14px;
}

.business-rating i {
    margin-right: 4px;
}

.business-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.business-status.open {
    background-color: #d4edda;
    color: #155724;
}

.business-status.closed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.business-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.business-card-actions .btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-visit {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.btn-visit:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    color: white;
    transform: translateY(-1px);
}

.btn-contact {
    background: #28a745;
    color: white;
    border: none;
}

.btn-contact:hover {
    background: #218838;
    color: white;
    transform: translateY(-1px);
}

/* Loading and Empty States */
#loadingSpinner {
    background: white;
    border-radius: 15px;
    margin: 20px;
}

#emptyState {
    background: white;
    border-radius: 15px;
    margin: 20px;
}

/* Filter Controls */
.form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
}

/* Load More Button */
#loadMoreBtn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .usaha-lokal-hero {
        padding: 40px 0;
    }
    
    .category-filter-tabs {
        justify-content: center;
    }
    
    .category-filter-tabs .btn {
        margin-bottom: 10px;
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .business-card-body {
        padding: 15px;
    }
    
    .business-card-title {
        font-size: 1.1rem;
    }
    
    .business-card-actions {
        flex-direction: column;
    }
    
    .business-card-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .usaha-lokal-hero h1 {
        font-size: 1.8rem;
    }
    
    .business-card-img {
        height: 150px;
    }
    
    .category-filter-tabs {
        gap: 5px;
    }
    
    .category-filter-tabs .btn {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* Dark Mode Support */
.dark-mode .usaha-lokal-hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.dark-mode .business-cards-section {
    background-color: #1a202c;
}

.dark-mode .business-card {
    background-color: #2d3748;
    border-color: #4a5568;
}

.dark-mode .business-card-title {
    color: #e2e8f0;
}

.dark-mode .business-card-description {
    color: #a0aec0;
}

.dark-mode .business-card-location {
    color: #718096;
}

.dark-mode .business-card-stats {
    border-top-color: #4a5568;
}

.dark-mode #loadingSpinner,
.dark-mode #emptyState {
    background-color: #2d3748;
    color: #e2e8f0;
}

.dark-mode .form-select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for multiple cards */
.business-card:nth-child(1) { animation-delay: 0.1s; }
.business-card:nth-child(2) { animation-delay: 0.2s; }
.business-card:nth-child(3) { animation-delay: 0.3s; }
.business-card:nth-child(4) { animation-delay: 0.4s; }
.business-card:nth-child(5) { animation-delay: 0.5s; }
.business-card:nth-child(6) { animation-delay: 0.6s; }
