/**
 * Teachers Page Styles
 * 
 * Stunning design for teachers archive and single pages
 * 
 * @package PrepHub
 */

/* ============================================================
   TEACHERS ARCHIVE PAGE
============================================================ */

/* Hero Section */
.teachers-hero {
    background: linear-gradient(135deg, var(--color-deep-knowledge), var(--color-mindflow));
    padding: 6rem 0 3rem;
    text-align: center;
}

.teachers-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.teachers-hero__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.teachers-hero__title {
    font-size: 3rem;
    color: var(--color-pure-clarity);
    margin-bottom: 1rem;
}

.teachers-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Teachers Section */
.teachers-section {
    padding: 5rem 0 5rem;
}

/* Teachers Grid */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Teacher Card */
.teacher-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(32, 26, 66, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(32, 26, 66, 0.15);
}

.teacher-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Photo */
.teacher-card__photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f5f3ff 0%, #e9e5f5 100%);
}

.teacher-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.teacher-card:hover .teacher-card__image {
    transform: scale(1.05);
}

.teacher-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8469AB;
}

.teacher-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(32, 26, 66, 0.95), rgba(32, 26, 66, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.teacher-card:hover .teacher-card__overlay {
    opacity: 1;
}

.teacher-card__view-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.teacher-card:hover .teacher-card__view-profile {
    transform: translateY(0);
}

.teacher-card__experience {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #201A42;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teacher-card__experience svg {
    color: #8469AB;
}

/* Content */
.teacher-card__content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teacher-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.teacher-card__name a {
    color: #201A42;
    text-decoration: none;
    transition: color 0.3s ease;
}

.teacher-card__name a:hover {
    color: #8469AB;
}

.teacher-card__subjects {
    color: #8469AB;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-card__excerpt {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.teacher-card__courses {
    margin-bottom: 20px;
}

.teacher-card__courses-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F7F6FB;
    color: #201A42;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.teacher-card__courses-label svg {
    color: #8469AB;
}

.teacher-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3354A1;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.teacher-card__link:hover {
    gap: 12px;
}

/* Empty State */
.teachers-empty {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
}

.teachers-empty svg {
    margin-bottom: 24px;
    color: #CBD5E0;
}

.teachers-empty h2 {
    font-size: 1.75rem;
    color: #2D3748;
    margin-bottom: 12px;
}

/* CTA Section */
.teachers-cta {
    background: linear-gradient(135deg, #201A42 0%, #3354A1 100%);
    padding: 80px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.teachers-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.teachers-cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.teachers-cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.teachers-cta__text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ============================================================
   SINGLE TEACHER PAGE
============================================================ */

/* Hero Section */
.teacher-hero {
    background: linear-gradient(135deg, #F7F6FB 0%, #FFFFFF 100%);
    padding: 60px 0 80px;
    position: relative;
}

.teacher-hero__inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

/* Photo Wrapper */
.teacher-hero__photo-wrapper {
    position: relative;
}

.teacher-hero__photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(32, 26, 66, 0.15);
    background: linear-gradient(135deg, #f5f3ff 0%, #e9e5f5 100%);
}

.teacher-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

.teacher-hero__placeholder {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8469AB;
}

.teacher-hero__badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8469AB 0%, #3354A1 100%);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(132, 105, 171, 0.3);
    white-space: nowrap;
}

.teacher-hero__badge svg {
    fill: currentColor;
    stroke: none;
}

/* Hero Content */
.teacher-hero__content {
    padding-top: 20px;
}

.teacher-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
}

.teacher-hero__breadcrumb a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.teacher-hero__breadcrumb a:hover {
    color: #3354A1;
}

.teacher-hero__name {
    font-size: 3rem;
    font-weight: 700;
    color: #201A42;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.teacher-hero__subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.teacher-hero__subject-tag {
    background: linear-gradient(135deg, #8469AB 0%, #3354A1 100%);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-hero__tagline {
    font-size: 1.25rem;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Stats */
.teacher-hero__stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.teacher-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teacher-stat svg {
    color: #8469AB;
    flex-shrink: 0;
}

.teacher-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #201A42;
}

.teacher-stat span {
    display: block;
    font-size: 0.9rem;
    color: #718096;
}

.teacher-hero__cta {
    margin-top: 30px;
}

/* Bio Section */
.teacher-bio {
    padding: 80px 0;
}

.teacher-bio__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

.teacher-bio__content {
    max-width: 800px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #201A42;
    margin-bottom: 30px;
}

.teacher-bio__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
}

.teacher-bio__text p {
    margin-bottom: 20px;
}

.teacher-qualifications {
    margin-top: 50px;
    padding: 30px;
    background: #F7F6FB;
    border-radius: 16px;
    border-left: 4px solid #8469AB;
}

.teacher-qualifications h3 {
    font-size: 1.5rem;
    color: #201A42;
    margin-bottom: 16px;
}

.teacher-qualifications__content {
    color: #4A5568;
    line-height: 1.6;
}

.teacher-qualifications__content ul {
    list-style: none;
    padding: 0;
}

.teacher-qualifications__content li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
}

.teacher-qualifications__content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8469AB;
    font-weight: 700;
}

/* Contact Card */
.teacher-contact-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(32, 26, 66, 0.1);
    position: sticky;
    top: 100px;
}

.teacher-contact-card h3 {
    font-size: 1.5rem;
    color: #201A42;
    margin-bottom: 20px;
}

.teacher-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #E2E8F0;
}

.teacher-contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.teacher-contact-item svg {
    color: #8469AB;
    flex-shrink: 0;
}

.teacher-contact-item a {
    color: #4A5568;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    word-break: break-all;
}

.teacher-contact-item a:hover {
    color: #3354A1;
}

/* Courses Section */
.teacher-courses {
    background: #F7F6FB;
    padding: 80px 0;
}

.teacher-courses__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.teacher-courses__header p {
    font-size: 1.15rem;
    color: #718096;
}

.teacher-courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Mini Course Card */
.course-card-mini {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(32, 26, 66, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(32, 26, 66, 0.12);
}

.course-card-mini__image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.course-card-mini__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card-mini:hover .course-card-mini__image img {
    transform: scale(1.05);
}

.course-card-mini__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-mini__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-card-mini__title a {
    color: #201A42;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-card-mini__title a:hover {
    color: #8469AB;
}

.course-card-mini__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.course-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #718096;
}

.course-meta-item svg {
    color: #8469AB;
}

.course-card-mini__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.course-card-mini__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #201A42;
}

.course-card-mini__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3354A1;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.course-card-mini__link:hover {
    gap: 10px;
}

.teacher-courses__cta {
    text-align: center;
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */

@media (max-width: 1024px) {
    .teacher-hero__inner {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }
    
    .teacher-bio__grid {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .teachers-hero {
        padding: 5rem 0 2rem;
    }
    
    .teachers-hero__title {
        font-size: 2.25rem;
    }
    
    .teachers-hero__subtitle {
        font-size: 1.125rem;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .teachers-cta__title {
        font-size: 2rem;
    }
    
    /* Single Teacher */
    .teacher-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .teacher-hero__photo-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .teacher-hero__name {
        font-size: 2.25rem;
    }
    
    .teacher-hero__stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .teacher-bio__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .teacher-contact-card {
        position: static;
    }
    
    .teacher-courses__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .teachers-hero__title {
        font-size: 2rem;
    }
    
    .teacher-hero__name {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
}

/* ============================================================
   BUTTON STYLES (if not already defined)
============================================================ */

.btn--large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}
