/**
 * Mentor Browser Styles
 * Stunning design for mentor discovery and browsing
 *
 * @package EduBooking_Pro
 * @version 2.2.0
 */

/* ============================================
   Browser Container
   ============================================ */

.ebp-mentor-browser {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   Header Section
   ============================================ */

.ebp-browser-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ebp-browser-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ebp-browser-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.ebp-browser-title {
    position: relative;
    z-index: 1;
}

.ebp-browser-title h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
}

.ebp-browser-title p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ============================================
   Search & Filter Controls
   ============================================ */

.ebp-browser-controls {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.ebp-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ebp-search-box input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ebp-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ebp-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ebp-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ebp-search-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ebp-filter-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ebp-filter-group {
    flex: 1;
    min-width: 200px;
}

.ebp-filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.ebp-filter-group label .dashicons {
    color: #667eea;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebp-filter {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s ease;
}

.ebp-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-clear-filters {
    padding: 12px 24px;
    height: fit-content;
}

/* ============================================
   Results Info
   ============================================ */

.ebp-results-info {
    margin-bottom: 24px;
    padding: 12px 0;
}

.ebp-results-count {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

/* ============================================
   Mentors Grid
   ============================================ */

.ebp-mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ebp-layout-list .ebp-mentor-card {
    display: flex;
    flex-direction: row;
}

/* ============================================
   Mentor Cards
   ============================================ */

.ebp-mentor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.ebp-mentor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.ebp-mentor-card-header {
    padding: 30px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.ebp-mentor-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.ebp-mentor-avatar img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ebp-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ebp-badge.ebp-badge-top {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.ebp-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.ebp-mentor-basic-info h3.ebp-mentor-name {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.ebp-mentor-expertise {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.ebp-mentor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.ebp-stars {
    display: flex;
    gap: 2px;
}

.ebp-stars .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebp-star-active {
    color: #fbbf24;
}

.ebp-star-half {
    color: #fbbf24;
}

.ebp-star-empty {
    color: #d1d5db;
}

.ebp-rating-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 15px;
}

.ebp-rating-count {
    color: #6b7280;
    font-size: 13px;
}

/* Card Body */
.ebp-mentor-card-body {
    padding: 24px;
}

.ebp-mentor-bio {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.ebp-mentor-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ebp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.ebp-meta-item .dashicons {
    color: #667eea;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ebp-mentor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ebp-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.ebp-tag.ebp-tag-more {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* Card Footer */
.ebp-mentor-card-footer {
    padding: 20px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ebp-mentor-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ebp-price-label {
    font-size: 12px;
    color: #6b7280;
}

.ebp-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.ebp-price-unit {
    font-size: 13px;
    color: #6b7280;
}

.ebp-mentor-actions {
    flex-shrink: 0;
}

.ebp-view-mentor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
}

.ebp-view-mentor .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ============================================
   Loading & Empty States
   ============================================ */

.ebp-loading {
    text-align: center;
    padding: 60px 20px;
}

.ebp-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.ebp-loading p {
    color: #6b7280;
    font-size: 15px;
}

.ebp-no-mentors {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.ebp-no-mentors-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebp-no-mentors-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.ebp-no-mentors h3 {
    font-size: 24px;
    color: #374151;
    margin: 0 0 12px 0;
}

.ebp-no-mentors p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.ebp-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.ebp-btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Mentor Detail Page
   ============================================ */

.ebp-mentor-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.ebp-back-navigation {
    margin-bottom: 24px;
}

.ebp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ebp-back-link:hover {
    gap: 12px;
    color: #764ba2;
}

.ebp-back-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebp-mentor-detail-header {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.ebp-mentor-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.ebp-mentor-detail-avatar img {
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ebp-mentor-detail-info {
    position: relative;
    z-index: 1;
}

.ebp-mentor-detail-info h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.ebp-mentor-title {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.ebp-mentor-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.ebp-meta-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fffbeb;
    border-radius: 10px;
    border: 2px solid #fde68a;
}

.ebp-meta-rating strong {
    font-size: 18px;
    color: #92400e;
}

.ebp-meta-rating span {
    color: #92400e;
    font-size: 14px;
}

.ebp-meta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ebp-meta-badge .dashicons {
    color: #667eea;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebp-mentor-social {
    display: flex;
    gap: 12px;
}

.ebp-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ebp-social-link:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.ebp-social-link .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ebp-mentor-detail-cta {
    text-align: right;
    position: relative;
    z-index: 1;
}

.ebp-price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ebp-price-label {
    font-size: 13px;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
}

.ebp-price-main {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.ebp-price-main span {
    font-size: 20px;
    font-weight: 500;
}

.ebp-price-alt {
    font-size: 14px;
    opacity: 0.9;
}

/* Statistics Bar */
.ebp-mentor-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ebp-stat-item {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ebp-stat-item:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ebp-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 8px;
}

.ebp-stat-label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Detail Content */
.ebp-mentor-detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.ebp-mentor-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ebp-detail-section {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ebp-detail-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.ebp-detail-section h2 .dashicons {
    color: #667eea;
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.ebp-section-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
}

.ebp-specializations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ebp-specialization-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #bfdbfe;
}

/* Services Grid */
.ebp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ebp-service-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ebp-service-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

.ebp-service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ebp-service-content {
    padding: 20px;
}

.ebp-service-content h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #1f2937;
}

.ebp-service-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ebp-service-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.ebp-service-duration,
.ebp-service-sessions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ebp-service-duration .dashicons,
.ebp-service-sessions .dashicons {
    color: #667eea;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebp-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ebp-service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
}

.ebp-service-features .dashicons {
    color: #10b981;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ebp-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.ebp-service-price {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.ebp-no-services {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Reviews */
.ebp-review-item {
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.ebp-review-item:last-child {
    margin-bottom: 0;
}

.ebp-review-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ebp-reviewer-avatar img {
    border-radius: 50%;
}

.ebp-reviewer-info strong {
    display: block;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 6px;
}

.ebp-review-rating {
    margin-bottom: 6px;
}

.ebp-review-date {
    font-size: 13px;
    color: #6b7280;
}

.ebp-review-content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.ebp-no-reviews {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Sidebar */
.ebp-mentor-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ebp-sidebar-widget {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ebp-sidebar-widget h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.ebp-sidebar-widget p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ebp-booking-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ebp-booking-widget h3 {
    color: #fff;
}

.ebp-booking-widget p {
    color: rgba(255, 255, 255, 0.9);
}

.ebp-response-time {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
}

.ebp-response-time .dashicons {
    color: #667eea;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ebp-response-time span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.ebp-guarantee-widget {
    border: 2px solid #d1fae5;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.ebp-guarantee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ebp-guarantee-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
}

.ebp-guarantee-list .dashicons {
    color: #10b981;
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .ebp-mentor-detail-content {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 968px) {
    .ebp-browser-title h1 {
        font-size: 32px;
    }

    .ebp-mentors-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .ebp-mentor-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ebp-mentor-detail-avatar {
        margin: 0 auto;
    }

    .ebp-mentor-detail-cta {
        text-align: center;
    }

    .ebp-price-display {
        display: inline-block;
    }

    .ebp-mentor-detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ebp-browser-header {
        padding: 40px 20px;
    }

    .ebp-browser-title h1 {
        font-size: 28px;
    }

    .ebp-browser-title p {
        font-size: 16px;
    }

    .ebp-browser-controls {
        padding: 20px;
    }

    .ebp-search-box {
        flex-direction: column;
    }

    .ebp-filter-bar {
        flex-direction: column;
    }

    .ebp-filter-group {
        width: 100%;
    }

    .ebp-mentors-grid {
        grid-template-columns: 1fr;
    }

    .ebp-mentor-detail-header {
        padding: 30px 20px;
    }

    .ebp-mentor-detail-info h1 {
        font-size: 28px;
    }

    .ebp-services-grid {
        grid-template-columns: 1fr;
    }

    .ebp-mentor-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ebp-browser-title h1 {
        font-size: 24px;
    }

    .ebp-mentor-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ebp-mentor-actions {
        width: 100%;
    }

    .ebp-view-mentor {
        width: 100%;
        justify-content: center;
    }

    .ebp-mentor-stats-bar {
        grid-template-columns: 1fr;
    }

    .ebp-detail-section {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .ebp-browser-controls,
    .ebp-mentor-actions,
    .ebp-back-navigation,
    .ebp-sidebar-widget {
        display: none;
    }
}
