/* ========================================
   Multi-Color Theme for Index Page
   ======================================== */

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    min-height: 70vh;
    position: relative;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 25%, 
        rgba(240, 147, 251, 0.9) 50%, 
        rgba(245, 87, 108, 0.9) 75%, 
        rgba(79, 172, 254, 0.9) 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

.text-gradient {
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Hero Buttons */
.btn-hero-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Floating Cards Animation */
.hero-image-container {
    position: relative;
    height: 400px;
}

.hero-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-card.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-card.card-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

.bg-gradient-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

.bg-gradient-info {
    background: linear-gradient(45deg, #17a2b8, #138496) !important;
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
}

.bg-gradient-danger {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(45deg, #6c757d, #545b62) !important;
}

.bg-gradient-dark {
    background: linear-gradient(45deg, #343a40, #23272b) !important;
}

.bg-gradient-purple {
    background: linear-gradient(45deg, #6f42c1, #5a32a3) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Gradient Buttons */
.btn-gradient-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    color: white;
}

.btn-gradient-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-gradient-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
    color: white;
}

.btn-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
    transition: all 0.3s ease;
}

.btn-gradient-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    color: #212529;
}

.btn-gradient-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-gradient-secondary {
    background: linear-gradient(45deg, #6c757d, #545b62);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    color: white;
}

/* Search Section */
.search-section {
    position: relative;
}

.search-card {
    border-radius: 20px !important;
    border: none;
    backdrop-filter: blur(10px);
}

.search-input-group .input-group-text {
    border-radius: 15px 0 0 15px !important;
}

.search-input-group .form-control {
    border-radius: 0 !important;
    font-size: 1.1rem;
    padding: 1rem;
}

.search-input-group .btn {
    border-radius: 0 15px 15px 0 !important;
    font-weight: 600;
}

.quick-filters .filter-btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-filters .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Section Headers */
.section-header {
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* Business Cards */
.business-card {
    transition: transform 0.3s ease;
}

.business-card:hover {
    transform: translateY(-10px);
}

.business-card-inner {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.business-card:hover .business-card-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.featured-badge {
    top: 15px;
    right: 15px;
    z-index: 10;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.business-logo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-logo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.business-card:hover .business-logo {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-card:hover .card-overlay {
    opacity: 1;
}

.feature-badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px !important;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-card {
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.category-card-inner {
    border-radius: 15px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-inner {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.category-icon {
    position: relative;
    z-index: 2;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 0.05;
}

/* Empty State */
.empty-state {
    padding: 3rem 2rem;
}

.empty-icon {
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .search-input-group .input-group {
        flex-direction: column;
    }
    
    .search-input-group .input-group-text,
    .search-input-group .form-control,
    .search-input-group .btn {
        border-radius: 10px !important;
        margin-bottom: 0.5rem;
    }
    
    .quick-filters {
        justify-content: center !important;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
