:root {
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--red-200) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--red-200);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-300);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--red-50), #ffffff);
  color: var(--slate-900);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-700);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.brand-gradient {
  display: block;
  line-height: 1.375;
  background: linear-gradient(to right, var(--red-700), var(--red-900));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Home hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 56rem;
  text-align: center;
  margin: 0 auto;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.hero__title-line {
  margin-top: 0.25rem;
}

.hero__lede {
  margin: 0;
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.625;
}

.hero__quote {
  margin: 2rem 0 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 42rem;
  text-align: center;
}

.hero__quote footer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--slate-600);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

/* Shared page shell */
.page-shell {
  padding-block: 3rem;
}

.page-shell__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.page-shell__inner--wide {
  max-width: 56rem;
  padding-inline: 1rem;
}

.page-title {
  margin: 0 0 2rem;
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--slate-900);
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Card */
.card {
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

@media (min-width: 640px) {
  .card {
    border-radius: 0.5rem;
  }
}

.card--stacked {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
}

.card-section {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
}

.card-section h2 {
  margin-bottom: 1rem;
}

/* Info grid (ders bilgisi) */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .info-grid {
    flex-direction: row;
  }
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-row__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--red-700);
}

.info-row__body {
  flex: 1;
  min-width: 0;
}

.info-row__body p {
  margin: 0 0 0.75rem;
  color: var(--slate-600);
  line-height: 1.625;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--slate-600);
}

.phone-list a:hover {
  color: var(--red-700);
}

.kitap-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kitap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--slate-600);
}

/* Pills */
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  background: var(--red-50);
  color: var(--red-700);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.pill-link:hover {
  background: var(--red-100);
}

.pill-link--maps {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.icon-xs {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Day groups */
.day-group-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-group {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

.day-group__header {
  background: var(--red-50);
  padding: 0.5rem 1rem;
}

.day-group__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--red-900);
}

.day-group__list {
  display: flex;
  flex-direction: column;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--slate-100);
}

.day-group__list .lesson-row:first-child {
  border-top: none;
}

.lesson-row__name {
  font-weight: 500;
  color: var(--slate-900);
}

.lesson-row__desc {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Video page */
.video-header {
  text-align: center;
  margin-bottom: 2rem;
}

.video-header__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
}

.video-header__subtitle {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.video-header__lede {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  color: var(--slate-600);
}

@media (min-width: 640px) {
  .video-header__title {
    font-size: 2.25rem;
  }
  .video-header__subtitle {
    font-size: 1.5rem;
  }
}

.video-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border-radius: 0.5rem;
  background: var(--red-50);
  color: var(--red-700);
}

.video-intro__hint {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--slate-100);
  box-shadow: 0 0 0 1px var(--slate-200), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--slate-200);
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .video-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.video-actions__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: var(--red-700);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.cta-button:hover {
  background: var(--red-800);
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}

.not-found h1 {
  margin: 0;
  font-size: 4rem;
  font-weight: 800;
  color: var(--slate-900);
}

.not-found p {
  margin: 0;
  color: var(--slate-600);
}
