/* ==========================================================================
   EduSphere Pro - Dedicated Marketplace, Category Hubs & Flow Stylesheet
   Covers Hubs, Search Sidebar, Booking Wizard, Live Class, Jobs & Checkout
   Palette: Deep Teal (#218DAE), Bright Cyan (#2BBBD7),
   Soft Yellow (#FCE59A), Golden Yellow (#FFD758), Dark Text (#17323A)
   ========================================================================== */

/* Category Hub Hero */
.hub-hero {
  background: linear-gradient(135deg, #17323A 0%, #218DAE 100%);
  color: #FFFFFF;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.hub-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(43, 187, 215, 0.25) 0%, rgba(33, 141, 174, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.hub-breadcrumb a {
  color: #FCE59A;
  text-decoration: none;
  font-weight: 500;
}

.hub-breadcrumb a:hover {
  text-decoration: underline;
}

.hub-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.hub-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  line-height: 1.5;
  margin-bottom: 24px;
}

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

.hub-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-tag:hover {
  background: #FFD758;
  color: #17323A;
  border-color: #FFD758;
}

/* Category Grid & Subcategory Blocks */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}

.subcat-card {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.subcat-card:hover {
  border-color: #2BBBD7;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(33, 141, 174, 0.08);
}

.subcat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.subcat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #EBF8FA;
  color: #218DAE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.subcat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #17323A;
}

.subcat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.subcat-list li {
  font-size: 0.9rem;
  color: #607780;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subcat-list li::before {
  content: "•";
  color: #2BBBD7;
  font-weight: bold;
}

.subcat-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: #218DAE;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Marketplace 2-Column Search Layout */
.marketplace-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0 64px;
}

.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #E4ECEF;
  margin-bottom: 20px;
}

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

.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #17323A;
  margin-bottom: 12px;
  display: block;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #607780;
  cursor: pointer;
}

.filter-label input[type="checkbox"],
.filter-label input[type="radio"] {
  accent-color: #218DAE;
  width: 16px;
  height: 16px;
}

/* Tutor Result Cards */
.tutor-card {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 24px;
  align-items: start;
}

.tutor-card:hover {
  border-color: #2BBBD7;
  box-shadow: 0 6px 20px rgba(23, 50, 58, 0.06);
}

.tutor-avatar-wrap {
  text-align: center;
}

.tutor-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #EBF8FA;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0E9F6E;
  background: #DEF7EC;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-top: 8px;
}

.tutor-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #17323A;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutor-headline {
  font-size: 0.95rem;
  color: #218DAE;
  font-weight: 600;
  margin-bottom: 8px;
}

.tutor-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: #607780;
  margin-bottom: 12px;
}

.tutor-bio-snippet {
  font-size: 0.9rem;
  color: #607780;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tutor-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tutor-pill {
  background: #F8FBFB;
  border: 1px solid #E4ECEF;
  color: #17323A;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.tutor-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  border-left: 1px solid #E4ECEF;
  padding-left: 20px;
}

.tutor-rate-box {
  text-align: right;
  margin-bottom: 16px;
}

.tutor-rate-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #17323A;
}

.tutor-rate-unit {
  font-size: 0.85rem;
  color: #607780;
}

.tutor-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Simulated Live Classroom Interface */
.live-classroom-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100vh - 76px);
  background: #0F172A;
  color: #FFFFFF;
  overflow: hidden;
}

.live-stage-area {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #090D16;
}

.video-view-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.mock-screen-stream {
  width: 100%;
  max-width: 900px;
  height: 85%;
  background: #1E293B;
  border-radius: 12px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mock-cam-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 180px;
  height: 120px;
  background: #334155;
  border-radius: 8px;
  border: 2px solid #2BBBD7;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.mock-cam-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-controls-bar {
  min-height: 84px;
  background: #111827;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
}

.control-btn {
  background: #273449;
  border: 1px solid #3A4A61;
  color: #FFFFFF;
  min-width: 72px;
  height: 58px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: #34445D;
  border-color: #5B6B83;
  transform: translateY(-1px);
}

.control-btn.active {
  background: #155E75;
  border-color: #2BBBD7;
}

.control-btn.danger {
  background: #991B1B;
  border-color: #EF4444;
}

.control-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.control-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-label {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.leave-control {
  margin-left: 8px;
}

@media (max-width: 640px) {
  .live-controls-bar {
    gap: 6px;
    padding: 10px 8px;
  }

  .control-btn {
    min-width: 58px;
    height: 54px;
  }

  .control-label {
    font-size: 0.6rem;
  }

  .leave-control {
    margin-left: 2px;
  }
}

.live-sidebar-panel {
  background: #1E293B;
  border-left: 1px solid #334155;
  display: flex;
  flex-direction: column;
}

.live-panel-tabs {
  display: flex;
  border-bottom: 1px solid #334155;
}

.live-tab-btn {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  color: #94A3B8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.live-tab-btn.active {
  color: #2BBBD7;
  border-bottom-color: #2BBBD7;
  background: rgba(43, 187, 215, 0.05);
}

.live-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-chat-bubble {
  background: #334155;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.live-chat-sender {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2BBBD7;
  margin-bottom: 4px;
}

.live-chat-input-row {
  padding: 16px;
  border-top: 1px solid #334155;
  display: flex;
  gap: 8px;
}

/* Demo Booking Wizard */
.wizard-card {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 16px;
  padding: 36px;
  max-width: 720px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(23, 50, 58, 0.05);
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #607780;
  font-weight: 600;
  z-index: 1;
}

.wizard-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E4ECEF;
  color: #17323A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wizard-step-item.active .wizard-step-num {
  background: #218DAE;
  color: #FFFFFF;
}

.wizard-step-item.completed .wizard-step-num {
  background: #0E9F6E;
  color: #FFFFFF;
}

/* Checkout and Receipts */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin: 40px 0 64px;
}

.order-summary-box {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}

.receipt-card {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 16px;
  max-width: 600px;
  margin: 48px auto;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(23, 50, 58, 0.05);
}

.receipt-check-icon {
  width: 72px;
  height: 72px;
  background: #DEF7EC;
  color: #0E9F6E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* Tutor Jobs & Leads Board */
.job-card {
  background: #FFFFFF;
  border: 1px solid #E4ECEF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.job-card:hover {
  border-color: #2BBBD7;
  box-shadow: 0 6px 18px rgba(33, 141, 174, 0.06);
}

.job-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.job-badge-tag {
  background: #EBF8FA;
  color: #218DAE;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Admin Dashboard Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #E4ECEF;
  font-size: 0.9rem;
}

.admin-table th {
  background: #F8FBFB;
  color: #17323A;
  font-weight: 700;
}

@media (max-width: 991px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
  .tutor-card {
    grid-template-columns: 1fr;
  }
  .tutor-action-col {
    border-left: none;
    padding-left: 0;
    align-items: flex-start;
    border-top: 1px solid #E4ECEF;
    padding-top: 16px;
  }
  .live-classroom-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
