/* Akar Sürücü Kursu – premium katmanı (base.css = Next.js sürümüyle aynı stiller) */

/* ---------- Inter fontu (tema içinden; Next.js sürümünde tanımlıydı ama yüklenmiyordu) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Slider: ilk slayt h1, diğerleri h2 (SEO: sayfada tek h1) ---------- */
.slide-content .slide-title { max-width: 790px; margin: 0 0 19px; color: #fff; font-size: clamp(50px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -4.5px; }
.slide-content .slide-title em { display: block; color: #ff6b57; font-style: normal; }
.hero-slide.active .slide-content > * { animation: ak-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-slide.active .slide-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-slide.active .slide-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-slide.active .slide-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-slide.active .slide-content > *:nth-child(5) { animation-delay: 0.32s; }

/* Aktif noktada 6 saniyelik ilerleme çubuğu */
.slider-dots .active span { position: relative; overflow: hidden; background: rgba(255, 107, 87, 0.35); }
.slider-dots .active span::after { content: ""; position: absolute; inset: 0; transform-origin: left; background: #ff6b57; animation: ak-progress 6s linear forwards; }
.hero-slider.is-paused .slider-dots .active span::after { animation-play-state: paused; }
@keyframes ak-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Menü ---------- */
.header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.header.is-scrolled { background: rgba(255, 255, 255, 0.94); box-shadow: 0 14px 40px rgba(10, 31, 55, 0.1); }
.nav > a.is-current { color: var(--red); }
.nav > a.is-current::after { transform: scaleX(1); }
.menu-button { cursor: pointer; padding: 6px; border-radius: 10px; }
.ak-menu-close { display: none; }
.menu-button[aria-expanded="true"] .ak-menu-open { display: none; }
.menu-button[aria-expanded="true"] .ak-menu-close { display: inline; }

/* ---------- Sayfa üst alanı: görselli sürüm ---------- */
.page-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.page-hero-figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; box-shadow: 0 30px 60px rgba(7, 26, 51, 0.18); }
.page-hero-figure::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 18px; pointer-events: none; }
.page-hero-figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.page-hero-figure:hover img { transform: scale(1.04); }
.page-hero-media h1 { font-size: clamp(38px, 4.4vw, 56px); }
@media (max-width: 980px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .page-hero-figure { aspect-ratio: 16 / 10; }
}

/* ---------- Giriş ve kaydırma animasyonları ---------- */
.js .ak-enter { animation: ak-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .ak-enter + .ak-enter { animation-delay: 0.12s; }
.js [data-ak-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-ak-reveal].is-visible { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms), box-shadow 0.25s ease, border-color 0.25s ease; }
.js .service-card[data-ak-reveal].is-visible:hover { transform: translateY(-9px); }
.js .review-grid article[data-ak-reveal].is-visible:hover,
.js .steps article[data-ak-reveal].is-visible:hover { transform: translateY(-7px); }
.js .check-grid span[data-ak-reveal].is-visible:hover { transform: translateY(-4px); }
@keyframes ak-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Başvuru formu ---------- */
.ak-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form label.ak-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 600; font-size: 12px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.contact-form label.ak-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--red); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.14); }
.contact-form .error { margin-top: 12px; padding: 11px; background: #fdecec; color: #b42318; font-size: 13px; border-radius: 8px; }
.contact-form .success { border-radius: 8px; }

/* ---------- Gerçek harita ---------- */
.ak-map { position: relative; margin-top: 45px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 44px rgba(15, 42, 77, 0.09); background: #e9eef3; }
.ak-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(0.9); }
.ak-map-link { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; box-shadow: 0 12px 28px rgba(7, 26, 51, 0.18); transition: transform 0.25s ease; }
.ak-map-link svg { color: var(--red); }
.ak-map-link:hover { transform: translateY(-3px); }
@media (max-width: 640px) { .ak-map iframe { height: 300px; } }

/* ---------- Instagram önizlemesi: gerçek fotoğraflar ---------- */
.instagram-posts span.has-image { position: relative; overflow: hidden; background: #dce8f2; }
.instagram-posts span.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.instagram-preview:hover .instagram-posts img { transform: scale(1.06); }

/* ---------- Diğer eğitimler ---------- */
.ak-related { background: radial-gradient(circle at 90% 0%, rgba(232, 239, 248, 0.85), transparent 30%), #f6f8fb; }
.ak-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ak-related-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e8edf4; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(15, 42, 77, 0.045); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.js .ak-related-card[data-ak-reveal].is-visible:hover, .ak-related-card:hover { transform: translateY(-7px); border-color: rgba(230, 57, 70, 0.25); box-shadow: 0 22px 42px rgba(15, 42, 77, 0.12); }
.ak-related-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe7ee; }
.ak-related-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ak-related-card:hover .ak-related-media img { transform: scale(1.06); }
.ak-related-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.ak-related-body .service-icon { margin-top: -48px; border: 3px solid #fff; box-shadow: 0 10px 20px rgba(15, 42, 77, 0.1); }
.ak-related-body b { color: var(--navy); font-size: 17px; margin-top: 6px; }
.ak-related-body small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.ak-related-body em { font-style: normal; margin-top: 6px; }
@media (max-width: 980px) { .ak-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ak-related-grid { grid-template-columns: 1fr; } }

/* ---------- Galeri büyütme ---------- */
.ak-gallery-open { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ak-gallery-zoom { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(4, 19, 38, 0.45); backdrop-filter: blur(8px); opacity: 0; transform: scale(0.85); transition: 0.25s ease; }
.gallery-card:hover .ak-gallery-zoom, .ak-gallery-open:focus-visible .ak-gallery-zoom { opacity: 1; transform: none; }
.gallery-card figcaption { pointer-events: none; }

.ak-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 70px 80px; background: rgba(3, 12, 26, 0.94); backdrop-filter: blur(10px); }
.ak-lightbox[hidden] { display: none; }
.ak-lightbox figure { margin: 0; max-width: 1200px; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ak-lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: ak-zoom-in 0.35s ease both; }
.ak-lightbox figcaption { color: #dbe5ef; font-size: 14px; font-weight: 700; }
.ak-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.08); cursor: pointer; transition: 0.25s; }
.ak-lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.ak-lightbox-close { top: 18px; right: 18px; }
.ak-lightbox-nav { top: 50%; margin-top: -24px; }
.ak-lightbox-nav.is-prev { left: 18px; }
.ak-lightbox-nav.is-prev svg { transform: rotate(180deg); }
.ak-lightbox-nav.is-next { right: 18px; }
@keyframes ak-zoom-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .ak-lightbox { padding: 70px 12px; }
  .ak-lightbox-nav { top: auto; bottom: 18px; margin: 0; }
}

/* ---------- 404 ---------- */
.ak-404 { padding: 140px 0; }

/* ---------- Klavye odağı ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 640px) {
  .slide-content .slide-title { max-width: 96%; font-size: 43px; line-height: 1.04; letter-spacing: -2.8px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-ak-reveal] { opacity: 1 !important; transform: none !important; }
  .slider-dots .active span::after { animation: none; transform: none; }
}
