/* ==============================
   FOREX SNIPER – style.css
   TEK EKRAN · MOBİL UYUMLU
   ============================== */

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

:root {
  --gold:    #c9a227;
  --gold-lt: #f0c940;
  --gold-dk: #8a6f18;
  --dark:    #060608;
  --red:     #e03030;
  --green:   #22c55e;
  --white:   #f0ece0;
  --glass:   rgba(201,162,39,0.07);
  --border:  rgba(201,162,39,0.28);
}

/* ── Tam ekran, scroll yok ── */
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--white);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── 3D Canvas ── */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* ── Particles ── */
#particles {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatUp var(--dur,6s) linear infinite var(--delay,0s);
}
@keyframes floatUp {
  0%   { transform:translateY(100vh) scale(0); opacity:0; }
  10%  { opacity:0.5; }
  90%  { opacity:0.2; }
  100% { transform:translateY(-5vh) scale(1.1); opacity:0; }
}

/* ── Crosshair (desktop) ── */
#crosshair {
  position:fixed; width:36px; height:36px;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  display:none;
}
@media (pointer:fine) { #crosshair { display:block; } }
.ch-line { position:absolute; background:var(--gold); opacity:0.8; }
.ch-top,.ch-bottom { width:1px; height:10px; left:50%; transform:translateX(-50%); }
.ch-top    { top:0; }
.ch-bottom { bottom:0; }
.ch-left,.ch-right { height:1px; width:10px; top:50%; transform:translateY(-50%); }
.ch-left  { left:0; }
.ch-right { right:0; }
.ch-circle { position:absolute; inset:7px; border-radius:50%; border:1px solid var(--gold); opacity:0.4; }
.ch-dot { position:absolute; width:3px; height:3px; background:var(--gold); border-radius:50%; top:50%; left:50%; transform:translate(-50%,-50%); }

/* ── Scan lines ── */
.scan-lines {
  position:fixed; inset:0; pointer-events:none;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 3px,rgba(0,0,0,0.05) 3px,rgba(0,0,0,0.05) 4px);
  z-index:2; animation: scanMove 10s linear infinite;
}
@keyframes scanMove { to { background-position:0 80px; } }

/* ── Scope overlay ── */
.scope-overlay {
  position:fixed; inset:0; z-index:2; pointer-events:none;
  display:flex; align-items:center; justify-content:center;
}
.scope-overlay svg {
  width:min(85vw,500px); height:min(85vw,500px);
  animation: scopePulse 5s ease-in-out infinite;
}
@keyframes scopePulse {
  0%,100% { opacity:0.3; transform:scale(1); }
  50%      { opacity:0.55; transform:scale(1.015); }
}

/* ── MAIN LAYOUT: Tek ekran flex ── */
.container {
  position:relative; z-index:10;
  width:100%; height:100vh; height:100dvh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:space-between;
  padding: env(safe-area-inset-top,12px) 16px env(safe-area-inset-bottom,12px);
}

/* ── TOP: Logo + Başlık ── */
.top-block {
  display:flex; flex-direction:column; align-items:center;
  padding-top:4px; flex-shrink:0;
}

.logo-wrap {
  position:relative;
  width: clamp(80px,18vw,130px);
  height:clamp(80px,18vw,130px);
  margin-bottom:6px;
  opacity:0;
  transform:scale(0.4) rotateY(180deg);
}
.logo-img {
  width:100%; height:100%;
  object-fit:contain; border-radius:50%;
  position:relative; z-index:3;
  filter:drop-shadow(0 0 14px rgba(201,162,39,0.65));
}
.logo-ring {
  position:absolute; inset:-10px; border-radius:50%;
  border:1.5px solid var(--gold); opacity:0.6;
  animation:ringRotate 8s linear infinite; z-index:2;
}
.ring2 {
  inset:-20px; border-style:dashed; border-color:var(--gold-dk);
  opacity:0.25; animation-duration:16s; animation-direction:reverse;
}
@keyframes ringRotate { to { transform:rotate(360deg); } }
.logo-glow {
  position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(circle,rgba(201,162,39,0.22) 0%,transparent 70%);
  animation:glowPulse 3s ease-in-out infinite; z-index:1;
}
@keyframes glowPulse {
  0%,100% { transform:scale(1); opacity:0.6; }
  50%     { transform:scale(1.35); opacity:1; }
}

.headline {
  font-size:clamp(2.2rem,9vw,5.5rem);
  font-weight:900; letter-spacing:0.1em; line-height:1;
  opacity:0; text-align:center; margin-bottom:2px;
}
.headline .line1 {
  display:block;
  background:linear-gradient(135deg,var(--gold-lt) 0%,var(--gold) 50%,var(--gold-dk) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
  animation:shimmer 3s ease-in-out infinite;
}
.headline .line2 {
  display:block; color:var(--white);
  letter-spacing:0.22em; font-size:0.65em;
}
@keyframes shimmer {
  0%,100% { filter:drop-shadow(0 0 10px rgba(201,162,39,0.5)); }
  50%      { filter:drop-shadow(0 0 28px rgba(240,201,64,0.85)); }
}

.tagline {
  font-size:clamp(0.6rem,2.5vw,0.85rem);
  letter-spacing:0.18em; text-transform:uppercase;
  color:rgba(240,236,224,0.6); opacity:0;
}
.tagline .gold { color:var(--gold-lt); font-weight:700; }

/* ── MIDDLE: Sinyal Kartları ── */
.signals-wrap {
  display:flex; gap:clamp(8px,2vw,14px);
  width:100%; justify-content:center;
  opacity:0; transform:translateY(30px);
  flex-shrink:0;
}

.signal-card {
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:14px;
  padding:clamp(10px,2vw,16px) clamp(10px,2vw,14px);
  flex:1; max-width:200px; min-width:0;
  position:relative; backdrop-filter:blur(12px);
  transition:transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow:hidden;
}
.signal-card::before {
  content:''; position:absolute; inset:0; border-radius:14px;
  background:linear-gradient(135deg,rgba(201,162,39,0.06) 0%,transparent 60%);
  pointer-events:none;
}
.signal-card.featured {
  border-color:var(--gold);
  background:rgba(201,162,39,0.12);
  box-shadow:0 0 30px rgba(201,162,39,0.3);
}
.featured-tag {
  font-size:clamp(0.52rem,1.5vw,0.62rem);
  letter-spacing:0.08em; color:var(--gold-lt);
  font-weight:700; margin-bottom:5px; text-transform:uppercase;
}
.pair-name {
  font-size:clamp(0.95rem,3vw,1.2rem);
  font-weight:800; letter-spacing:0.04em;
  color:var(--white); margin-bottom:4px;
}
.direction {
  font-size:clamp(0.8rem,2.5vw,0.95rem);
  font-weight:700; letter-spacing:0.08em; margin-bottom:6px;
}
.direction.buy  { color:var(--green); text-shadow:0 0 8px rgba(34,197,94,0.5); }
.direction.sell { color:var(--red);   text-shadow:0 0 8px rgba(224,48,48,0.5); }
.pip-info {
  font-size:clamp(0.62rem,1.8vw,0.75rem);
  color:rgba(240,236,224,0.55); margin-bottom:8px;
}
.signal-bar {
  height:3px; background:rgba(255,255,255,0.1);
  border-radius:99px; overflow:hidden; margin-bottom:4px;
}
.bar-fill {
  display:block; height:100%; border-radius:99px;
  background:linear-gradient(90deg,var(--gold-dk),var(--gold-lt));
  animation:fillPulse 2s ease-in-out infinite;
}
.bar-fill.sell-bar { background:linear-gradient(90deg,#7a1414,var(--red)); }
@keyframes fillPulse { 0%,100%{opacity:0.8;} 50%{opacity:1;} }
.conf-label {
  font-size:clamp(0.58rem,1.6vw,0.7rem);
  color:rgba(240,236,224,0.5); margin-bottom:6px;
}
.conf-label b { color:var(--gold-lt); }
.live-badge {
  font-size:clamp(0.55rem,1.5vw,0.65rem);
  letter-spacing:0.1em; color:var(--green);
  font-weight:700; animation:blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

/* ── BOTTOM: CTA + Stats ── */
.bottom-block {
  display:flex; flex-direction:column;
  align-items:center; gap:clamp(6px,2vw,12px);
  flex-shrink:0; width:100%;
}

/* Divider */
.divider {
  display:flex; align-items:center; gap:12px;
  opacity:0; width:100%; max-width:420px;
}
.div-line { flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.div-icon { color:var(--gold); font-size:0.8rem; animation:spin 10s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* CTA Button */
.cta-wrap {
  display:flex; flex-direction:column;
  align-items:center; gap:5px;
  opacity:0; transform:translateY(16px); width:100%;
}
.cta-btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:clamp(14px,3.5vw,18px) clamp(24px,7vw,44px);
  background:linear-gradient(135deg,var(--gold-dk),var(--gold),var(--gold-lt));
  color:#080808; font-weight:800;
  font-size:clamp(0.85rem,3.5vw,1.1rem);
  letter-spacing:0.06em; text-decoration:none;
  border-radius:999px; position:relative; overflow:hidden;
  box-shadow:0 0 36px rgba(201,162,39,0.55),0 0 70px rgba(201,162,39,0.2);
  text-transform:uppercase; width:100%; max-width:380px;
  transition:transform 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color:transparent;
}
.cta-btn::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.28),transparent);
  transform:translateX(-100%); transition:transform 0.55s;
}
.cta-btn:hover::before, .cta-btn:active::before { transform:translateX(100%); }
.cta-btn:active { transform:scale(0.97); }
.btn-icon { font-size:1.15em; }
.cta-sub {
  font-size:clamp(0.55rem,1.8vw,0.7rem);
  letter-spacing:0.14em; color:rgba(240,236,224,0.4);
  text-transform:uppercase;
}

/* Stats */
.stats-row {
  display:flex; align-items:center;
  gap:clamp(14px,4vw,28px);
  opacity:0; transform:translateY(14px);
}
.stat { text-align:center; }
.stat-num {
  font-size:clamp(1.3rem,5vw,2.2rem);
  font-weight:900; color:var(--gold-lt);
  text-shadow:0 0 16px rgba(240,201,64,0.4);
}
.stat-lbl {
  font-size:clamp(0.55rem,1.8vw,0.7rem);
  letter-spacing:0.18em; color:rgba(240,236,224,0.45);
  text-transform:uppercase; margin-top:2px;
}
.stat-sep { color:var(--border); font-size:1.6rem; font-weight:100; }

/* Ticker */
.ticker-wrap {
  width:100%; height:30px;
  background:rgba(0,0,0,0.8);
  border-top:1px solid var(--border);
  overflow:hidden; display:flex; align-items:center;
  backdrop-filter:blur(6px); flex-shrink:0;
  margin: 0 -16px; width:calc(100% + 32px);
}
.ticker-track {
  display:flex; gap:50px; white-space:nowrap;
  animation:tickerMove 28s linear infinite;
  font-size:clamp(0.6rem,2vw,0.72rem);
  letter-spacing:0.1em; color:var(--gold); font-weight:600;
}
@keyframes tickerMove { to { transform:translateX(-50%); } }
.ticker-track span { flex-shrink:0; }

/* ── LANDSCAPE mobil ── */
@media (max-height:500px) and (orientation:landscape) {
  .logo-wrap { width:60px; height:60px; margin-bottom:2px; }
  .ring2 { display:none; }
  .headline { font-size:clamp(1.6rem,6vw,3rem); }
  .signals-wrap { gap:6px; }
  .signal-card { padding:7px 8px; border-radius:10px; }
  .pair-name { font-size:0.85rem; }
  .direction { font-size:0.75rem; }
  .pip-info,.conf-label,.live-badge { display:none; }
  .stats-row { display:none; }
  .ticker-wrap { height:24px; }
}
