/* Yeni yaratıcı portfolyo temaları */

body.theme-brutalist {
  color: #111; background: #f5ff58; font-family: Inter, Arial, sans-serif;
}
.theme-brutalist .site-nav {
  top: 16px; border: 3px solid #111; border-radius: 0;
  background: #fff; box-shadow: 7px 7px 0 #111;
}
.theme-brutalist .site-mark::before { border-radius: 0; box-shadow: none; }
.theme-brutalist .wrap { max-width: 1120px; }
.theme-brutalist .hero {
  margin-top: 42px; padding: 54px !important; border: 3px solid #111;
  text-align: left; background: #ff6b45; box-shadow: 12px 12px 0 #111;
}
.theme-brutalist .hero h1 {
  max-width: 900px; font-size: clamp(46px, 8vw, 96px); font-weight: 900;
  line-height: .88; letter-spacing: -.075em; text-transform: uppercase;
}
.theme-brutalist .hero .headline {
  display: inline-block; padding: 6px 10px; border: 2px solid #111;
  color: #111; background: #fff;
}
.theme-brutalist .hero .contact, .theme-brutalist .socials { justify-content: flex-start; color: #111; }
.theme-brutalist .socials a { border: 2px solid #111; border-radius: 0; }
.theme-brutalist section.block {
  margin-top: 34px; padding: 32px; border: 3px solid #111;
  background: #fff; box-shadow: 9px 9px 0 #111;
}
.theme-brutalist section.block:nth-of-type(even) { background: #b9a7ff; }
.theme-brutalist section.block h2 { display: inline-block; padding: 5px 9px; color: #fff; background: #111; }
.theme-brutalist [data-portfolio-section="projects"] .entry { padding: 20px; border: 2px solid #111; background: #f5ff58; }
.theme-brutalist .site-contact { border: 3px solid #111; border-radius: 0; color: #fff; background: #111; box-shadow: 10px 10px 0 #ff6b45; }

body.theme-glass {
  color: #f4f7ff;
  background: radial-gradient(circle at 15% 10%, #3b1d74 0, transparent 32%),
              radial-gradient(circle at 85% 24%, #075985 0, transparent 30%), #090b16;
  background-attachment: fixed;
}
.theme-glass .site-nav {
  color: #fff; border-color: rgba(255,255,255,.16);
  background: rgba(13,16,35,.58); box-shadow: 0 18px 55px rgba(0,0,0,.25);
}
.theme-glass .wrap { max-width: 1050px; }
.theme-glass .hero {
  position: relative; margin-top: 30px; padding: 68px 42px !important;
  border: 1px solid rgba(255,255,255,.18); border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 30px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(22px);
}
.theme-glass .hero::after {
  content: ""; position: absolute; right: 8%; top: 14%; width: 130px; height: 130px;
  border-radius: 35% 65% 58% 42%; background: linear-gradient(135deg, var(--accent), #22d3ee); opacity: .65;
}
.theme-glass .hero h1 { position: relative; z-index: 1; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.06em; }
.theme-glass .hero .contact, .theme-glass .entry-org, .theme-glass .skill-row span,
.theme-glass .cert-org, .theme-glass .lang-level { color: #b8c0d9; }
.theme-glass section.block {
  padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px;
  background: rgba(255,255,255,.07); box-shadow: 0 20px 65px rgba(0,0,0,.16); backdrop-filter: blur(18px);
}
.theme-glass [data-portfolio-section="projects"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.theme-glass [data-portfolio-section="projects"] > h2 { grid-column: 1 / -1; }
.theme-glass [data-portfolio-section="projects"] .entry {
  margin: 0; padding: 22px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; background: rgba(3,6,18,.34);
}
.theme-glass .site-contact { border: 1px solid rgba(255,255,255,.15); background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(8,145,178,.4)); }

body.theme-playground { color: #211d34; background: #eee9ff; }
.theme-playground .site-nav { border: 2px solid #211d34; border-radius: 999px; background: #fff; box-shadow: 0 8px 0 #211d34; }
.theme-playground .wrap { max-width: 1120px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.theme-playground .hero {
  grid-column: 1 / -1; position: relative; margin-top: 34px; padding: 64px 38px !important;
  border: 2px solid #211d34; border-radius: 42px 42px 120px 42px; background: #ffcf4a; overflow: hidden;
}
.theme-playground .hero::before { content: "✦"; position: absolute; right: 6%; bottom: -12%; color: #ff5d8f; font-size: 170px; line-height: 1; }
.theme-playground .hero h1 { position: relative; font-size: clamp(44px, 8vw, 88px); line-height: .9; letter-spacing: -.07em; }
.theme-playground .hero-photo { border: 3px solid #211d34; border-radius: 38% 62% 52% 48%; box-shadow: 10px 10px 0 #ff5d8f; }
.theme-playground section.block {
  grid-column: span 6; margin: 0; padding: 30px; border: 2px solid #211d34;
  border-radius: 28px; background: #fff;
}
.theme-playground section.block:nth-of-type(3n) { background: #a8f0d1; }
.theme-playground section.block:nth-of-type(3n+1) { background: #ffb6ce; }
.theme-playground [data-portfolio-section="experience"], .theme-playground [data-portfolio-section="projects"] { grid-column: 1 / -1; }
.theme-playground section.block h2 { color: #211d34; }
.theme-playground .entry { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.58); }
.theme-playground .site-contact, .theme-playground .footer { grid-column: 1 / -1; }
.theme-playground .site-contact { color: #fff; background: #5f43d7; }

@media (max-width: 700px) {
  .theme-glass [data-portfolio-section="projects"] { grid-template-columns: 1fr; }
  .theme-playground .wrap { display: flex; }
  .theme-playground section.block { width: 100%; }
  .theme-brutalist .hero { padding: 38px 22px !important; }
  .theme-playground .hero { border-radius: 28px 28px 70px 28px; }
  .theme-glass .hero::after { width: 70px; height: 70px; opacity: .35; }
}


/* ================= 2026 portfolyo temaları ================= */

/* MONOLITH — devasa tipografi, siyah-beyaz, tam genişlikte bölüm ayrımları. */
body.theme-monolith { color: #0d0d0d; background: #fff; font-family: Inter, Arial, sans-serif; }
.theme-monolith .site-nav { max-width: 1240px; border-bottom: 2px solid #0d0d0d; background: #fff; backdrop-filter: none; }
.theme-monolith .wrap { max-width: 1240px; }
.theme-monolith .hero { padding: 96px 0 72px !important; text-align: left; border-bottom: 2px solid #0d0d0d; }
.theme-monolith .hero h1 { font-size: clamp(52px, 9vw, 132px); font-weight: 800; line-height: .86; letter-spacing: -.06em; }
.theme-monolith .hero .headline { margin-top: 22px; color: #0d0d0d; font-size: 20px; font-weight: 500; }
.theme-monolith .hero .contact, .theme-monolith .socials { justify-content: flex-start; }
.theme-monolith .hero-photo, .theme-monolith .hero-photo-placeholder { margin: 0 0 30px; border-radius: 0; }
.theme-monolith section.block { padding: 54px 0; border-bottom: 1px solid #0d0d0d; }
.theme-monolith section.block > h2 { margin-bottom: 34px; color: #0d0d0d; font-size: 11px; font-weight: 800; letter-spacing: .3em; }
.theme-monolith .entry { padding: 22px 0; border-top: 1px solid #dcdcdc; }
.theme-monolith .entry-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.theme-monolith .site-contact { border-radius: 0; background: #0d0d0d; }

/* NEON NIGHT — koyu zemin üzerinde neon çerçeve ve parlama vurguları. */
body.theme-neon { color: #dfe6f5; background: #06070d; font-family: 'Space Grotesk', Inter, sans-serif; }
.theme-neon .site-nav { max-width: 1020px; color: #dfe6f5; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(6,7,13,.82); }
.theme-neon .wrap { max-width: 1020px; }
.theme-neon .hero { min-height: 74vh; }
.theme-neon .hero h1 { font-size: clamp(40px, 6.5vw, 74px); letter-spacing: -.035em; text-shadow: 0 0 34px color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-neon .hero .headline { color: var(--accent); letter-spacing: .04em; }
.theme-neon .hero .contact, .theme-neon .entry-org, .theme-neon .skill-row span, .theme-neon .cert-org, .theme-neon .lang-level { color: #8e99b3; }
.theme-neon .hero-photo, .theme-neon .hero-photo-placeholder { border: 2px solid var(--accent); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 50%, transparent); }
.theme-neon section.block { margin-top: 22px; padding: 30px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.theme-neon section.block > h2 { color: var(--accent); letter-spacing: .22em; }
.theme-neon [data-portfolio-section="projects"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.theme-neon [data-portfolio-section="projects"] > h2 { grid-column: 1 / -1; }
.theme-neon [data-portfolio-section="projects"] .entry { margin: 0; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0b0d17; transition: border-color .2s, box-shadow .2s; }
.theme-neon [data-portfolio-section="projects"] .entry:hover { border-color: var(--accent); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 28%, transparent); }
.theme-neon .site-contact { border: 1px solid var(--accent); background: #0b0d17; box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }

/* PASTEL — yumuşak pastel kartlar, yuvarlak köşeler; yaratıcı ve eğitim profilleri için. */
body.theme-pastel { color: #3b3646; background: #fdf7f3; font-family: Poppins, Inter, sans-serif; }
.theme-pastel .site-nav { max-width: 1040px; border-bottom: 0; background: rgba(253,247,243,.9); }
.theme-pastel .wrap { max-width: 1040px; }
.theme-pastel .hero { min-height: 66vh; }
.theme-pastel .hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; letter-spacing: -.03em; }
.theme-pastel .hero-photo, .theme-pastel .hero-photo-placeholder { border: 6px solid #fff; box-shadow: 0 18px 40px rgba(120,90,120,.14); }
.theme-pastel section.block { margin-top: 20px; padding: 32px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 12px 34px rgba(120,90,120,.07); }
.theme-pastel section.block:nth-of-type(3n+1) { background: #fdeee7; }
.theme-pastel section.block:nth-of-type(3n+2) { background: #eaf3f1; }
.theme-pastel section.block:nth-of-type(3n) { background: #f0edfa; }
.theme-pastel section.block > h2 { color: #6b5f7d; letter-spacing: .16em; }
.theme-pastel [data-portfolio-section="projects"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.theme-pastel [data-portfolio-section="projects"] > h2 { grid-column: 1 / -1; }
.theme-pastel [data-portfolio-section="projects"] .entry { margin: 0; padding: 24px; border-radius: 20px; background: rgba(255,255,255,.75); }
.theme-pastel .site-contact { border-radius: 28px; background: #3b3646; }

/* SABİT YAN MENÜ — solda sabit kimlik ve gezinme, sağda kayan içerik. */
body.theme-sidebar { color: #23262d; background: #fff; font-family: Inter, Arial, sans-serif; }
.theme-sidebar .site-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 26px; width: 250px; max-width: none; margin: 0; padding: 40px 28px; border-right: 1px solid #e6e6ec; border-bottom: 0; background: #fafafb; backdrop-filter: none; }
.theme-sidebar .site-nav > div { flex-direction: column; gap: 13px; }
.theme-sidebar .site-mark { font-size: 17px; }
.theme-sidebar .wrap { max-width: 820px; margin-left: 250px; padding-left: 44px; padding-right: 28px; }
.theme-sidebar .hero { min-height: auto; padding: 64px 0 34px !important; text-align: left; align-items: flex-start; }
.theme-sidebar .hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.03em; }
.theme-sidebar .hero .contact, .theme-sidebar .socials { justify-content: flex-start; }
.theme-sidebar .hero-photo, .theme-sidebar .hero-photo-placeholder { margin: 0 0 22px; }
.theme-sidebar section.block { padding: 34px 0; border-top: 1px solid #ededf1; }
.theme-sidebar section.block > h2 { letter-spacing: .2em; }
.theme-sidebar .entry { padding-left: 16px; border-left: 2px solid var(--accent); }
@media (max-width: 900px) {
  /* Dar ekranda yan menü üstte yatay şeride döner. */
  .theme-sidebar .site-nav { position: sticky; flex-direction: row; align-items: center; justify-content: space-between; width: auto; padding: 14px 20px; border-right: 0; border-bottom: 1px solid #e6e6ec; }
  .theme-sidebar .site-nav > div { flex-direction: row; gap: 18px; }
  .theme-sidebar .wrap { margin-left: 0; padding-left: 20px; padding-right: 20px; }
}


/* ================= Hareket (animasyon) katmanı =================
   Öğeler varsayılan olarak GÖRÜNÜR başlar. Gizleme yalnızca JS `motion-ready`
   sınıfını ekledikten sonra devreye girer; böylece JS çalışmazsa veya hareket
   azaltma açıksa içerik hiçbir koşulda kaybolmaz. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready section.block,
  .motion-ready .entry,
  .motion-ready .skill-row,
  .motion-ready .site-contact {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .is-visible { opacity: 1 !important; transform: none !important; }

  /* Belirgin seviyede hareket daha uzun mesafeli ve hafif ölçekli. */
  .motion-belirgin.motion-ready section.block,
  .motion-belirgin.motion-ready .entry { transform: translateY(34px) scale(.985); }

  /* Kart/proje öğelerinde imleç etkileşimi. */
  .motion-hafif [data-portfolio-section="projects"] .entry,
  .motion-belirgin [data-portfolio-section="projects"] .entry { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
  .motion-belirgin [data-portfolio-section="projects"] .entry:hover { transform: translateY(-5px); }
  .motion-hafif [data-portfolio-section="projects"] .entry:hover { transform: translateY(-2px); }

  /* Bölüm başlıklarının altındaki çizgi görünürken açılır. */
  .motion-belirgin.motion-ready section.block > h2 { position: relative; }
  .motion-belirgin.motion-ready section.block > h2::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--accent); transition: width .7s cubic-bezier(.22,.61,.36,1) .25s;
  }
  .motion-belirgin.motion-ready section.block.is-visible > h2::after { width: 46px; }
}

/* Hareketli gradyan zeminler — gradient kullanan temalarda canlılık sağlar.
   Yalnızca hareket açıkken çalışır; `background-position` animasyonu düzen
   hesabını tetiklemediği için ucuzdur. */
@keyframes pc-gradient-drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  body.theme-aurora:not(.motion-kapali),
  body.theme-glass:not(.motion-kapali),
  body.theme-playground:not(.motion-kapali),
  body.theme-horizon:not(.motion-kapali) {
    background-size: 220% 220%;
    animation: pc-gradient-drift 26s ease-in-out infinite;
  }
  /* Neon temada başlık vurgusu yavaşça nefes alır. */
  @keyframes pc-neon-pulse { 0%, 100% { text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 42%, transparent); } 50% { text-shadow: 0 0 46px color-mix(in srgb, var(--accent) 72%, transparent); } }
  body.theme-neon:not(.motion-kapali) .hero h1 { animation: pc-neon-pulse 5.5s ease-in-out infinite; }
}

/* ================= Düzen varyantları =================
   Temadan bağımsız: her tema bu dört dizilimden biriyle kullanılabilir. */

/* YAN YANA — bölümler iki sütuna dizilir, "Hakkımda" tam genişlikte kalır. */
.layout-yanyana .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.layout-yanyana .site-nav,
.layout-yanyana .hero,
.layout-yanyana .site-contact,
.layout-yanyana .footer,
.layout-yanyana [data-portfolio-section="summary"] { grid-column: 1 / -1; }
.layout-yanyana section.block { min-width: 0; }

/* IZGARA — bölümler otomatik dolan bir ızgaraya yerleşir. */
.layout-izgara .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.layout-izgara .site-nav,
.layout-izgara .hero,
.layout-izgara .site-contact,
.layout-izgara .footer { grid-column: 1 / -1; }
.layout-izgara section.block { min-width: 0; }
.layout-izgara [data-portfolio-section="projects"],
.layout-izgara [data-portfolio-section="experience"] { grid-column: span 2; }

/* KARTLAR — her bölüm belirgin bir kart; tek sütun ama ayrık bloklar hâlinde. */
.layout-kartlar section.block {
  margin-top: 18px; padding: 30px; border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 20px; background: color-mix(in srgb, currentColor 3%, transparent);
}
.layout-kartlar section.block > h2 { margin-top: 0; }

@media (max-width: 860px) {
  /* Dar ekranda çok sütunlu düzenler tek sütuna iner. */
  .layout-yanyana .wrap,
  .layout-izgara .wrap { grid-template-columns: 1fr; }
  .layout-izgara [data-portfolio-section="projects"],
  .layout-izgara [data-portfolio-section="experience"] { grid-column: auto; }
}


/* ================= Kart küçük resmi modu (?kart=1) =================
   Karşılama alanı normalde ekran yüksekliğine göre boyutlanır (min-height: 7x vh).
   Küçük bir kart içinde bu, neredeyse boş bir şerit olarak görünüyordu. Kart modunda
   yükseklik içeriğe göre daralır ve küçük resimde gerçek içerik görünür. */
.design-card-preview .hero { min-height: 0 !important; padding-top: 34px !important; padding-bottom: 26px !important; }
.design-card-preview .site-nav { position: static !important; }
/* Küçük resimde animasyon beklemeye gerek yok — içerik ilk karede tam görünür. */
.design-card-preview section.block,
.design-card-preview .entry,
.design-card-preview .skill-row,
.design-card-preview .site-contact { opacity: 1 !important; transform: none !important; }
/* Kart bir bağlantının içinde; sayfa kendi kaydırma çubuğunu göstermemeli. */
.design-card-preview { overflow: hidden !important; }
