/* Custom Animations and Styles for KwachaGigs - Green Theme */

/* CSS Variables for Green Theme */
:root {
    --primary-green: #28a745;
    --primary-green-dark: #218838;
    --primary-green-light: #34ce57;
    --accent-green: #20c997;
    --success-green: #198754;
    --gradient-green: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-green-dark: linear-gradient(135deg, #218838 0%, #17a2b8 100%);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.25) !important;
}

.hover-shadow-lg:hover {
    box-shadow: 0 1rem 3rem rgba(40, 167, 69, 0.175) !important;
    transform: translateY(-2px);
}

/* Text Hover Effects */
.hover-text-primary:hover {
    color: var(--primary-green) !important;
    transition: color 0.3s ease;
}

.hover-text-success:hover {
    color: var(--success-green) !important;
    transition: color 0.3s ease;
}

.hover-text-warning:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}

/* Navigation Link Hover Effects */
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-green);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Button Hover Effects */
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

/* Tag Pills Hover */
.tag-pill:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.3) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Service Card Hover */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-overlay {
    transition: opacity 0.3s ease;
}

.hover-opacity-25:hover {
    opacity: 0.25 !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Category Card Hover */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Transition Classes */
.transition-all {
    transition: all 0.3s ease;
}

/* Responsive Text Sizing */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .search-input-group {
        max-width: 100% !important;
        margin: 0 1rem !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Shadows */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-tags .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem !important;
    }
    
    .tag-pill {
        display: block;
        text-align: center;
        width: 200px;
    }
}
