/**
 * Modern Enhanced Homepage Styles
 * Improved hero section, search, and mentor display
 */

/* Enhanced Hero Section */
.hero-section-enhanced {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(79, 70, 229, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero-section-enhanced .hero-content {
    position: relative;
    z-index: 10;
}

.hero-section-enhanced .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-section-enhanced .hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Modern Search Box */
.search-box-enhanced {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.search-box-enhanced .search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 992px) {
    .search-box-enhanced .search-row {
        grid-template-columns: 1fr;
    }
}

.search-box-enhanced .search-field {
    position: relative;
}

.search-box-enhanced .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.25rem;
    pointer-events: none;
}

.search-box-enhanced input,
.search-box-enhanced select {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.875rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box-enhanced select {
    padding-left: 1rem;
}

.search-box-enhanced input:focus,
.search-box-enhanced select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-box-enhanced .btn-search {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-box-enhanced .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Animated Background Elements */
.hero-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, white 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, white 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-shape.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, white 0%, transparent 70%);
    bottom: 20%;
    left: 40%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Mentor Grid Section */
.mentors-grid-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #F9FAFB 0%, white 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Mentor Cards */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mentor-card-enhanced {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E5E7EB;
    position: relative;
    cursor: pointer;
}

.mentor-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #4F46E5;
}

.mentor-card-enhanced .mentor-image-container {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    overflow: hidden;
}

.mentor-card-enhanced .mentor-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mentor-card-enhanced:hover .mentor-image-container img {
    transform: scale(1.08);
}

.mentor-card-enhanced .mentor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mentor-card-enhanced:hover .mentor-overlay {
    opacity: 1;
}

.mentor-card-enhanced .mentor-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mentor-card-enhanced .tag {
    background: white;
    color: #4F46E5;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mentor-card-enhanced .verified-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.mentor-card-enhanced .mentor-info {
    padding: 1.5rem;
}

.mentor-card-enhanced .mentor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mentor-card-enhanced .mentor-role {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.mentor-card-enhanced .mentor-company {
    font-size: 0.875rem;
    color: #4F46E5;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mentor-card-enhanced .mentor-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    margin-top: 1rem;
}

.mentor-card-enhanced .stat {
    display: flex;
    flex-direction: column;
}

.mentor-card-enhanced .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.mentor-card-enhanced .stat-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mentor-card-enhanced .mentor-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.mentor-card-enhanced .stars {
    color: #FBBF24;
    display: flex;
    gap: 0.125rem;
}

.mentor-card-enhanced .rating-value {
    font-weight: 600;
    color: #111827;
}

.mentor-card-enhanced .rating-count {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.mentor-card-enhanced .btn-book {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.mentor-card-enhanced .btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Featured Mentor Highlight */
.mentor-card-enhanced.featured {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
}

.mentor-card-enhanced.featured .mentor-name,
.mentor-card-enhanced.featured .mentor-role,
.mentor-card-enhanced.featured .stat-value {
    color: white;
}

.mentor-card-enhanced.featured .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.mentor-card-enhanced.featured .mentor-stats {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-section .filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.filter-section .filter-group {
    margin-bottom: 1.5rem;
}

.filter-section .filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-section .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-section .filter-chip {
    padding: 0.5rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-section .filter-chip:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.filter-section .filter-chip.active {
    background: #4F46E5;
    border-color: #4F46E5;
    color: white;
}

/* Trust Indicators Section */
.trust-section {
    padding: 4rem 0;
    background: white;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-stat {
    padding: 2rem;
}

.trust-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.trust-stat .stat-description {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 500;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 9999px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-pill:hover {
    border-color: #4F46E5;
    color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.category-pill.active {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-color: transparent;
    color: white;
}

.category-pill .icon {
    font-size: 1.25rem;
}

/* Loading States */
.skeleton-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.skeleton-image {
    height: 280px;
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section-enhanced {
        padding: 4rem 0 3rem;
    }
    
    .mentor-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
