/*
  shared-design.css — Tüm sayfalarda ortak tasarım sistemi.
  index.html dahil her HTML sayfası bu dosyayı yükler.

  Palet:
    --navy:  #12263F  (Ege Gecesi)
    --coral: #E06535  (Narenciye)
    --sand:  #F5F3EF  (Kum)
    --muted: #6E82A0  (Poyraz)

  Tipografi:
    Display : Fraunces 700/900  (Google Fonts — head'de link gerekli)
    Body/UI : Plus Jakarta Sans 400/500/600
*/

/* ── Design tokens ── */
:root {
  --navy:  #12263F;
  --coral: #E06535;
  --sand:  #F5F3EF;
  --muted: #6E82A0;
}

/* ── Base ── */
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--sand);
  color: var(--navy);
}

/* ── Navbar ── */
nav.navbar {
  background-color: #fff !important;
  box-shadow: 0 1px 0 rgba(18, 38, 63, 0.09);
}
.navbar .nav-link {
  color: var(--navy) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.navbar .nav-item.active {
  border-left: 3px solid var(--coral);
}
.navbar .nav-item.active .nav-link {
  color: var(--coral) !important;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: var(--coral);
  background: var(--sand);
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background: var(--coral);
  color: #fff;
}

/* ── İmza eleman: section başlığı + Narenciye çizgisi ── */
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
}
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--coral);
  margin-top: 0.6rem;
}
.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

/* ── Page header (tüm iç sayfalar) ── */
#page-header {
  position: relative;
  background-color: var(--navy);
  color: #fff;
  border-bottom: none;
}
#page-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}
#page-header p {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
  font-size: 0.9rem;
}
/* Arka plan görseli olan header'lara lacivert overlay */
#page-header.page-header-robotik::before,
#page-header.page-header-3d::before,
#page-header.page-header-ingilizce::before,
#page-header.page-header-unity::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(18, 38, 63, 0.60);
  z-index: 0;
}
#page-header > .container {
  position: relative;
  z-index: 1;
}

/* ── İçerik kartları (robotik, ingilizce, unity, 3d) ── */
#resim {
  background: var(--sand);
  padding: 3rem 0 4rem;
}
.card-3d,
.card-columns-3d .card-3d,
.card-columns-piyano .card-3d {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(18, 38, 63, 0.07);
}
.card-3d .card-img-top {
  max-height: 340px;
  object-fit: cover;
  width: 100%;
}
.card-3d .card-body {
  padding: 1.75rem 2rem;
}
.card-3d .card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.card-3d hr {
  border-color: rgba(18, 38, 63, 0.10);
  margin: 0.6rem 0 1rem;
}
.card-3d .card-text {
  color: var(--navy);
  line-height: 1.78;
  font-size: 0.95rem;
}

/* ── Detay sayfası kart içi alt başlıklar ve vurgu kutusu ── */
.card-3d .card-body h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.card-3d .card-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-3d .card-body ul li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
  font-size: 0.93rem;
  color: var(--navy);
}
.highlight-note {
  border-left: 3px solid var(--coral);
  padding: 0.6rem 0 0.6rem 1rem;
  color: var(--navy);
  font-size: 0.93rem;
  line-height: 1.72;
  margin: 1rem 0 1.25rem;
  background: rgba(224, 101, 53, 0.05);
  border-radius: 0 4px 4px 0;
}

/* ── Detay sayfası: 2×2 alan grid — zengin kart ── */
.alan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
}
.alan-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(18, 38, 63, 0.09);
  display: flex;
  flex-direction: column;
}
.alan-card-img {
  height: 150px;
  overflow: hidden;
}
.alan-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}
.alan-card-content {
  padding: 0.85rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.alan-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.alan-card-header i {
  font-size: 1rem;
  color: var(--coral);
  flex-shrink: 0;
}
.alan-card-header strong {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.2;
}
.alan-card-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Seviye göstergesi: Başlangıç → İleri */
.alan-progress {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  background: var(--sand);
  border-radius: 5px;
  padding: 0.45rem 0.5rem;
}
.alan-prog-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  text-align: center;
}
.prog-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  background: rgba(110, 130, 160, 0.18);
  color: var(--muted);
  white-space: nowrap;
}
.prog-badge--ileri {
  background: rgba(18, 38, 63, 0.10);
  color: var(--navy);
}
.prog-tool {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.prog-arrow {
  color: var(--coral);
  font-size: 0.7rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
}

/* Örnek çıktı etiketleri */
.alan-examples {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(18, 38, 63, 0.07);
  margin-top: auto;
}
.alan-examples-label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.28rem;
}
.alan-examples-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.alan-ex-tag {
  font-size: 0.63rem;
  background: rgba(18, 38, 63, 0.06);
  color: var(--navy);
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Detay sayfası: info-box (kum arkaplan) ── */
.info-box {
  background: var(--sand);
  border-radius: 8px;
  padding: 1.4rem 1.5rem 1.25rem;
  margin-top: 0.25rem;
}
.card-3d .card-body .info-box > h5:first-child {
  margin-top: 0;
}
.card-3d .card-body .info-box > h5 {
  margin-top: 1.25rem;
}

/* ── Etkinlik kartları (etkinlik.html Bootstrap .card grid) ── */
#resim .card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(18, 38, 63, 0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
#resim .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(18, 38, 63, 0.12);
}
#resim .card .card-img-top {
  border-radius: 8px 8px 0 0;
  max-height: 220px;
  object-fit: cover;
}
#resim .card .card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}
#resim .card .card-text {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--navy);
}
#resim .card hr {
  border-color: rgba(18, 38, 63, 0.10);
}
#resim .badge-secondary {
  background: var(--coral);
  color: #fff;
  border-radius: 3px;
}
#resim .btn-outline-secondary {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.85rem;
}
#resim .btn-outline-secondary:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Genel buton overrides ── */
.btn-primary {
  background: var(--coral) !important;
  border-color: var(--coral) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
}
.btn-primary:hover {
  background: #bf4e22 !important;
  border-color: #bf4e22 !important;
}
.btn-outline-danger {
  border-color: var(--coral);
  color: var(--coral);
  font-weight: 600;
  border-radius: 4px;
}
.btn-outline-danger:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* ── Video play bölümü ── */
#video-play h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
}

/* ── Hakkımızda sayfası ── */
#about {
  background: var(--sand);
  padding: 3rem 0;
}
#about h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
#about p {
  color: var(--navy);
  line-height: 1.78;
  font-size: 0.95rem;
}

#icon-boxes {
  background: #fff;
  padding: 3rem 0;
}
#icon-boxes .card {
  background-color: var(--navy) !important;
  border: none !important;
  border-radius: 8px;
}
#icon-boxes .card i {
  color: var(--coral) !important;
}
#icon-boxes .card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}
#icon-boxes .card .card-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

#testimonials {
  background: var(--navy);
}
#testimonials h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: #fff;
}
#testimonials .blockquote p {
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── İletişim sayfası ── */
#contact {
  background: var(--sand);
  padding: 3rem 0 4rem;
}
#contact .card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(18, 38, 63, 0.07);
  height: 100%;
}
#contact h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-top: 1.1rem;
  margin-bottom: 0.2rem;
}
#contact h4:first-child {
  margin-top: 0;
}
#contact p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
#contact hr {
  border-color: rgba(18, 38, 63, 0.10);
}
#contact iframe {
  border-radius: 8px;
  display: block;
}

/* ── Footer ── */
#main-footer {
  background: var(--navy) !important;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
#main-footer h6 {
  color: #fff;
  letter-spacing: 0.08em;
}
#main-footer p,
#main-footer li {
  color: rgba(255, 255, 255, 0.62);
}
#main-footer a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s;
}
#main-footer a:hover {
  color: var(--coral);
}
#main-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
}
#main-footer .mb-0 {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.85rem;
}
#main-footer .sociall {
  background: rgba(255, 255, 255, 0.14) !important;
  transition: background 0.15s;
}
#main-footer .sociall:hover {
  background: var(--coral) !important;
}
