/* MAT tokens: mat-design-tokens.css sayfada önce yüklenir; burada geriye dönük eşleme */
:root {
  --brand: var(--mat-accent-1, #e50914);
  --brand-dark: #b20710;
  --primary-color: var(--mat-accent-1, #e50914);
  --secondary-color: var(--mat-accent-2, #fafafa);
  --success-color: #059669;
  --danger-color: #b42318;
  --warning-color: #b45309;
  --dark-color: var(--mat-text, #0a0a0a);
  --light-color: #ffffff;
  --text-color: var(--mat-text, #0a0a0a);
  --bg-color: var(--mat-bg, #fafafa);
  --font-size-base: 15px;
  --font-size-sm: 0.875rem;
  --font-size-md: 0.95rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.35rem;
  --radius-md: 10px;
  --radius-lg: 14px;
  --card-bg: var(--mat-surface, #ffffff);
  --muted-text: var(--mat-muted, #737373);
  --border-color: var(--mat-border, #e5e5e5);
  --topbar-bg: var(--mat-surface, #ffffff);
  --topbar-fg: var(--mat-text, #181818);
  --app-surface: var(--mat-surface, #ffffff);
  --app-elev: var(--mat-shadow-md, 0 8px 28px rgba(24, 24, 24, 0.08));
  --app-radius: 16px;
  --app-gap: 14px;
  --tap-target: 44px;
  --nav-bg: rgba(255, 255, 255, 0.97);
  --nav-fg: #334155;
  --footer-bg: #0a0a0a;
  --footer-fg: #fafafa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-size: var(--font-size-md);
  color: var(--text-color);
  background: var(--bg-color);
  padding-top: 60px;
}

h1, .h1 { font-size: clamp(1.75rem, 2.4vw, 2.5rem); line-height: 1.2; }
h2, .h2 { font-size: clamp(1.4rem, 2vw, 1.95rem); line-height: 1.25; }
h3, .h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; }
p, .text-body { font-size: var(--font-size-md); }
small, .small { font-size: var(--font-size-sm); }

/* Topbar */
.topbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: var(--surface-0);
  color: var(--text-0);
  padding: 100px 0;
  margin-top: -76px;
  border-bottom: 3px solid #900216;
}

.hero-section h1 {
  color: var(--text-0);
  text-shadow: none;
}

.hero-image {
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Utility Classes */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1.5rem;
}

/* Dashboard Cards */
.dashboard-card {
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.dashboard-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dashboard-stat {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

/* Form Controls */
.form-control-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-control-lg:focus {
  border-color: #900216;
  box-shadow: 0 0 0 0.2rem rgba(144, 2, 22, 0.25);
}

.form-select-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-select-lg:focus {
  border-color: #900216;
  box-shadow: 0 0 0 0.2rem rgba(144, 2, 22, 0.25);
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
}

.btn-primary {
  background: #900216;
  border: none;
  color: white;
}

.btn-primary:hover {
  background: #7a0113;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(144, 2, 22, 0.4);
}

.btn-outline-primary {
  border: 2px solid #900216;
  color: #900216;
}

.btn-outline-primary:hover {
  background: #900216;
  color: white;
  transform: translateY(-2px);
}

/* Badges */
.badge {
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.78rem;
}

/* Mobile app shell */
.app-page {
  padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
}

.app-card {
  background: var(--app-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--app-radius);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
  padding: 14px;
}

/* Üye onboarding — paneldeki içerik merkezi ile aynı marka vurgusu */
.member-onboarding.app-card {
  border-left: 4px solid var(--brand-500, #900216);
  background: linear-gradient(
    180deg,
    rgba(144, 2, 22, 0.05) 0%,
    var(--app-surface) 48%
  );
}
.member-onboarding.app-card h6 i {
  color: var(--brand-500, #900216) !important;
}
[data-theme='dark'] .member-onboarding.app-card {
  background: linear-gradient(180deg, rgba(144, 2, 22, 0.12) 0%, var(--surface-0) 55%);
  border-left-color: var(--brand-500);
}

.app-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -6px 28px rgba(10, 11, 15, 0.12);
}

.app-tab {
  min-height: var(--tap-target);
  color: #6b7280;
  text-decoration: none;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.app-tab i {
  font-size: 1.05rem;
}

.app-tab:active {
  transform: scale(0.98);
}

.app-tab.active {
  color: var(--primary-color);
  background: rgba(144, 2, 22, 0.08);
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 0.92rem;
  }

  .hero-section {
    padding: 50px 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .card-img-top {
    height: 150px;
  }

  .app-bottom-nav {
    display: grid;
  }

  .btn,
  .btn-sm,
  .btn-lg {
    min-height: var(--tap-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .form-control,
  .form-select,
  .form-control-lg,
  .form-select-lg {
    min-height: var(--tap-target);
  }

  .table-responsive {
    border-radius: 14px;
  }
}

@media (hover: none) {
  .card:hover,
  .dashboard-card:hover,
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
    box-shadow: inherit;
  }
  .card:hover .card-img-top {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Video Player */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Theme */
[data-theme='dark'] {
  --text-color: #e5e7eb;
  --bg-color: #0f1115;
  --card-bg: #171a21;
  --muted-text: #9ca3af;
  --border-color: #2a2f39;
  --topbar-bg: #161922;
  --topbar-fg: #e5e7eb;
  --app-surface: #171a21;
  --app-elev: 0 8px 24px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(15, 20, 32, 0.95);
  --nav-fg: #e5e7eb;
  --footer-bg: #0e1320;
  --footer-fg: #dbe2ea;
}

[data-theme='dark'] body {
  background: var(--bg-color);
  color: var(--text-color);
}

[data-theme='dark'] .card,
[data-theme='dark'] .modal-content,
[data-theme='dark'] .list-group-item {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .text-muted {
  color: var(--muted-text) !important;
}

[data-theme='dark'] .form-control,
[data-theme='dark'] .form-select,
[data-theme='dark'] textarea {
  background: #11141b !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .table,
[data-theme='dark'] .table td,
[data-theme='dark'] .table th {
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .topbar {
  background: var(--topbar-bg) !important;
  color: var(--topbar-fg) !important;
}

/* Bootstrap utility compatibility in dark mode */
[data-theme='dark'] .bg-light,
[data-theme='dark'] .bg-white {
  background: var(--surface-2) !important;
  color: var(--text-0) !important;
}

[data-theme='dark'] .text-dark,
[data-theme='dark'] a.text-dark {
  color: var(--text-0) !important;
}

[data-theme='dark'] .btn-light {
  background: #1f2937 !important;
  color: var(--text-0) !important;
  border-color: var(--admin-border, var(--border-color)) !important;
}

[data-theme='dark'] .btn-outline-secondary {
  color: var(--text-1) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .card-header,
[data-theme='dark'] .card-footer,
[data-theme='dark'] .list-group-item {
  background: var(--surface-0) !important;
  color: var(--text-0) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .dropdown-menu {
  background: var(--surface-0) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .dropdown-item {
  color: var(--text-1) !important;
}

[data-theme='dark'] .dropdown-item:hover,
[data-theme='dark'] .dropdown-item:focus {
  background: rgba(144, 2, 22, 0.2) !important;
  color: #fca5b1 !important;
}

[data-theme='dark'] .app-bottom-nav {
  background: var(--nav-bg);
  border-top-color: var(--border-color);
}
[data-theme='dark'] .app-tab {
  color: #9ca3af;
}
[data-theme='dark'] .app-tab.active {
  color: #fca5b1;
  background: rgba(144, 2, 22, 0.25);
}

/* Progress Bar */
.progress {
  height: 10px;
  border-radius: 10px;
  background-color: #e5e7eb;
}

.progress-bar {
  border-radius: 10px;
  background: #900216;
}

/* Forms */
.form-control, .form-select {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #900216;
  box-shadow: 0 0 0 0.2rem rgba(144, 2, 22, 0.25);
}

/* Login Page */
.login-container {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background: #ffffff;
}

.login-card {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.login-header {
  background: #900216;
  color: white;
  padding: 30px;
  text-align: center;
}

/* Dashboard */
.dashboard-card {
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.dashboard-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.dashboard-stat {
  font-size: 2rem;
  font-weight: 700;
  color: #900216;
}

/* Badge renkleri */
.badge.bg-primary,
.badge.bg-success,
.badge.bg-info {
  background: #900216 !important;
}

.badge.bg-warning {
  background: #900216 !important;
  color: white;
}

.badge.bg-danger {
  background: #900216 !important;
}

/* Alert renkleri */
.alert-info {
  background: #f0f0f0;
  border-left: 4px solid #900216;
  color: #333;
}

.alert-warning {
  background: #fff3cd;
  border-left: 4px solid #900216;
  color: #333;
}

.alert-danger {
  background: #f8d7da;
  border-left: 4px solid #900216;
  color: #333;
}

.alert-success {
  background: #d4edda;
  border-left: 4px solid #900216;
  color: #333;
}

/* Unified surface tokens used by public + panel pages */
:root {
  --surface-0: #ffffff;
  --surface-1: #f8fafc;
  --surface-2: #f1f5f9;
  --text-0: #0f172a;
  --text-1: #334155;
  --text-2: #64748b;
  --brand-500: #900216;
  --brand-600: #7a0113;
  --ring-color: rgba(144, 2, 22, 0.2);
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.08);
  /* Content library / rail layout (WE / e‑learning style, brand unchanged) */
  --section-gap: 2.5rem;
  --section-gap-sm: 1.75rem;
  --rail-gap: 12px;
  --rail-card-min: 260px;
  --rail-card-min-sm: 240px;
  --chip-radius: 999px;
  --rail-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  --guest-cta-h: 56px;
  /* Wise&Rise-style ink (krom + derinlik; marka bordo ile birlikte) */
  --ink-950: #0a0b0f;
  --ink-900: #111318;
  --ink-850: #16181f;
  --ink-800: #1c1f2a;
  --ink-700: #252a38;
  --ink-muted: rgba(255, 255, 255, 0.65);
}

/* Ana sayfa gövdesi — hafif yüzey (WE / uygulama hissi) */
body.home-page {
  background: var(--surface-1);
}
[data-theme='dark'] body.home-page {
  background: #0f172a;
}

/* ─── Section headings (library-style rails) ─── */
.section-heading {
  margin-bottom: var(--section-gap-sm);
}
.section-heading--center {
  text-align: center;
}
.section-heading__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 0.5rem;
}
.section-heading__line {
  width: 48px;
  height: 4px;
  background: var(--brand-500);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.section-heading--center .section-heading__line {
  margin-left: auto;
  margin-right: auto;
}
.section-heading__title {
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.section-heading__subtitle {
  color: var(--text-2);
  font-size: 1.02rem;
  margin-bottom: 0;
  max-width: 42rem;
}
.section-heading--center .section-heading__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.page-hero .section-heading__eyebrow {
  color: rgba(255, 255, 255, 0.92);
}
.page-hero .section-heading__line {
  background: rgba(255, 255, 255, 0.88);
}
.page-hero .section-heading__title {
  color: #fff;
}
.page-hero .section-heading__subtitle {
  color: rgba(255, 255, 255, 0.78);
}

/* Horizontal content rail (scroll-snap) */
.content-rail {
  position: relative;
  margin-left: calc(-1 * var(--rail-gap));
  margin-right: calc(-1 * var(--rail-gap));
  padding: 4px var(--rail-gap) 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.content-rail:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}
.content-rail__track {
  display: flex;
  gap: var(--rail-gap);
  width: max-content;
  min-width: 100%;
}
.content-rail__card {
  flex: 0 0 min(85vw, var(--rail-card-min));
  max-width: min(85vw, var(--rail-card-min));
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .content-rail--md-static {
    overflow: visible;
    scroll-snap-type: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  .content-rail--md-static .content-rail__track {
    width: auto;
    min-width: 0;
    display: contents;
  }
  .content-rail--md-static .content-rail__card {
    flex: none;
    max-width: none;
    scroll-snap-align: none;
  }
}

/* Chip row (filters / categories) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.chip-row--start {
  justify-content: flex-start;
}
.page-blog-list .filter-pill,
.page-event-list .filter-pill,
.home-public-body .filter-pill {
  border-radius: var(--chip-radius);
}

/* Unified content card surface (use with existing blog-card / event-card / icerik-card) */
.content-card.blog-card,
.content-card.event-card,
.card.content-card {
  border-radius: 20px;
  box-shadow: var(--rail-shadow);
}
.content-card:focus-within {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

/* Guest sticky mobile CTA (single compact bar) */
.guest-cta-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--guest-cta-h);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface-0);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
}
.guest-cta-panel__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
  min-width: 0;
}
.guest-cta-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.guest-cta-panel .btn-brand-cta {
  background: var(--brand-500);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  white-space: nowrap;
}
.guest-cta-panel .btn-brand-cta:hover {
  background: var(--brand-600);
  color: #fff;
}
.guest-cta-panel .btn-ghost-cta {
  background: transparent;
  color: var(--brand-500);
  border: 1px solid rgba(144, 2, 22, 0.35);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 12px;
}
@media (max-width: 768px) {
  .guest-cta-panel {
    display: flex;
  }
}
body.has-guest-mobile-cta {
  padding-bottom: calc(var(--guest-cta-h) + 18px + env(safe-area-inset-bottom));
}
[data-theme='dark'] .guest-cta-panel {
  background: var(--surface-0);
  border-top-color: var(--border-color);
}

/* Blog / event list: mobile horizontal rail */
@media (max-width: 767.98px) {
  .content-grid-library.row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: var(--rail-gap);
    margin-left: calc(-0.5 * var(--rail-gap));
    margin-right: calc(-0.5 * var(--rail-gap));
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .content-grid-library.row > [class*='col-'] {
    flex: 0 0 min(88vw, 300px);
    max-width: min(88vw, 300px);
    scroll-snap-align: start;
  }
}

[data-theme='dark'] {
  --surface-0: #121723;
  --surface-1: #0f1420;
  --surface-2: #1c2432;
  --text-0: #e5e7eb;
  --text-1: #cbd5e1;
  --text-2: #94a3b8;
  --ring-color: rgba(252, 165, 177, 0.2);
  --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.32);
}

.premium-card {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.premium-muted {
  color: var(--text-2) !important;
}

.premium-title {
  color: var(--text-0);
}

.premium-btn {
  background: var(--brand-500);
  color: #fff;
  border: 1px solid var(--brand-500);
  border-radius: 12px;
  font-weight: 600;
}

.premium-btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.premium-input {
  background: var(--surface-0);
  color: var(--text-0);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.premium-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 0.2rem var(--ring-color);
}

.eng-card {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
}

.eng-like-btn {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text-1);
  background: var(--surface-0);
  font-size: 0.82rem;
  font-weight: 600;
}

.eng-like-btn.active {
  border-color: rgba(144, 2, 22, 0.35);
  background: rgba(144, 2, 22, 0.1);
  color: var(--brand-500);
}

.eng-like-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Public pages still using local utility classes */
[data-theme='dark'] .pub-footer,
[data-theme='dark'] .member-footer {
  background: #0e1320 !important;
  color: #dbe2ea !important;
}

[data-theme='dark'] .pub-footer a,
[data-theme='dark'] .member-footer a {
  color: #e5e7eb !important;
}

[data-theme='dark'] .blog-card,
[data-theme='dark'] .event-card,
[data-theme='dark'] .sidebar-card,
[data-theme='dark'] .info-card,
[data-theme='dark'] .content-body,
[data-theme='dark'] .comment-card,
[data-theme='dark'] .question-card,
[data-theme='dark'] .reply-item {
  background: var(--surface-0) !important;
  border-color: var(--border-color) !important;
  color: var(--text-0) !important;
}

[data-theme='dark'] .page-announcement-detail {
  background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
  color: var(--text-0);
}

[data-theme='dark'] .page-video-watch .app-page {
  background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
}

[data-theme='dark'] .blog-card-title,
[data-theme='dark'] .event-card-title,
[data-theme='dark'] .sidebar-post-title,
[data-theme='dark'] .content-body h2,
[data-theme='dark'] .content-body h3,
[data-theme='dark'] .content-body h4 {
  color: var(--text-0) !important;
}

[data-theme='dark'] .blog-card-excerpt,
[data-theme='dark'] .event-card-excerpt,
[data-theme='dark'] .event-card-meta span,
[data-theme='dark'] .sidebar-post-date,
[data-theme='dark'] .content-body p,
[data-theme='dark'] .comment-body,
[data-theme='dark'] .question-body,
[data-theme='dark'] .reply-content p {
  color: var(--text-1) !important;
}

[data-theme='dark'] .empty-state,
[data-theme='dark'] .quick-card,
[data-theme='dark'] .feature-card,
[data-theme='dark'] .icerik-card {
  background: var(--surface-0) !important;
  border-color: var(--border-color) !important;
}

.member-footer,
.pub-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}

/* Public premium pages (blog / etkinlik / icerik) */
.page-blog-list,
.page-event-list,
.page-blog-detail,
.page-event-detail,
.page-content-detail {
  font-family: 'Inter', sans-serif;
  background: var(--surface-1);
  color: var(--text-0);
}

.page-video-watch {
  font-family: 'Inter', sans-serif;
  background: var(--surface-1);
  color: var(--text-0);
}

.page-blog-list h1,
.page-blog-list h2,
.page-blog-list h3,
.page-event-list h1,
.page-event-list h2,
.page-event-list h3,
.page-blog-detail h1,
.page-blog-detail h2,
.page-blog-detail h3,
.page-blog-detail h4,
.page-event-detail h1,
.page-event-detail h2,
.page-event-detail h3,
.page-content-detail h1,
.page-content-detail h2,
.page-content-detail h3,
.page-content-detail h4 {
  font-family: 'Playfair Display', serif;
}

.page-video-watch h1,
.page-video-watch h2,
.page-video-watch h3,
.page-video-watch h4 {
  font-family: 'Playfair Display', serif;
}

.page-hero {
  background: linear-gradient(155deg, var(--ink-950) 0%, var(--ink-900) 38%, var(--ink-800) 62%, var(--brand-600) 92%, var(--brand-500) 100%);
  color: #fff;
  padding: 52px 0 36px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(144, 2, 22, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero.compact {
  padding: 30px 0 22px;
}

.page-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-breadcrumb .active {
  color: rgba(255, 255, 255, 0.92);
}

.page-hero-title {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.page-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.page-meta-item {
  margin-right: 14px;
}

.page-main {
  padding: 42px 0 64px;
}

/* Detay sayfaları: meta chip + makale kabuğu */
.detail-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--chip-radius);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}
.detail-meta-chips .page-meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.detail-article {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.35rem 1.75rem;
  margin-bottom: 1.5rem;
}
.detail-article .detail-cover-image,
.detail-article .content-cover-image {
  border-radius: 14px;
  width: 100%;
}
.page-blog-detail .detail-article .blog-content,
.page-event-detail .detail-article .detail-content {
  padding-top: 0.25rem;
}

.page-announcement-detail {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, var(--surface-1) 0%, #eceef2 100%);
  color: var(--text-0);
}
.page-announcement-detail h1,
.page-announcement-detail h2,
.page-announcement-detail h3 {
  font-family: 'Playfair Display', serif;
}
.page-announcement-detail .duyuru-html {
  line-height: 1.85;
  font-size: 1.04rem;
}
.page-announcement-detail .duyuru-html img {
  max-width: 100%;
  border-radius: 12px;
}

.sidebar-card .sidebar-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-850);
  opacity: 0.85;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

/* Ana sayfa: büyük vitrin carousel + yorum */
.home-carousel-section .carousel-control-prev,
.home-carousel-section .carousel-control-next,
section[data-home-block='testimonials'] .carousel-control-prev,
section[data-home-block='testimonials'] .carousel-control-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 19, 24, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.home-carousel-section .carousel-control-prev:hover,
.home-carousel-section .carousel-control-next:hover,
section[data-home-block='testimonials'] .carousel-control-prev:hover,
section[data-home-block='testimonials'] .carousel-control-next:hover {
  background: rgba(144, 2, 22, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.2);
}
.home-carousel-section .carousel-control-prev-icon,
.home-carousel-section .carousel-control-next-icon,
section[data-home-block='testimonials'] .carousel-control-prev-icon,
section[data-home-block='testimonials'] .carousel-control-next-icon {
  filter: invert(1);
  width: 1.1rem;
  height: 1.1rem;
}
@media (max-width: 767.98px) {
  .home-carousel-section .carousel-control-prev,
  .home-carousel-section .carousel-control-next,
  section[data-home-block='testimonials'] .carousel-control-prev,
  section[data-home-block='testimonials'] .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  .home-carousel-section .carousel-control-prev {
    left: 4px;
  }
  .home-carousel-section .carousel-control-next {
    right: 4px;
  }
}

/* Kart carousel: alt nokta göstergeleri (ör. WE / platform vitrinleri) */
.home-card-carousel .carousel-indicators.home-carousel-dots {
  position: static;
  margin: 1rem auto 0;
  padding: 0;
  justify-content: center;
  gap: 6px;
}
.home-card-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  margin: 0;
  background-color: rgba(15, 23, 42, 0.22);
  opacity: 1;
  text-indent: 0;
}
.home-card-carousel .carousel-indicators .active {
  background-color: var(--brand-500);
}
[data-theme='dark'] .home-card-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.28);
}

/* Ana sayfa: mobil yatay rail */
.home-content-rail {
  margin-left: calc(-1 * var(--rail-gap, 12px));
  margin-right: calc(-1 * var(--rail-gap, 12px));
  padding-bottom: 6px;
}
.home-testimonial-rail .content-rail__card {
  flex: 0 0 min(88vw, 18rem);
  max-width: min(88vw, 18rem);
}

.page-video-watch .app-page {
  background: linear-gradient(180deg, var(--surface-1) 0%, rgba(15, 23, 42, 0.06) 100%);
}
.page-video-watch .page-hero {
  margin-bottom: 0;
}
.page-video-watch .media-gallery-track {
  gap: 10px;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
}
.page-video-watch .media-gallery-item {
  scroll-snap-align: start;
}
.page-video-watch .video-list-scroll {
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--surface-0);
}
.page-video-watch .video-list-item.active,
.page-video-watch .video-list-item-mobile.active {
  border-color: rgba(144, 2, 22, 0.45);
  box-shadow: 0 0 0 1px rgba(144, 2, 22, 0.2);
}
.page-video-watch .video-list-item-mobile {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e5e7eb;
}
.page-video-watch .video-list-item-mobile strong {
  color: #f9fafb;
}
.page-video-watch .video-list-item-mobile.active {
  background: rgba(144, 2, 22, 0.22);
}

.blog-card,
.event-card,
.sidebar-card,
.info-card,
.content-body,
.empty-state {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.blog-card,
.event-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover,
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.blog-card-img-wrap,
.event-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.blog-card-img-wrap { height: 220px; }
.event-card-img-wrap { height: 200px; }

.blog-card-img-wrap img,
.event-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrap img,
.event-card:hover .event-card-img-wrap img {
  transform: scale(1.07);
}

.blog-card-placeholder,
.event-card-placeholder,
.sidebar-post-placeholder {
  background: linear-gradient(135deg, var(--brand-500) 0%, #b8041f 65%, #d4344a 100%);
  position: relative;
}

.blog-card-placeholder::before,
.event-card-placeholder::before,
.sidebar-post-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.blog-card-placeholder,
.event-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-placeholder i,
.event-card-placeholder i {
  color: rgba(255, 255, 255, 0.36);
  font-size: 2.4rem;
  z-index: 1;
}

.blog-card-badge,
.event-card-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.blog-card-badge {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-500);
}

.event-card-date-badge {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 8px 14px;
  text-align: center;
  min-width: 56px;
}

.event-card-date-badge .day {
  display: block;
  line-height: 1;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-500);
}

.event-card-date-badge .month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
}

.blog-card-body,
.event-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title,
.event-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt,
.event-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.65;
  flex: 1;
}

.blog-card-excerpt {
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-excerpt {
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.blog-card-date,
.event-card-meta span,
.sidebar-post-date {
  font-size: 0.82rem;
  color: var(--text-2);
}

.blog-card-link,
.event-card-link,
.outline-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-card-link,
.event-card-link {
  color: var(--brand-500);
}

.blog-card-link {
  padding: 6px 16px;
}

.event-card-link {
  padding: 11px 24px;
  border: 2px solid var(--brand-500);
}

.blog-card-link:hover,
.event-card-link:hover {
  background: rgba(144, 2, 22, 0.08);
  color: var(--brand-500);
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.event-card-meta i {
  color: var(--brand-500);
  width: 16px;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  border-radius: 24px;
  border-style: dashed;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-2);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-1);
}

.empty-state p {
  font-size: 0.92rem;
  color: var(--text-2);
}

.premium-pagination .page-link {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  font-weight: 600;
  margin: 0 4px;
  background: var(--surface-0);
  color: var(--brand-500);
}

.premium-pagination .page-item.active .page-link {
  border-color: var(--brand-500);
  background: var(--brand-500);
  color: #fff;
}

.sidebar-card {
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand-500);
  color: var(--brand-500);
}

.sidebar-post {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-post:last-child {
  border-bottom: 0;
}

.sidebar-post a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.sidebar-post-img,
.sidebar-post-placeholder {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.sidebar-post-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.45;
}

.gradient-cta-card {
  background: linear-gradient(135deg, var(--brand-500), #b8041f);
  color: #fff;
}

.gradient-cta-card .sidebar-card-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.detail-cover-image,
.content-cover-image {
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.detail-cover-image { max-height: 450px; }
.content-cover-image { max-height: 420px; }

.detail-content,
.content-body {
  line-height: 1.85;
  font-size: 1.03rem;
  color: var(--text-1);
}

.detail-content img,
.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.info-card {
  border-left: 4px solid var(--brand-500);
  border-radius: 14px;
  padding: 20px;
}

.outline-pill-btn {
  border: 2px solid var(--brand-500);
  color: var(--brand-500);
  border-radius: 999px;
  padding: 10px 28px;
  background: transparent;
}

.outline-pill-btn:hover {
  background: rgba(144, 2, 22, 0.08);
  color: var(--brand-500);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  color: var(--text-1);
  text-decoration: none;
  transition: all 0.25s ease;
  background: var(--surface-0);
}

.share-btn:hover {
  border-color: var(--brand-500);
  background: var(--brand-500);
  color: #fff;
}

.content-header {
  background: linear-gradient(155deg, var(--ink-950) 0%, var(--ink-800) 55%, var(--brand-600) 100%);
  color: #fff;
  padding: 54px 0 42px;
}

.content-body {
  max-width: 860px;
  margin: -26px auto 0;
  border-radius: 18px;
  padding: 34px 24px;
}

.content-chip {
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
}

.content-link-btn {
  border-radius: 999px;
  padding: 12px 34px;
}

.detail-sidebar-sticky {
  position: sticky;
  top: 88px;
}

.page-event-detail .detail-content,
.page-content-detail .content-body {
  font-size: 1rem;
}

.page-content-detail .content-body {
  max-width: none;
  margin: 0;
}

.page-video-watch .video-watch-main-card {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.page-video-watch .video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-video-watch .video-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-video-watch .play-button-overlay {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(144, 2, 22, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-video-watch .play-button-icon {
  font-size: 2rem;
  margin-left: 5px;
}

.page-video-watch .video-frame,
.page-video-watch .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-video-watch .video-frame-hidden,
.page-video-watch .video-overlay-hidden,
.page-video-watch .audio-hidden {
  display: none;
}

.page-video-watch .video-overlay {
  z-index: 5;
  cursor: pointer;
}

.page-video-watch .audio-cover-image {
  max-height: 300px;
  width: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-video-watch .audio-progress-track {
  height: 6px;
}

.page-video-watch .audio-progress-bar,
.page-video-watch #progressBar {
  background: linear-gradient(90deg, #900216 0%, #b8041f 100%);
  width: 0;
}

.page-video-watch .content-mode-btn.active {
  background: #900216 !important;
  color: #fff !important;
  border: none !important;
}

.page-video-watch .content-mode-btn:not(.active) {
  background: #6c757d !important;
  color: #fff !important;
  border: none !important;
}

.page-video-watch .video-progress-track {
  height: 8px;
  border-radius: 10px;
}

.page-video-watch .video-section-icon {
  color: var(--brand-500);
}

.page-video-watch .media-gallery-track {
  scroll-snap-type: x mandatory;
}

.page-video-watch .media-gallery-item {
  scroll-snap-align: start;
}

.page-video-watch .media-gallery-thumb {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.page-video-watch .video-list-scroll {
  max-height: 600px;
  overflow-y: auto;
}

.page-video-watch .video-list-item.active {
  background: linear-gradient(135deg, #900216 0%, #b8041f 100%);
  color: #fff;
}

.page-video-watch .video-list-item .video-thumbnail {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.page-video-watch .video-list-item.active .video-thumbnail {
  border-color: rgba(255, 255, 255, 0.3);
}

.page-video-watch .video-badge-sm {
  font-size: 0.7rem;
  padding: 2px 6px;
}

.page-video-watch .video-badge-xs {
  font-size: 0.65rem;
  padding: 2px 5px;
}

.page-video-watch .video-item-progress-track {
  height: 4px;
}

.page-video-watch .video-item-progress-bar {
  background: #900216;
}

.page-video-watch .video-item-progress-bar.is-active {
  background: rgba(255, 255, 255, 0.8);
}

.page-video-watch .video-item-progress-text.is-active {
  color: rgba(255, 255, 255, 0.8) !important;
}

.page-video-watch .mobile-video-list {
  max-height: calc(68vh - 60px);
  overflow-y: auto;
  display: none;
  background: var(--ink-950);
}

.page-video-watch .video-list-item-mobile {
  color: #e5e7eb;
}

.page-video-watch .video-list-item-mobile.active {
  background: rgba(144, 2, 22, 0.22);
  border-left: 4px solid var(--brand-500) !important;
}

.page-video-watch .video-thumbnail-mobile {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.page-video-watch .video-list-item-mobile.active .video-thumbnail-mobile {
  border-color: var(--brand-500);
}

.page-video-watch .course-media-modal-img {
  max-width: 100%;
  border-radius: 10px;
}

.page-video-watch .video-popup-title {
  color: var(--brand-500);
}

.page-video-watch .video-popup-media {
  max-width: 100%;
  height: auto;
}

.page-video-watch .video-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.premium-meta-badge {
  background: var(--surface-1);
  color: var(--text-1);
  border: 1px solid var(--border-color);
}

.video-tabs-header,
.video-list-header {
  background: linear-gradient(135deg, var(--brand-500) 0%, #b8041f 100%);
  color: #fff;
}

.page-video-watch .detail-sidebar-sticky {
  top: 82px;
}

.page-video-watch .video-description a {
  color: var(--brand-500);
}

.page-video-watch .video-description a:hover {
  color: var(--brand-600);
}

/* Video watch comments and Q&A module */
@keyframes videoFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-video-watch .comment-item,
.page-video-watch .question-item {
  animation: videoFadeIn 0.3s ease-in;
}

.page-video-watch .comment-card,
.page-video-watch .question-card {
  background: var(--surface-0);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-video-watch .comment-card:hover,
.page-video-watch .question-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.page-video-watch .comment-header,
.page-video-watch .question-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.page-video-watch .comment-avatar,
.page-video-watch .question-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #900216 0%, #b8041f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.page-video-watch .question-icon {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.page-video-watch .comment-info,
.page-video-watch .question-info {
  flex: 1;
}

.page-video-watch .comment-author,
.page-video-watch .question-author {
  display: block;
  color: var(--text-0);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-video-watch .comment-date,
.page-video-watch .question-date {
  display: block;
  color: var(--text-2);
  font-size: 12px;
}

.page-video-watch .comment-body,
.page-video-watch .question-body {
  color: var(--text-1);
  line-height: 1.6;
  margin-bottom: 12px;
}

.page-video-watch .comment-body p,
.page-video-watch .question-body p {
  margin: 0;
  word-wrap: break-word;
}

.page-video-watch .comment-actions,
.page-video-watch .question-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.page-video-watch .btn-reply {
  background: transparent;
  border: 1px solid var(--brand-500);
  color: var(--brand-500);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.page-video-watch .btn-reply:hover {
  background: var(--brand-500);
  color: #fff;
  transform: translateY(-1px);
}

.page-video-watch .comment-replies,
.page-video-watch .question-replies {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.page-video-watch .reply-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--surface-1);
  border-radius: 8px;
  border-left: 3px solid var(--brand-500);
}

.page-video-watch .reply-item:last-child {
  margin-bottom: 0;
}

.page-video-watch .reply-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #900216 0%, #b8041f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.page-video-watch .reply-content {
  flex: 1;
}

.page-video-watch .reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.page-video-watch .reply-header strong {
  font-size: 13px;
  color: var(--text-0);
}

.page-video-watch .reply-header small {
  font-size: 11px;
  color: var(--text-2);
}

.page-video-watch .reply-content p {
  font-size: 13px;
  color: var(--text-1);
  margin: 0;
  line-height: 1.5;
}

.page-video-watch .reply-form-container {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface-1);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.page-video-watch .reply-form textarea {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  resize: vertical;
}

.page-video-watch .reply-form textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 0.2rem var(--ring-color);
}

.page-video-watch .question-header {
  justify-content: space-between;
}

.page-video-watch .question-header .badge {
  font-size: 11px;
  padding: 4px 10px;
}

.page-video-watch .text-center.py-5 i {
  opacity: 0.3;
}

.page-video-watch .app-sheet {
  background: var(--ink-900);
  color: #e5e7eb;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom);
  bottom: calc(76px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-video-watch .app-sheet .video-list-header {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.page-video-watch .app-sheet .video-list-header strong {
  color: #f9fafb;
}
.page-video-watch .app-sheet .badge.bg-light {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-video-watch .app-sheet-handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.page-video-watch #mobileVideoList .video-list-item-mobile {
  min-height: 64px;
}

.page-video-watch .video-container {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #000;
}

.page-video-watch .video-cover {
  transition: opacity 0.3s ease;
}

.page-video-watch .video-cover:hover .play-button-overlay {
  transform: scale(1.1);
  background: rgba(144, 2, 22, 1);
  box-shadow: 0 6px 20px rgba(144, 2, 22, 0.5);
}

.page-video-watch .play-button-overlay:hover {
  transform: scale(1.15);
}

.page-video-watch .video-thumbnail {
  transition: transform 0.2s ease;
}

.page-video-watch .list-group-item:hover .video-thumbnail {
  transform: scale(1.05);
}

.page-video-watch img[src*="vumbnail.com"],
.page-video-watch img[src*="vimeocdn.com"] {
  background: linear-gradient(135deg, #900216 0%, #b8041f 100%);
}

.page-video-watch .audio-player-wrapper {
  background: var(--surface-1);
  padding: 20px;
  border-radius: 12px;
}

.page-video-watch #audioPlayer {
  border-radius: 8px;
  background: var(--surface-0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-video-watch .nav-tabs .nav-link {
  border: none;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.page-video-watch .nav-tabs .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 3px solid #fff;
}

.page-video-watch .video-description {
  line-height: 1.8;
  color: var(--text-1);
}

.page-video-watch .video-description p {
  margin-bottom: 1rem;
}

.page-video-watch .video-description ul,
.page-video-watch .video-description ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-video-watch .video-description li {
  margin-bottom: 0.5rem;
}

.page-video-watch .video-description strong,
.page-video-watch .video-description b {
  font-weight: 700;
  color: var(--brand-500);
}

.page-video-watch .video-description h1,
.page-video-watch .video-description h2,
.page-video-watch .video-description h3,
.page-video-watch .video-description h4,
.page-video-watch .video-description h5,
.page-video-watch .video-description h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--brand-500);
}

.page-video-watch .video-description blockquote {
  border-left: 4px solid var(--brand-500);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text-2);
}

.page-video-watch .video-description code {
  background: var(--surface-1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--brand-500);
}

.page-video-watch .video-description pre {
  background: var(--surface-1);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.page-video-watch .video-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Video protection helpers */
.page-video-watch .video-container,
.page-video-watch #videoPlayerContainer,
.page-video-watch #audioPlayerContainer {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-video-watch #videoOverlay {
  pointer-events: auto;
}

.page-video-watch #videoOverlay[style*="display:none"],
.page-video-watch #videoOverlay[style*="display: none"] {
  pointer-events: none;
}

@media (max-width: 768px) {
  .page-main {
    padding: 26px 0 34px;
  }

  .mobile-app-wrap {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    background: var(--surface-1);
  }

  .page-hero {
    margin: 8px 12px 0;
    border-radius: 18px;
    padding: 22px 0;
  }

  .page-hero .breadcrumb {
    display: none;
  }

  .page-hero-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .blog-card,
  .event-card,
  .sidebar-card,
  .content-body {
    border-radius: 16px;
  }

  .content-body {
    margin-top: -18px;
    padding: 20px 16px;
  }

  .outline-pill-btn,
  .blog-card-link,
  .event-card-link {
    min-height: 44px;
  }

  .pub-footer {
    margin-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .detail-sidebar-sticky {
    position: static;
  }

  .mobile-safe-nav .page-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .mobile-safe-nav .member-footer {
    margin-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .page-video-watch .app-page {
    padding-left: 0;
    padding-right: 0;
  }

  .page-video-watch .comment-card,
  .page-video-watch .question-card {
    padding: 16px;
  }

  .page-video-watch .comment-avatar,
  .page-video-watch .question-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .page-video-watch .reply-item {
    padding: 10px;
  }

  .page-video-watch #courseMediaModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  .page-video-watch #courseMediaModal .modal-content {
    min-height: 100%;
    border-radius: 0;
  }
}

@media (max-width: 991px) {
  .page-video-watch {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
