/*
Theme Name: Longtail Ship
Theme URI: https://longtailship.web.tr
Author: Longtail Ship Studio
Author URI: https://longtailship.web.tr
Description: Longtail Ship oyun stüdyosu için sıfırdan kodlanmış, yıldız temalı animasyonlu bir WordPress teması. Ana sayfada animasyonlu hero, vizyon ve oyun tanıtım bölümleri; oyun detay ve ekip sayfaları için özel şablonlar içerir.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: longtail-ship
*/

:root{
  --bg-deep: #060911;
  --bg-panel: #0d1320;
  --accent-teal: #3fe1c4;
  --accent-amber: #f2a65a;
  --text-primary: #edeff4;
  --text-muted: #8b94a7;
  --line: rgba(255,255,255,0.09);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a{ color: inherit; }

a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

img{ max-width: 100%; display: block; }

/* ============ ÜST MENÜ (header.php) ============ */

.site-nav{
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
}

.site-nav .logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav .logo::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  display: inline-block;
}

.nav-links{
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a{
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover{ color: var(--text-primary); }

@media (max-width: 640px){
  .nav-links{ display: none; }
}

/* Sayfa üstündeki tema kendi menüsü hero'nun üzerine bindiği için
   hero bölümünü içeren şablonlarda navı absolute konumlandırıyoruz. */
.has-hero .site-nav{
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* ============ HERO (front-page.php) ============ */

.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#stars-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content{
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 96px);
  max-width: 900px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-teal);
  display: inline-block;
}

.hero-content h1{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(34px, 6.5vw, 72px);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.sub{
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 40px;
}

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary{
  background: var(--accent-amber);
  color: #2a1a08;
}

.btn-primary:hover{ transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.btn-ghost:hover{ border-color: var(--accent-teal); }

.scroll-cue{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(20px, 6vw, 96px) 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.scroll-cue .line{
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--text-muted), transparent);
}

@media (prefers-reduced-motion: no-preference){
  .scroll-cue .line{ animation: pulse-line 2.4s ease-in-out infinite; }
}

@keyframes pulse-line{
  0%, 100%{ opacity: 0.4; }
  50%{ opacity: 1; }
}

/* ============ GENEL BÖLÜM YAPISI (ana sayfa + diğer sayfalar) ============ */

.section{
  padding: clamp(60px, 10vw, 120px) clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.section h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 42px);
  max-width: 720px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.section-lead{
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  font-size: 16px;
}

/* --- Vizyon bölümü --- */

.pillars{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 48px;
  max-width: 900px;
}

.pillar{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: var(--bg-panel);
}

.pillar h3{
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--accent-teal);
}

.pillar p{
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* --- Oyunlar bölümü --- */

.games-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.game-card{
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover{
  border-color: var(--accent-teal);
  transform: translateY(-3px);
}

.game-thumb{
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 30%, rgba(63,225,196,0.18), transparent 60%),
    linear-gradient(135deg, #0d1320, #060911);
}

.game-card h3{
  font-family: var(--font-display);
  font-size: 18px;
  margin: 20px 20px 8px;
}

.game-card p{
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 20px 22px;
}

/* --- Ekip teaser (ana sayfa) --- */

.team-teaser .btn{ margin-top: 12px; }

/* ============ İÇ SAYFA BAŞLIĞI (page.php, oyun/ekip şablonları) ============ */

.page-hero{
  padding: clamp(140px, 18vw, 200px) clamp(20px, 6vw, 96px) clamp(50px, 8vw, 80px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 56px);
  margin: 14px 0 0;
  max-width: 800px;
}

.page-wrap{
  max-width: 860px;
  margin: 0 auto;
}

.page-content{
  padding: clamp(40px, 6vw, 64px) clamp(20px, 6vw, 96px) 100px;
  line-height: 1.75;
  font-size: 16px;
}

.page-content h2{
  font-family: var(--font-display);
  margin-top: 2.2em;
}

.page-content img,
.page-content iframe{
  border-radius: 10px;
  margin: 24px 0;
}

.page-content figure{ margin: 24px 0; }

/* ============ ALT BİLGİ (footer.php) ============ */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 6vw, 96px);
  color: var(--text-muted);
  font-size: 13px;
}


/* --- logo: nokta yerine site ikonu, hizalama --- */
.site-nav .logo::before{display:none !important}
.site-nav .logo{display:flex;align-items:center;gap:10px}


/* --- mobil menü (hamburger) --- */
.nav-toggle{display:none}
@media (max-width: 640px){
  .site-nav{position:relative}
  .nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;background:none;border:0;padding:10px;cursor:pointer;margin-left:auto}
  .nav-toggle span{display:block;width:22px;height:2px;background:#eef1f6;transition:transform .25s,opacity .25s}
  .site-nav.open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .site-nav.open .nav-toggle span:nth-child(2){opacity:0}
  .site-nav.open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .site-nav.open .nav-links{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#0a0d14;padding:1.2rem 1.6rem 1.6rem;gap:1.1rem;border-bottom:1px solid #232a36;z-index:60;margin:0}
}


/* --- isim önerisi silme butonu --- */
.lts-sil{background:none;border:0;color:#e07070;cursor:pointer;font-size:1.05rem;padding:0 .35rem;line-height:1}
.lts-sil:hover{color:#ff5050}


/* --- siberpunk ana sayfa hero --- */
.hero-city{background:#05060a url('https://longtailship.web.tr/wp-content/uploads/2026/07/as_bg3.png') center/cover no-repeat}
.hero-city .hero-content{margin-left:auto;max-width:640px;position:relative;z-index:3}
.hero-ship{position:absolute;left:13%;top:30%;width:min(20vw,340px);z-index:2}
.hero-ship img{display:block;width:100%;image-rendering:pixelated;filter:drop-shadow(0 22px 34px rgba(0,0,0,.6));animation:lts-sail 9s ease-in-out infinite}
@keyframes lts-sail{0%{transform:translate(0,0) rotate(-1.2deg)}50%{transform:translate(10px,-12px) rotate(1deg)}100%{transform:translate(0,0) rotate(-1.2deg)}}
@media (prefers-reduced-motion: reduce){.hero-ship img{animation:none}}
@media (max-width:780px){.hero-ship{left:8%;top:13%;width:48vw}.hero-city .hero-content{margin-left:0;padding-top:40vh}}

/* --- iç sayfa başlıklarına şehir dokusu --- */
.page-hero{background:linear-gradient(rgba(5,6,10,.6),rgba(5,6,10,.94)),url('https://longtailship.web.tr/wp-content/uploads/2026/07/as_bg3.png') center 30%/cover no-repeat;border-bottom:1px solid rgba(239,161,92,.22)}


/* hero-city metin sığdırma */
.hero-city .hero-content{padding-right:5vw;box-sizing:border-box;max-width:760px}
.hero-city h1{font-size:clamp(2.4rem,5vw,4.4rem);line-height:1.04}


/* çapa kaydırma güvenilirliği: smooth iptal sorununa karşı */
html{scroll-behavior:auto !important}


/* menü tıklanabilirlik: nav her zaman üstte */
.site-nav{z-index:100}
