/* live-tutors.css */

.tutors-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 80px;
}

.tutors-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 0;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1rem;
}

.search-box button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 1.2rem;
}

.quick-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Container */
.tutors-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    width: 300px;
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.filter-group h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.price-slider {
    margin: 1.5rem 0;
}

.price-slider .slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #eaeaea;
    outline: none;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--gray);
}

.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-btn {
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}

.rating-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-apply-filters {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
}

/* Tutors Main */
.tutors-main {
    flex: 1;
}

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

.sort-options select {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
}

/* Tutors Grid */
.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tutor-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #eaeaea;
}

.tutor-card:hover {
    transform: translateY(-5px);
}

.tutor-header {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tutor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tutor-info h3 {
    margin-bottom: 0.5rem;
}

.tutor-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--secondary);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.tutor-rating {
    color: #ffc107;
    margin-top: 0.5rem;
}

.tutor-body {
    padding: 1.5rem;
}

.tutor-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.subject-tag {
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: var(--primary);
    border-radius: 15px;
    font-size: 0.9rem;
}

.tutor-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.tutor-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutor-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.tutor-price span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: normal;
}

.btn-book {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-tutors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Booking Modal */
.booking-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.tutor-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.calendar input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

.time-slots {
    margin: 1.5rem 0;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.75rem;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    border-color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.session-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.detail-item select,
.detail-item input,
.detail-item textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.detail-item textarea {
    min-height: 100px;
    resize: vertical;
}

.booking-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.summary-item.total {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.btn-book-now {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* How It Works */
.how-it-works {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

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

.step {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .tutors-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .tutors-grid {
        grid-template-columns: 1fr;
    }
    
    .tutors-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}