/* =========================
   Base & Reset
========================= */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Arial, sans-serif;
  color:#f5f5f5;
  background:#0d0d1a;
  overflow-x:hidden;
}
:root{
  --bg: #0d0d1a;
  --text: #f5f5f5;
  --muted: #c9c9c9;
  --primary: #7289da;
  --accent: #f39c12;
  --gold: #ffd36b;
  --glass: rgba(255,255,255,.08);
}

/* Metin seçimi */
::selection{ background: rgba(243,156,18,.35); color:#fff; }

/* Başlık fontu */
h1, h2{
  font-family: 'Cinzel', 'Montserrat', serif;
  letter-spacing: .02em;
}

/* Linkler */
a{
  text-decoration: none;
  color: #ddd;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
a:hover{
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

/* Skip to content */
.skip-link{
  position:absolute; left:-9999px; top:auto;
  background:#000; color:#fff; padding:10px 14px; border-radius:10px;
  z-index:9999;
}
.skip-link:focus{ left:20px; top:70px; }

/* Focus görünürlüğü */
a:focus-visible,
.button:focus-visible,
.button-3d:focus-visible {
  outline: 3px solid rgba(255, 211, 107, .9);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Nav aktif link */
.nav a.is-active{
  color:#fff;
  border-bottom-color: var(--gold);
}

/* Ekran okuyucuya özel */
.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden; clip: rect(1px,1px,1px,1px);
  white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .neon-pulse{ animation: none !important; }
  .button-3d:hover::after{ animation: none !important; opacity: 0 !important; }
}

/* =========================
   Top Navigation
========================= */
.topbar{
  position:fixed; top:0; left:0; right:0; height:60px; z-index:10;
  display:flex; align-items:center; justify-content:space-between; padding:0 20px;
  background:rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.brand{ font-weight:800; color:#f39c12; display:flex; gap:8px; align-items:center; letter-spacing:.02em; }
.logo-dot{ width:10px; height:10px; border-radius:50%; background:#f39c12; }
.nav a{ color:#ddd; margin-left:16px; text-decoration:none; font-size:.95rem; border-bottom:1px solid transparent; }
.nav a:hover{ color:#fff; border-bottom-color: rgba(255,255,255,.25); }
.nav .button.small{ margin-left:16px; border-bottom:none; }
.button{
  background:#7289da; color:#fff; padding:14px 28px; border-radius:12px;
  text-decoration:none; font-weight:800; transition:transform .25s, background .25s;
}
.button:hover{ transform: translateY(-2px); background:#5b6eae; }
.button.small{ padding:8px 14px; border-radius:10px; }

/* =========================
   Layout
========================= */
main{ height:auto; /* overflow-y:auto; */ }
section{
  min-height:100vh;
  position:relative;
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding:100px 20px;
  scroll-margin-top: 80px; /* fixed navbar için */
}

/* =========================
   Typography & Containers
========================= */
h1{ font-size:clamp(2.6rem,6vw,4rem); color:#f7c66a; margin:10px 0; }
h2{ font-size:clamp(2rem,4.5vw,2.8rem); color:#f7c66a; margin-bottom:12px; }
h3{ font-size:1.15rem; margin-bottom:6px; }
p { font-size:1.1rem; color:#e9e9e9; margin:0 auto 22px; max-width:760px; }

.content-box{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px; border-radius: 16px; backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  max-width: 1000px; width: min(92vw, 1000px);
}

/* =========================
   Parallax Backgrounds
========================= */
.parallax-bg{ background-position:center 0; background-size:cover; background-repeat:no-repeat; will-change: background-position; }
.bg-members{ background-image: url('images/members.jpg'); }
.bg-raids  { background-image: url('images/raid.jpg'); }
.bg-media  { background-image: url('images/media.jpg'); }

@media (max-width: 640px){
  .parallax-bg{ background-position: center center !important; }
}

/* =========================
   HERO Section
========================= */
#hero{
  overflow:hidden; padding:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(60,120,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(255,120,60,.12), transparent 60%),
    linear-gradient(180deg, #0f2027, #203a43, #2c5364);
}
#bg-canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.hero-layer{ position:absolute; width:140%; left:50%; transform:translateX(-50%); pointer-events:none; filter:blur(1px);}
.layer-back { bottom:-8vh; z-index:1; opacity:.55; }
.layer-front{ bottom:-4vh; z-index:2; opacity:.65; filter:blur(0.5px); }

.hero-content{ position:relative; z-index:3; }
.guild-logo {
  width:min(280px,30vw);  /* daha kompakt ve orantılı */
  height:auto;
  margin:0 auto 18px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
  transform: translateY(8px) scale(.98);
}

.neon-pulse{ animation: neonPulse 2.8s ease-in-out infinite; }
@keyframes neonPulse{
  0%,100%{ filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(80,200,255,.45)); }
  50%{ filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)) drop-shadow(0 0 26px rgba(80,200,255,.85)); }
}
.hero-title.gradient-text{
  background: linear-gradient(90deg, #ffd36b, #f39c12 35%, #ffd36b 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 20px rgba(243,156,18,.15);
}
.hero-sub{ font-size:clamp(1.05rem, 2.4vw, 1.2rem); color:#e9e9e9; margin-bottom:22px; }

/* 3D / Shiny CTA */
.button-3d{
  position:relative; display:inline-flex; align-items:center; gap:10px;
  background: linear-gradient(180deg, #7b8df0, #657adf);
  border:1px solid rgba(255,255,255,.18);
  padding:14px 28px; border-radius:14px; font-weight:800; letter-spacing:.02em;
  box-shadow: 0 10px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18);
  overflow:hidden;
}
.button-3d span{ position:relative; z-index:2; }
.button-3d::before{
  content:""; position:absolute; inset:0; background:
    radial-gradient(600px 200px at -10% 0%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(600px 200px at 110% 100%, rgba(255,255,255,.18), transparent 60%);
  opacity:.6; transition:opacity .3s ease;
}
.button-3d::after{
  content:""; position:absolute; top:0; left:-40%; width:40%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); filter: blur(2px); opacity:0;
}
.button-3d:hover{ transform: translateY(-2px); }
.button-3d:hover::after{ animation: shine 900ms ease; opacity:1; }
.button-3d:active,
.button-3d:focus-visible:active { transform: translateY(1px) scale(.98); }
@keyframes shine{ from{ left:-40%; } to{ left:120%; } }

/* Hero CTA grubu */
.hero-ctas {
  display: flex;
  flex-direction: column;   /* her zaman alt alta */
  align-items: center;      /* ortalı */
  gap: 18px;
  margin-top: 25px;
}

/* Press effect */
.pressable{
  transform: translateY(0);
  box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 16px 24px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  will-change: transform, box-shadow;
}
.pressable:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 0 rgba(0,0,0,.35), 0 20px 28px rgba(0,0,0,.38);
}
.pressable:active { transform: scale(0.95); box-shadow: inset 0 4px 8px rgba(0,0,0,.35); }

/* Apply Now Secondary */
.button-3d--secondary {
  background: linear-gradient(180deg, #ffd36b, #e6b800);
  color: #000;
}
.button-3d--secondary:hover {
  background: linear-gradient(180deg, #ffcc33, #d4a300);
}

/* Scroll hint */
.scroll-indicator{ position:absolute; bottom:16px; left:50%; transform:translateX(-50%); font-size:.9rem; opacity:.85; letter-spacing:.12em; animation:bounce 1.8s infinite; }
@keyframes bounce{ 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,-8px);} }

/* =========================
   Members
========================= */
#members {
  position: relative;
  padding: 80px 20px;
  background: url('images/members-bg-aurora.png') center/cover no-repeat;
}
.members-container{
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.members-title {
  position: absolute;
  top: 8%; left: 50%; transform: translateX(-50%);
  font-size: 2.5rem; font-weight: 700; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); z-index: 2;
}
.members-image {
  display: block;
  width: min(80vw, 800px);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  will-change: transform, opacity;
}
/* pseudo-layers kapalı */
#members::before,
#members::after { content: none !important; display:none !important; }

/* =========================
   Raids / Cards / Timeline
========================= */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:14px 0 24px;}
.card{ background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.08); padding:18px; border-radius:14px;}
.timeline{ position:relative; margin-top:10px; padding:20px 0; }
.t-dot{ position:absolute; left:50%; top:0; bottom:0; width:2px; background:linear-gradient(#ffd36b,#f39c12); transform:translateX(-50%); }
.t-item{ position:relative; width:46%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:12px; margin:16px 0;}
.t-item.left{ left:0; }
.t-item.right{ left:54%; }

/* =========================
   Media Grid
========================= */
.media-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:10px;}
.media-grid img{
  width:100%;
  aspect-ratio: 4 / 3;     /* CLS için sabit oran */
  object-fit:cover;
  border-radius:12px;
  transition:transform .35s ease, filter .35s ease;
}
.media-grid img:hover{ transform: scale(1.04); filter: brightness(1.05); }

/* =========================
   Apply Form (NEW)
========================= */
#apply .content-box { text-align:left; }
.req { color:#ffd36b; margin-left:4px; }
.form-grid{ display:grid; gap:14px; grid-template-columns:1fr 1fr; margin:14px 0; }
@media(max-width:760px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label,.label{ font-weight:600; color:#f7c66a; }
.field input,.field select,.field textarea{
  background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.12);
  color:#fff; border-radius:12px; padding:12px 14px; font-size:1rem;
}
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.chips input{ accent-color:#ffd36b; }
.agree{ margin:12px 0 4px; color:#ddd; }
.actions{ margin-top:14px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
#applyStatus{ font-size:.95rem; color:#ffd36b; }

/* ---- Validation (Errors) ---- */
.error-message{
  color:#ff6b6b;
  font-size:.85rem;
  margin-top:4px;
}
.field input:invalid,
.field select:invalid,
.field textarea:invalid{
  border-color:#ff6b6b;
  box-shadow: 0 0 0 2px rgba(255,107,107,.08);
}

/* =========================
   Animations
========================= */
.fade-in{ opacity:0; transform:translateY(40px); transition:opacity 1s ease, transform 1s ease; }
.fade-in.visible{ opacity:1; transform:translateY(0); }
.progress-animate{ transition: transform .3s linear, opacity .3s linear; will-change: transform, opacity; }

/* Epic WoW tarzı varyantlar (opsiyonel) */
@keyframes fadeGlow {
  0% { opacity: 0; transform: scale(0.85); filter: blur(6px) brightness(0.7); text-shadow: 0 0 20px rgba(0, 194, 255, 0.6); }
  60% { opacity: 1; transform: scale(1.05); filter: blur(0px) brightness(1); text-shadow: 0 0 25px rgba(0, 194, 255, 0.9), 0 0 40px rgba(0, 194, 255, 0.6); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 12px rgba(0, 194, 255, 0.8); }
}
@keyframes slideEpic {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(8px); }
  80% { opacity: 1; transform: translateY(-5px) scale(1.02); filter: blur(0); }
  100% { transform: translateY(0) scale(1); }
}
.fade-epic { animation: fadeGlow 1.8s ease forwards; }
.slide-epic { animation: slideEpic 1.5s cubic-bezier(0.25, 1, 0.3, 1) forwards; }

/* =========================
   Footer
========================= */
.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}
.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-links{
  list-style: none;
  display: flex;
  gap: 14px;
}
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color:#fff; }

/* =========================
   Responsive
========================= */
@media(max-width:1000px){
  .t-item{ width:80%; left:10% !important; }
}
@media(max-width:900px){
  .cards, .media-grid{ grid-template-columns:1fr; }
  .t-item{ width:92%; left:4% !important; }
  .members-image { width: 92vw; max-width: 92vw; }
}
