/*
Theme Name: Evde Özel Ders
Theme URI: https://www.evdeozelders.com
Author: Evde Özel Ders Geliştirici Ekibi
Author URI: https://www.evdeozelders.com
Description: Özel Ders Platformu için Premium, Modern ve Hızlı WordPress Teması. Öğretmen & Öğrenci üyelik sistemi, site içi mesajlaşma ve değerlendirme özellikleri barındırır.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evdeozelders
*/

/* ----------------------------------------------------
   1. GLOBAL VARIABLES & DESIGN SYSTEM
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #e0e7ff;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --secondary-light: #fce7f3;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(99, 102, 241, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 10px 10px -6px rgba(99, 102, 241, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Outfit', sans-serif;
    --max-width: 1280px;
}

/* ----------------------------------------------------
   2. RESET & BASE STYLES
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Helper utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ----------------------------------------------------
   3. BUTTONS & CHIPS
---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.03);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-whatsapp:hover {
    background-color: #059669;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
}

/* ----------------------------------------------------
   4. NAVIGATION HEADER
---------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--dark-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ----------------------------------------------------
   5. HOME PAGE (FRONT PAGE)
---------------------------------------------------- */
/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent 45%);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* Search Engine Bar */
.search-container {
    max-width: 950px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 8px;
}

.search-field-group {
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
    padding: 8px 16px;
}

.search-field-group:nth-child(3) {
    border-right: none;
}

.search-field-group svg {
    color: var(--primary);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-field-group input,
.search-field-group select {
    border: none;
    width: 100%;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.search-form button {
    border: none;
    padding: 14px 32px;
}

/* Categories / Subjects */
.subjects-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.subject-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.subject-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.25rem;
}

.subject-card h4 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.subject-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Featured Teachers */
.featured-teachers {
    padding: 80px 0;
}

/* ----------------------------------------------------
   6. TEACHER DIRECTORY & FILTERS (ARCHIVE)
---------------------------------------------------- */
.search-results-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 40px 0 80px;
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-reset {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-reset:hover {
    color: var(--secondary);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--dark-muted);
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--light);
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: var(--primary);
    background-color: var(--white);
}

.price-range-inputs {
    display: flex;
    gap: 10px;
}

.price-range-inputs input {
    width: 50%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--light);
    text-align: center;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Teacher Card */
.teacher-grid-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.teacher-avatar-col {
    position: relative;
    flex-shrink: 0;
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: var(--light);
}

.teacher-status-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.teacher-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.teacher-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.teacher-name a {
    color: inherit;
}

.teacher-name a:hover {
    color: var(--primary);
}

.teacher-subject {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}

.teacher-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.teacher-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.teacher-bio-short {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teacher-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.teacher-price strong {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 700;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
    font-weight: 600;
    font-size: 0.9rem;
}

.rating-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

/* ----------------------------------------------------
   7. SINGLE TEACHER PROFILE PAGE
---------------------------------------------------- */
.teacher-profile-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    padding: 40px 0 80px;
}

.profile-main-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.profile-hero {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-big-avatar {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.profile-hero-info {
    flex-grow: 1;
}

.profile-hero-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.profile-title-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title svg {
    color: var(--primary);
}

.profile-about-content {
    font-size: 0.98rem;
    color: var(--dark-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Details Table/List */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item span:first-child {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.detail-item span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Contact Sidebar Card */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.contact-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.price-box {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.price-box span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Reviews and Comments Section */
.reviews-section {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.reviews-average-score {
    text-align: center;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 20px 30px;
    border-radius: var(--radius-md);
}

.reviews-average-score h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.reviews-average-score p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.comment-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.review-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 700;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-content {
    font-size: 0.92rem;
    color: var(--dark-muted);
}

/* Review Form */
.review-form-container {
    background-color: var(--light);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 30px;
}

.rating-picker {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--border-color);
    margin: 8px 0 20px;
}

.rating-picker span {
    cursor: pointer;
    transition: var(--transition);
}

.rating-picker span:hover,
.rating-picker span.active {
    color: var(--warning);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
}

/* ----------------------------------------------------
   8. LOGIN & REGISTER PAGES
---------------------------------------------------- */
.auth-page-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.05), transparent 45%),
                radial-gradient(circle at top left, rgba(236, 72, 153, 0.05), transparent 45%);
}

.auth-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.role-selector-tab {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--light);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.role-tab-btn {
    border: none;
    background: transparent;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.role-tab-btn.active {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.teacher-only-fields {
    border-top: 1px dashed var(--border-color);
    margin-top: 20px;
    padding-top: 20px;
}

.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   9. USER DASHBOARD (PANEL)
---------------------------------------------------- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 0 80px;
}

.dashboard-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
}

.dashboard-user-summary {
    text-align: center;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.dashboard-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
}

.dashboard-user-summary h4 {
    font-weight: 700;
    color: var(--dark);
}

.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--dark-muted);
    cursor: pointer;
    transition: var(--transition);
}

.dashboard-menu-item:hover,
.dashboard-menu-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dashboard-menu-item.logout {
    color: var(--secondary);
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.dashboard-menu-item.logout:hover {
    background-color: var(--secondary-light);
}

.dashboard-content-panel {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* Messaging System Interface */
.messaging-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 600px;
    overflow: hidden;
    background-color: var(--white);
}

.conversations-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--light);
}

.conversations-header {
    padding: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
}

.conversations-list {
    flex-grow: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--white);
}

.conversation-item:hover,
.conversation-item.active {
    background-color: var(--primary-light);
}

.conversation-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-item-details {
    flex-grow: 1;
    min-width: 0;
}

.conversation-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.conversation-item-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-box-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #fafafa;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    position: relative;
}

.chat-bubble.sent {
    background-color: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received {
    background-color: var(--white);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.chat-bubble-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    background-color: var(--white);
}

.chat-input-area textarea {
    flex-grow: 1;
    resize: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    height: 48px;
}

.chat-input-area button {
    padding: 0 24px;
    border: none;
}

/* ----------------------------------------------------
   10. MEDIA QUERIES (RESPONSIVE)
---------------------------------------------------- */
@media (max-width: 991px) {
    .search-results-layout,
    .teacher-profile-layout,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .sidebar-sticky {
        position: static;
        margin-top: 30px;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-field-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .site-header {
        height: 70px;
    }
    
    .main-nav {
        display: none; /* In production: add a burger menu toggle */
    }
    
    .teacher-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .teacher-meta-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .teacher-footer {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-title-badges {
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .messaging-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-sidebar.hidden-mobile {
        display: none;
    }
}
