/* Shared subpage styles. Google Fonts (Inter + Space+Grotesk) are loaded in each page head. */
:root {
  --bg: #050506;
  --fg: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.68);
  --card: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  --border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --accent: #e63946;
  --accent-soft: rgba(230, 57, 70, 0.16);
  --accent-line: rgba(230, 57, 70, 0.5);
  --accent-glow: rgba(230, 57, 70, 0.22);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

body {
  margin: 0;
  padding: 0 0 90px;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(230, 57, 70, 0.07), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(52, 152, 219, 0.07), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0c;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid #0a0a0c;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

h1,
h2,
h3,
h4,
.back-btn,
button,
.brand {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
}

main {
  animation: pageEnter 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sticky top bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-narrow .topbar-inner {
  max-width: 900px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.brand img {
  display: block;
  border-radius: 6px;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
}

@media (max-width: 520px) {
  .topbar-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .topbar .back-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
  }
  .brand {
    font-size: 0.66rem;
    letter-spacing: 1px;
    gap: 7px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 28px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: 0.25s;
}
.back-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); transform: translateX(-3px); }
.topbar .back-btn { margin-bottom: 0; }

/* --- Page hero --- */
.page-hero {
  margin: 4px 0 46px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 3px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.3rem);
  line-height: 1.05;
  margin: 16px 0 14px;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-sub {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* --- Store Kısmı --- */
.store-section { margin-bottom: 54px; }
.store-card {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
  box-shadow: var(--shadow);
  position: relative;
}
.store-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
}
.store-img {
  flex: 0 0 320px;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85) saturate(1.1);
}
.store-info { padding: 34px; }
.store-info h2 { margin-top: 0; color: #fff; letter-spacing: 3px; }
.store-info h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, #3498db, transparent);
  border-radius: 999px;
}
.store-info p { color: var(--muted); line-height: 1.7; }

.visit-btn {
  display: inline-block;
  padding: 13px 26px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 18px;
  transition: 0.25s;
  box-shadow: 0 10px 30px rgba(255,255,255,0.12);
}
.visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(52,152,219,0.35);
  background: #fff;
}

/* --- Filter chips --- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.chip {
  appearance: none;
  cursor: pointer;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--accent-soft);
  border-color: var(--accent-line);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* --- Projeler Izgarası --- */
.asset-grid h3 { color: #fff; margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 12px; letter-spacing: 3px; font-size: 0.95rem; }

.grid-container {
  display: grid;
  /* Burası önemli: Ekran küçülürse kutuları alt alta alır, bozulmaz */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

/* Kutu Ayarları */
.asset-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.asset-link:focus-visible { outline: none; }

.asset-box {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, background 0.3s, box-shadow 0.3s;
  height: 100%; /* Kutuları eşit boyda tutar */
  box-sizing: border-box;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.asset-box:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 60px rgba(0,0,0,0.6);
}

.asset-link:hover .asset-box,
.asset-link:focus-visible .asset-box {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-line);
  box-shadow: 0 22px 60px rgba(0,0,0,0.6), 0 0 26px var(--accent-glow);
}

/* Resim Ayarı - Kaymayı Engelleyen Kod */
.thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0d;
}

.project-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover; /* Resmi kutuya sığdırır */
  border-radius: 0;
  margin-bottom: 0;
  border: 0;
  display: block;
  filter: brightness(0.92) saturate(1.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.asset-link:hover .project-thumb,
.asset-link:focus-visible .project-thumb {
  transform: scale(1.05);
}

.thumb-badge-free {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.14);
  color: #2ecc71;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.view-details {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent);
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.asset-link:hover .view-details,
.asset-link:focus-visible .view-details {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .view-details {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Coming Soon Kutusu */
.placeholder-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 190px;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    #08080a;
  background-size: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 900;
  letter-spacing: 2px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px dashed rgba(255,255,255,0.14);
}

.incoming .placeholder-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(0, 178, 255, 0.12) 50%, transparent 75%);
  background-size: 220% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.incoming { opacity: 0.62; }
.asset-box h4 { margin: 12px 0 8px; color: #fff; font-size: 1.1rem; letter-spacing: 0.2px; }
.asset-box p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin: 0; }

[hidden] { display: none !important; }

/* --- Footer --- */
.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .incoming .placeholder-img::after { animation: none; }
  .project-thumb,
  .view-details,
  .asset-box { transition: none; }
}

/* Mobil */
@media (max-width: 768px) {
  .store-card { flex-direction: column; }
  .store-img { width: 100%; height: 200px; }
}
