/* =========================================================
   Mirdeniz Bilişim Teknolojileri - Discord Bot Tanıtım Sitesi
   Arka plan görseli: arkaplan.png (index.html ile aynı klasöre)
   ========================================================= */

:root {
  --night: #050f26;
  --deep: #0a1f4d;
  --ocean: #1456d9;
  --azure: #3b8bff;
  --cyan: #5fd4ff;
  --ice: #eaf4ff;
  --muted: #a9c2e6;

  --glass: rgba(255, 255, 255, 0.075);
  --glass-line: rgba(170, 215, 255, 0.28);
  --radius: 18px;

  --font-display: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ice);
  background: var(--night);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Minecraft arka planı + mavi karartma katmanı */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("arkaplan.png") center / cover no-repeat, var(--deep);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(59, 139, 255, 0.38), transparent 62%),
    linear-gradient(180deg, rgba(5, 15, 38, 0.70), rgba(7, 26, 64, 0.84) 55%, rgba(5, 15, 38, 0.95));
}

img { max-width: 100%; }
a { color: var(--cyan); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ocean);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

/* ---------- Cam yüzey ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 60px rgba(2, 8, 28, 0.45);
}

/* ---------- Cam efektli butonlar ---------- */
.btn {
  --tint: rgba(59, 139, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(190, 225, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)), var(--tint);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 16px rgba(20, 86, 217, 0.18),
    0 10px 30px rgba(3, 12, 40, 0.45);
  color: #fff;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  --tint: rgba(95, 212, 255, 0.34);
  transform: translateY(-2px);
  border-color: rgba(220, 240, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(20, 86, 217, 0.22),
    0 16px 36px rgba(20, 86, 217, 0.4);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary { --tint: rgba(20, 86, 217, 0.62); }
.btn-primary:hover { --tint: rgba(59, 139, 255, 0.72); }
.btn-lg { padding: 16px 26px; font-size: 1.04rem; border-radius: 16px; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}
.site-header .wrap { position: relative; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ice);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.85;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}
.nav-links .btn { padding: 10px 18px; font-size: 0.95rem; }

.nav-toggle { display: none; padding: 10px 12px; }

/* ---------- Tipografi ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 34px rgba(20, 86, 217, 0.7);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 14px;
}
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 8px; }

p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: #cfe2fb; max-width: 54ch; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 84px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-credit { margin: 26px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 52ch; }

.hero-visual { position: relative; }
.hero-visual .shot--main { transform: rotate(1.6deg); }
.hero-visual .shot--float {
  position: absolute;
  width: 54%;
  left: -9%;
  bottom: -10%;
  transform: rotate(-3deg);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero-copy { animation: rise 0.8s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-visual { animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- Bölümler ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

/* Görsel çerçevesi */
.shot {
  margin: 0;
  padding: 8px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 50px rgba(2, 8, 28, 0.5);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  cursor: zoom-in;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.thumbs .shot { padding: 5px; border-radius: 12px; }
.thumbs .shot img { border-radius: 8px; }

/* Özellik satırları */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 34px;
}
.feature + .feature { margin-top: 28px; }
.feature-copy { order: 1; }
.feature-media { order: 2; }
.feature--flip { grid-template-columns: 1.1fr 1fr; }
.feature--flip .feature-media { order: 1; }
.feature--flip .feature-copy { order: 2; }
.feature-copy p { color: #cfe2fb; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(59, 139, 255, 0.18);
  border: 1px solid rgba(160, 210, 255, 0.35);
}

.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #dcebff; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 2px 2px 0 var(--ocean);
}

/* Adımlar (gerçek bir sıra olduğu için numaralı) */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
}
.steps li { counter-increment: step; padding: 24px 22px; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--azure), var(--ocean));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px rgba(20, 86, 217, 0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: #cfe2fb; font-size: 0.95rem; }

/* Üçlü kartlar */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.card { padding: 24px; }
.card p { color: #cfe2fb; font-size: 0.96rem; }
.card .shot { margin-top: 16px; }

/* Discord daveti */
.cta { padding: 60px 28px; text-align: center; }
.cta p { max-width: 52ch; margin: 0 auto 28px; color: #cfe2fb; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Alt bilgi ---------- */
.site-footer { margin-top: auto; padding: 28px 0 38px; }
.footer-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 26px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-box a { color: var(--ice); font-weight: 600; text-decoration: none; }
.footer-box a:hover { text-decoration: underline; }

/* ---------- Galeri sayfası ---------- */
.page-head { padding: 48px 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(190, 225, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ice);
  font: 600 0.92rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.filter:hover { background: rgba(255, 255, 255, 0.16); }
.filter[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(59, 139, 255, 0.7), rgba(20, 86, 217, 0.7));
  border-color: rgba(220, 240, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.masonry { column-width: 300px; column-gap: 20px; padding-bottom: 40px; }
.masonry figure { break-inside: avoid; margin: 0 0 20px; }
.masonry figcaption { padding: 10px 6px 2px; color: #cfe2fb; font-size: 0.9rem; }

/* ---------- Görsel büyütme (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 76px;
  background: rgba(3, 10, 30, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption { text-align: center; font-weight: 600; max-width: 70ch; }

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(190, 225, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.lb-btn:hover { background: rgba(59, 139, 255, 0.5); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- Mobil ve tablet ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .shot--float { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .feature,
  .feature--flip { grid-template-columns: 1fr; gap: 26px; padding: 22px; }
  .feature .feature-copy,
  .feature--flip .feature-copy { order: 1; }
  .feature .feature-media,
  .feature--flip .feature-media { order: 2; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 24, 60, 0.95);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(2, 8, 28, 0.6);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
}

@media (max-width: 560px) {
  .hero { padding: 36px 0 60px; }
  .section { padding: 44px 0; }
  .steps { grid-template-columns: 1fr; }
  .thumbs { gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .lightbox { padding: 70px 12px 20px; }
  .lb-prev { left: 8px; top: auto; bottom: 14px; translate: none; }
  .lb-next { right: 8px; top: auto; bottom: 14px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
