/* Professionals Module Styles */

/* Tab styles for Tailwind compatibility */
.tab-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.tab-button:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

:root {
    --professionals-primary: #667eea;
    --professionals-secondary: #764ba2;
    --professionals-accent: #f093fb;
    --professionals-text: #1a202c;
    --professionals-light: #f7fafc;
    --professionals-border: #e2e8f0;
    --profile-primary: #667eea;
    --profile-secondary: #764ba2;
    --profile-accent: #f093fb;
    --profile-text: #1a202c;
    --profile-light: #f7fafc;
    --profile-border: #e2e8f0;
}

/* ===== PROFESSIONALS INDEX STYLES ===== */

/* Hero Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.professionals-hero {
    background: linear-gradient(135deg, var(--professionals-primary) 0%, var(--professionals-secondary) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.professionals-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.filter-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--professionals-border);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    color: var(--professionals-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-chip {
    background: var(--professionals-light);
    border: 1px solid var(--professionals-border);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--professionals-primary);
    color: white;
    border-color: var(--professionals-primary);
}

.professional-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--professionals-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.professional-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.professional-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--professionals-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.professional-verified {
    background: #10b981;
}

.professional-content {
    padding: 1.5rem;
}

.professional-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--professionals-text);
    margin-bottom: 0.5rem;
}

.professional-headline {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.professional-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.professional-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.professional-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--professionals-primary);
    margin-bottom: 1rem;
}

.professional-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-professional {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--professionals-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--professionals-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--professionals-primary);
    border: 1px solid var(--professionals-primary);
}

.btn-secondary:hover {
    background: var(--professionals-primary);
    color: white;
}

.professionals-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.quick-filters {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-tab {
    background: var(--professionals-light);
    border: 1px solid var(--professionals-border);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    color: var(--professionals-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--professionals-primary);
    color: white;
    border-color: var(--professionals-primary);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    color: var(--professionals-text);
    font-weight: 500;
}

.sort-dropdown {
    border: 1px solid var(--professionals-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
}

/* ===== PROFILE PAGE STYLES ===== */

.profile-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.profile-content {
    position: relative;
    z-index: 2;
    color: white;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-nav {
    background: white;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.nav-tabs {
    border: none;
    padding: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #718096;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
    background: var(--profile-primary);
    color: white;
}

.profile-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card {
    background: var(--profile-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--profile-border);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.service-title {
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--profile-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--profile-light);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card {
    background: var(--profile-light);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.875rem;
    color: #718096;
}

.booking-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 100px;
}

.booking-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-primary);
    margin-bottom: 1rem;
}

.booking-form .form-label {
    font-weight: 500;
    color: var(--profile-text);
    margin-bottom: 0.5rem;
}

.booking-form .form-control,
.booking-form .form-select {
    border: 1px solid var(--profile-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.btn-book {
    background: var(--profile-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-book:hover {
    background: var(--profile-secondary);
    transform: translateY(-1px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--profile-light);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ===== UTILITY CLASSES ===== */

/* Lucide Icon Sizes */
.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

/* Favorite Button */
.favorite-btn {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: none;
    color: white;
    padding: 0.5rem;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #ff6b6b;
}

/* List View Styles */
.list-view {
    display: block;
}

.list-view .professional-card {
    display: flex;
    margin-bottom: 1.5rem;
}

.list-view .professional-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.list-view .professional-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-view .professional-actions {
    flex-direction: row;
    margin-top: auto;
}

/* Tab Navigation Enhancement */
.nav-tabs .nav-link i {
    width: 1rem;
    height: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--professionals-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Form Enhancements */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    .professionals-hero {
        padding: 2rem 0;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .professional-actions {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-hero {
        height: 300px;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .profile-nav {
        margin-top: -1rem;
    }
    
    .booking-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .list-view .professional-card {
        flex-direction: column;
    }
    
    .list-view .professional-image {
        width: 100%;
        height: 200px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-tab {
        flex-shrink: 0;
    }
}