/* Mentorship Page Styles - Material Design 3 */

:root {
    --md-sys-color-primary: #0b57d0;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #d3e3fd;
    --md-sys-color-on-primary-container: #041e49;
    --md-sys-color-secondary: #00639b;
    --md-sys-color-secondary-container: #c2e7ff;
    --md-sys-color-background: #ffffff;
    --md-sys-color-surface: #f8f9fa;
    --md-sys-color-surface-variant: #e1e3e1;
    --md-sys-color-outline: #747775;
    --md-sys-color-on-surface: #1f1f1f;
    --md-sys-color-on-surface-variant: #444746;
    --md-elevation-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --md-elevation-2: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);

    --md-shape-corner-extra-large: 28px;
    --md-shape-corner-medium: 12px;
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 8rem;
    text-align: center;
    background: radial-gradient(circle at 60% 30%, #e8f0fe 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Google Sans', 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process Section */
.process-section {
    padding: 8rem 0;
    background: #fff;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 280px;
    padding: 2rem;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--md-sys-color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 4px solid #fff;
    box-shadow: var(--md-elevation-1);
    transition: all 0.3s;
}

.step-card:hover .step-icon {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--md-sys-color-on-surface);
}

/* Mentor Spotlight */
.spotlight-section {
    padding: 6rem 0;
    background: var(--md-sys-color-surface);
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mentor-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--md-elevation-2);
}

.mentor-header {
    height: 120px;
    background: linear-gradient(135deg, #1a73e8, #8ab4f8);
    position: relative;
}

.mentor-avatar {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: -50px;
    left: 2rem;
    border: 4px solid #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.mentor-body {
    padding: 4rem 2rem 2rem;
}

.mentor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
}

.mentor-role {
    color: var(--md-sys-color-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.mentor-bio {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.mentor-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--md-sys-color-surface);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #5f6368;
}

.book-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 100px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.book-btn:hover {
    background: var(--md-sys-color-primary-container);
    border-color: transparent;
    color: var(--md-sys-color-on-primary-container);
}

/* Booking Modal */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.booking-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.booking-modal-overlay.active .booking-modal {
    transform: scale(1);
}

.calendar-mock {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: left;
}

.time-slot {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.time-slot:hover,
.time-slot.selected {
    border-color: var(--md-sys-color-primary);
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 100px;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: transparent;
}

/* Success Stories */
.stories-section {
    padding: 8rem 0;
    background: #fff;
}

.story-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: var(--md-sys-color-surface);
    border-radius: 32px;
    padding: 4rem;
    margin-bottom: 2rem;
}

.story-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--md-sys-color-on-surface);
}

.story-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.story-stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--md-sys-color-primary);
}

.story-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Resource CTA */
.resource-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
}

.resource-content {
    max-width: 600px;
    margin: 0 auto;
}

.resource-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-desc {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.download-btn {
    padding: 14px 32px;
    background: #fff;
    color: #0b57d0;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: scale(1.05);
}

/* Animation utilities */
.hidden {
    display: none !important;
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Search Bar */
.search-container {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 48px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 100px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

.search-input:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px var(--md-sys-color-primary-container);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1.2rem;
}

/* Become a Mentor Section */
.become-mentor-section {
    padding: 6rem 0;
    margin: 4rem 2rem;
    background: #1f1f1f;
    border-radius: 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.become-mentor-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.become-mentor-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.become-mentor-desc {
    font-size: 1.1rem;
    color: #e3e3e3;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.apply-mentor-btn {
    padding: 14px 32px;
    background: var(--md-sys-color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-block;
}

.apply-mentor-btn:hover {
    background: #0b57d0;
}

.become-mentor-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Hero Section */
    .hero-section {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Stats Row */
    .stats-row {
        flex-direction: column;
        gap: 2rem;
    }

    /* Process Steps */
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
        /* Hide connector Line on mobile */
    }

    .step-card {
        width: 100%;
        max-width: 320px;
    }

    /* Mentors Grid is handled by auto-fit, but we can tune gap */
    .mentor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Success Stories */
    .stories-section {
        padding: 4rem 0;
    }

    .story-card {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .story-image {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .story-stats {
        justify-content: center;
    }

    /* Become a Mentor */
    .become-mentor-section {
        margin: 2rem 1rem;
        padding: 4rem 1rem;
    }

    .become-mentor-title {
        font-size: 2rem;
    }
}