/* Karion Pages - Ortak Stil */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/urbanist-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/urbanist-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/urbanist-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #a855f7;
  --accent-dark: #7c3aed;
  --bg: #0a0a0f;
  --bg2: #111118;
  --text: #f5f5f5;
  --muted: #888;
  --border: rgba(168,85,247,0.15);
  --radius: 12px;
  --content-max: 980px;
}

body {
  font-family: 'Urbanist', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

html, body, button, input, textarea, select, a, p, h1, h2, h3, h4, h5, h6, span, li, small, strong, b, label {
  font-family: 'Urbanist', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* NAV */
.k-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.k-nav-back-home {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  background: rgba(168,85,247,0.08);
}

.k-nav-back-home:hover {
  background: rgba(168,85,247,0.16);
}

.k-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-left: 0.25rem;
}

.k-nav-logo img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.k-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.k-nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.2s;
}

.k-nav-links a:hover { color: var(--text); }
.k-nav-links a.active { color: var(--accent); }

.k-nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  transition: background 0.2s;
}

.k-nav-cta:hover { background: var(--accent-dark); }

/* HERO ALANI */
.k-hero {
  padding: 132px 1.25rem 56px;
  max-width: calc(var(--content-max) + 2.5rem);
  margin: 0 auto;
}

.k-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.k-breadcrumb a { color: var(--accent); text-decoration: none; }
.k-breadcrumb a:hover { text-decoration: underline; }
.k-breadcrumb span { color: var(--muted); }

.k-tag {
  display: inline-block;
  background: rgba(168,85,247,0.12);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

h1.k-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.k-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 2.5rem;
}

/* KART */
.k-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.k-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-4px);
}

.k-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.k-card-body { padding: 1.5rem; }
.k-card-body h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.k-card-body p { color: var(--muted); font-size: 0.9rem; }

/* GRID */
.k-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

/* MAIN CONTENT */
.k-content {
  max-width: calc(var(--content-max) + 2.5rem);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

/* PROJECT DETAIL */
.k-project-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  display: block;
}

.k-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.k-meta-item label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.k-meta-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.k-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.k-prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #d7c7ff;
  margin: 1.25rem 0 0.55rem;
  letter-spacing: 0.01em;
}

.k-prose p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.78;
}

.k-prose ul {
  padding-left: 1.3rem;
  color: var(--muted);
  margin: 0.2rem 0 1rem;
}

.k-prose li {
  margin-bottom: 0.42rem;
  line-height: 1.65;
}

.k-gallery-note {
  color: var(--muted);
  margin-bottom: 1rem;
}

.k-mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 136px;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.k-mockup-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  position: relative;
}

.k-mockup-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.k-mockup-item:nth-child(2) { grid-row: span 4; }
.k-mockup-item:nth-child(5) { grid-column: span 2; }

.k-mockup-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.k-mockup-item img,
.k-mockup-item img.k-mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fp-desktop-x, 50%) var(--fp-desktop-y, 50%);
  display: block;
}

@media (max-width: 768px) {
  .k-mockup-item img,
  .k-mockup-item img.k-mockup-image {
    object-position: var(--fp-mobile-x, 50%) var(--fp-mobile-y, 50%);
  }
}

.k-mockup-item figcaption {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.7rem;
  color: #f2f0ff;
  background: rgba(10, 10, 15, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.k-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 8, 0.86);
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.k-lightbox.is-open {
  display: flex;
}

.k-lightbox-dialog {
  position: relative;
  width: min(1080px, 96vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.k-lightbox-stage {
  width: 100%;
  touch-action: pan-y;
}

.k-lightbox-img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: #0c0c12;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.22),
    0 0 18px rgba(168, 85, 247, 0.22),
    0 0 38px rgba(124, 58, 237, 0.16);
  user-select: none;
}

.k-lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #f7f6ff;
  background: rgba(10, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  max-width: calc(100% - 6rem);
}

.k-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 13, 21, 0.78);
  color: #faf9ff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.k-lightbox-btn:hover {
  background: rgba(168, 85, 247, 0.34);
}

.k-lightbox-prev { left: 0.55rem; }
.k-lightbox-next { right: 0.55rem; }

.k-lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 13, 21, 0.88);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.k-lightbox-close:hover {
  background: rgba(168, 85, 247, 0.34);
}

/* BUTONLAR */
.k-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.k-btn-primary { background: var(--accent); color: #fff; }
.k-btn-primary:hover { background: var(--accent-dark); }
.k-btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.k-btn-outline:hover { background: var(--accent); color: #fff; }

.k-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* BLOG */
.k-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.k-blog-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-4px);
}

.k-blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

.k-blog-card-body { padding: 1.5rem; flex: 1; }
.k-blog-card-date { font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }
.k-blog-card-body h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.k-blog-card-body p { font-size: 0.875rem; color: var(--muted); }

.k-post {
  max-width: 880px;
  margin: 42px auto;
  padding: 0 16px 24px;
}

.k-post h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1.05rem;
  letter-spacing: -0.01em;
}

.k-post h2 {
  margin: 2.1rem 0 0.82rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.25;
}

.k-post h3 {
  margin: 1.6rem 0 0.65rem;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: #e6e0ff;
}

.k-post h2 + p,
.k-post h3 + p {
  margin-top: 0;
}

.k-post p {
  margin: 0 0 1rem;
  font-size: 1.03rem !important;
  line-height: 1.82 !important;
  letter-spacing: 0.003em;
}

.k-post p:first-of-type {
  font-size: 1.1rem;
  color: #d4c9ff;
  border-left: 3px solid rgba(168, 85, 247, 0.75);
  padding-left: 0.8rem;
  margin-bottom: 1.2rem;
}

.k-post ul,
.k-post ol {
  margin: 0.7rem 0 1.1rem !important;
  padding-left: 1.2rem !important;
}

.k-post li {
  margin: 0.42rem 0 !important;
}

.k-post blockquote {
  margin: 1.15rem 0;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid rgba(168, 85, 247, 0.8);
  border-radius: 0 10px 10px 0;
  background: rgba(124, 58, 237, 0.1);
  color: #e6dcff;
}

.k-post strong {
  color: #efe9ff;
}

.k-post-meta {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(168, 85, 247, 0.36);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  margin-bottom: 0.95rem;
}

.k-post-back-row {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 0 16px;
}

.k-post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(168, 85, 247, 0.36);
  background: rgba(124, 58, 237, 0.14);
  color: #ece8ff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.k-related-posts {
  max-width: 880px;
  margin: 1.5rem auto 2.2rem;
  padding: 0 16px;
}

.k-related-posts h3 {
  font-size: 1rem;
  margin: 0 0 0.7rem;
  color: #ece8ff;
}

.k-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.k-related-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  padding: 0.62rem;
  text-decoration: none;
  color: var(--text);
}

.k-related-item strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.k-related-item span {
  font-size: 0.74rem;
  color: var(--muted);
}

/* FOOTER */
.k-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.k-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  list-style: none;
  flex-wrap: wrap;
}

.k-footer-links a {
  text-decoration: none;
  color: #e6e5ee;
  font-family: "Urbanist", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.k-footer-links a:hover { color: #c8bfff; }

/* NEXT PROJECT */
.k-next {
  border-top: 1px solid var(--border);
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.k-next-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  flex: 0 0 auto;
}

.k-next-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}

.k-next-label { font-size: 0.75rem; color: var(--muted); text-transform: none; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.k-next-title { font-size: 1.28rem; font-weight: 900; }
.k-next a { text-decoration: none; color: var(--text); transition: color 0.2s; }
.k-next a:hover { color: var(--accent); }

.k-next .k-btn-group {
  margin-top: 0.5rem;
}

/* PROJECT REFERENCES */
.k-project-references {
  max-width: calc(var(--content-max) + 2.5rem);
  margin: 0 auto 1.8rem;
  padding: 0 1.25rem;
}

.k-project-references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.k-project-reference-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 16, 32, 0.98), rgba(12, 11, 21, 0.98));
  padding: 0.95rem;
}

.k-project-reference-stars {
  color: #f6c744;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.k-project-reference-comment {
  margin: 0;
  color: #ece9ff;
  font-size: 0.89rem;
  line-height: 1.55;
  min-height: 84px;
}

.k-project-reference-author {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .k-nav { padding: 0 1.25rem; }
  .k-nav-back-home { left: 0.75rem; width: 30px; height: 30px; }
  .k-nav-links { display: none; }
  .k-nav-logo { margin-left: 2rem; }
  .k-hero { padding: 100px 1.25rem 42px; }
  .k-grid { padding: 0 1.25rem 3rem; }
  .k-content { padding: 0.75rem 1.25rem 3rem; }
  .k-next { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.25rem; }
  .k-mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 136px;
    gap: 0.75rem;
  }
  .k-mockup-item {
    min-width: 0;
    height: auto;
  }
  .k-mockup-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
  .k-mockup-item:nth-child(2) {
    grid-row: span 2;
  }
  .k-mockup-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .k-lightbox-dialog {
    width: min(96vw, 520px);
    height: 88vh;
  }

  .k-lightbox-stage {
    width: min(94vw, 54vh);
    height: 100%;
  }

  .k-lightbox-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    box-shadow:
      0 0 0 1px rgba(168, 85, 247, 0.3),
      0 0 20px rgba(168, 85, 247, 0.3),
      0 0 44px rgba(124, 58, 237, 0.24);
  }

  .k-post p {
    font-size: 1rem !important;
    line-height: 1.74 !important;
  }

  .k-related-grid {
    grid-template-columns: 1fr;
  }

  .k-project-references-grid {
    grid-template-columns: 1fr;
  }

  .k-project-reference-comment {
    min-height: 0;
  }
}

@media (max-width: 540px) {
  .k-mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 136px;
    gap: 0.75rem;
  }

  .k-lightbox {
    padding: 0.55rem;
  }

  .k-lightbox-btn,
  .k-lightbox-close {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .k-lightbox-prev { left: 0.4rem; }
  .k-lightbox-next { right: 0.4rem; }

  .k-lightbox-caption {
    font-size: 0.74rem;
    bottom: 0.5rem;
    max-width: calc(100% - 4.5rem);
  }
}
