/* Beeplug - Swiss Service Marketplace */
/* Yellow and Black Theme Colors */
:root {
    --bee-yellow: #FFD700;
    --bee-black: #1A1A1A;
    --bee-yellow-light: #FFED4E;
    --bee-yellow-dark: #E6C200;
    --bee-gray: #F8F9FA;
    --bee-hover: rgba(255, 215, 0, 0.1);
}

/* Override Bootstrap primary colors */
.btn-primary {
    background-color: var(--bee-yellow);
    border-color: var(--bee-yellow);
    color: var(--bee-black);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--bee-yellow-dark);
    border-color: var(--bee-yellow-dark);
    color: var(--bee-black);
}

.btn-outline-primary {
    color: var(--bee-yellow);
    border-color: var(--bee-yellow);
}

.btn-outline-primary:hover {
    background-color: var(--bee-yellow);
    border-color: var(--bee-yellow);
    color: var(--bee-black);
}

.bg-primary {
    background-color: var(--bee-yellow) !important;
    color: var(--bee-black) !important;
}

.text-primary {
    color: var(--bee-yellow) !important;
}

.badge.bg-primary {
    background-color: var(--bee-yellow) !important;
    color: var(--bee-black) !important;
}

.navbar-brand {
    color: var(--bee-yellow) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand .logo-text {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Mobile-specific logo styling */
@media (max-width: 767px) {
    .navbar-brand .logo-text {
        color: white !important;
        font-weight: bold;
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
}

/* Language Switcher Dropdown */
.nav-item.dropdown .dropdown-menu {
    min-width: 160px;
}

.nav-item.dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.nav-item.dropdown .dropdown-item:hover {
    background-color: var(--bee-yellow);
    color: var(--bee-black);
}



/* Swiss-inspired enhancements */
.swiss-flag {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background: #FF0000;
    position: relative;
    margin-left: 0.5rem;
}

.swiss-flag::before,
.swiss-flag::after {
    content: '';
    position: absolute;
    background: white;
}

.swiss-flag::before {
    width: 0.8rem;
    height: 0.2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swiss-flag::after {
    width: 0.2rem;
    height: 0.8rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bee-themed enhancements */
.bee-icon {
    color: var(--bee-yellow);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Enhanced Category Card Animations */
.category-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #333 !important;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease-in-out;
    z-index: 1;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: var(--bee-yellow);
    background: linear-gradient(145deg, #ffffff, #fffdf5);
    color: #333 !important;
}

.category-card .card-body {
    position: relative;
    z-index: 2;
    color: #333 !important;
}

.category-card .card-text {
    color: #666 !important;
}

.category-card:hover .card-text {
    color: #555 !important;
}

/* Animated Category Icons */
.category-icon {
    transition: all 0.3s ease-in-out;
    position: relative;
    display: inline-block;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--bee-yellow-dark) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
}

/* Bouncing Animation for Icons */
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.category-card:hover .category-icon {
    animation: bounce 0.8s ease-in-out;
}

/* Pulse Effect for Bee Icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bee-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Text Effect */
.category-card .card-title {
    transition: all 0.3s ease-in-out;
    position: relative;
    color: #333 !important;
}

.category-card:hover .card-title {
    color: var(--bee-black) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 600;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.category-skeleton {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
}

/* Floating Animation for Featured Services */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

.service-float:hover {
    animation: float 3s ease-in-out infinite;
}

/* Specific Icon Animations */
.category-card:hover .fa-home {
    animation: bounce 0.8s ease-in-out, wobble 1s ease-in-out 0.2s;
}

.category-card:hover .fa-window-restore {
    animation: bounce 0.8s ease-in-out, shine 1.5s ease-in-out 0.3s;
}

.category-card:hover .fa-seedling {
    animation: bounce 0.8s ease-in-out, grow 1.2s ease-in-out 0.2s;
}

.category-card:hover .fa-laptop {
    animation: bounce 0.8s ease-in-out, screen-glow 2s ease-in-out 0.4s;
}

.category-card:hover .fa-tools {
    animation: bounce 0.8s ease-in-out, rotate-tools 1s ease-in-out 0.3s;
}

.category-card:hover .fa-paw {
    animation: bounce 0.8s ease-in-out, paw-print 1.5s ease-in-out 0.2s;
}

.category-card:hover .fa-graduation-cap {
    animation: bounce 0.8s ease-in-out, tip-hat 1s ease-in-out 0.4s;
}

.category-card:hover .fa-truck {
    animation: bounce 0.8s ease-in-out, drive 2s ease-in-out 0.3s;
}

/* Custom Keyframe Animations */
@keyframes wobble {
    0% { transform: scale(1.2) rotate(5deg); }
    25% { transform: scale(1.25) rotate(-3deg); }
    50% { transform: scale(1.2) rotate(2deg); }
    75% { transform: scale(1.25) rotate(-1deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes shine {
    0% { filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4)); }
    50% { filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.8)); }
    100% { filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4)); }
}

@keyframes grow {
    0% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.4) rotate(8deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes screen-glow {
    0% { color: var(--bee-yellow-dark); }
    50% { color: #00ff88; }
    100% { color: var(--bee-yellow-dark); }
}

@keyframes rotate-tools {
    0% { transform: scale(1.2) rotate(5deg); }
    25% { transform: scale(1.25) rotate(15deg); }
    50% { transform: scale(1.2) rotate(25deg); }
    75% { transform: scale(1.25) rotate(15deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes paw-print {
    0% { transform: scale(1.2) rotate(5deg); }
    25% { transform: scale(1.1) rotate(-2deg); }
    50% { transform: scale(1.3) rotate(8deg); }
    75% { transform: scale(1.15) rotate(-1deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes tip-hat {
    0% { transform: scale(1.2) rotate(5deg); }
    30% { transform: scale(1.25) rotate(-5deg) translateY(-3px); }
    60% { transform: scale(1.2) rotate(10deg) translateY(-1px); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes drive {
    0% { transform: scale(1.2) rotate(5deg) translateX(0); }
    25% { transform: scale(1.25) rotate(2deg) translateX(2px); }
    50% { transform: scale(1.2) rotate(8deg) translateX(-1px); }
    75% { transform: scale(1.25) rotate(3deg) translateX(3px); }
    100% { transform: scale(1.2) rotate(5deg) translateX(0); }
}

/* Staggered Animation Delays */
.col-md-3:nth-child(1) .category-card {
    animation-delay: 0s;
}

.col-md-3:nth-child(2) .category-card {
    animation-delay: 0.1s;
}

.col-md-3:nth-child(3) .category-card {
    animation-delay: 0.2s;
}

.col-md-3:nth-child(4) .category-card {
    animation-delay: 0.3s;
}

/* Enhanced Hover States for Interactive Elements */
.btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Loading States with Bee Theme */
.loading-bee {
    display: inline-block;
    animation: bee-fly 2s ease-in-out infinite;
}

@keyframes bee-fly {
    0% { transform: translateX(-10px) rotate(-5deg); }
    25% { transform: translateX(5px) rotate(2deg); }
    50% { transform: translateX(10px) rotate(-2deg); }
    75% { transform: translateX(-5px) rotate(3deg); }
    100% { transform: translateX(-10px) rotate(-5deg); }
}

.service-item:last-child {
    border-bottom: none !important;
}

.request-item:last-child {
    border-bottom: none !important;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Mobile category cards */
    .category-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile hero section */
    .bg-primary .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Mobile search form */
    .quick-search .col-md-6,
    .quick-search .col-md-4,
    .quick-search .col-md-2 {
        margin-bottom: 1rem;
    }
    
    /* Mobile buttons */
    .d-flex.gap-3 {
        justify-content: center;
    }
    
    .d-flex.gap-3 .btn {
        flex: 1;
        min-width: 150px;
    }
    
    /* Mobile service cards */
    .service-float {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile navigation */
    .navbar-nav .dropdown-menu {
        background-color: #343a40;
        border: 1px solid #495057;
    }
    
    .navbar-nav .dropdown-item {
        color: #ffffff;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: var(--bee-yellow);
        color: var(--bee-black);
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .category-card .card-body {
        padding: 1rem 0.5rem;
    }
    
    .category-icon {
        font-size: 1.5rem !important;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .category-card {
        min-height: 200px;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Card hover effects */
.card {
    transition: box-shadow 0.15s ease-in-out;
    background-color: #ffffff;
    color: #333;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Force text colors for better readability */
.card .card-title,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #333 !important;
}

.card .card-text {
    color: #666 !important;
}

.text-muted {
    color: #666 !important;
}

/* Fix text contrast on light backgrounds */
.bg-light {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: #333 !important;
}

.bg-light p, .bg-light .text-muted {
    color: #666 !important;
}

/* Provider profile enhancements */
.provider-avatar {
    width: 80px;
    height: 80px;
    background: var(--bs-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Service status badges */
.badge {
    font-size: 0.75em;
}

/* Search result improvements */
.search-result-card {
    border-left: 4px solid var(--bs-primary);
}

/* Footer adjustments */
footer {
    margin-top: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
