/*
Theme Name: HaberiOku Linker
Theme URI: https://haberioku.net
Description: Koyu temali, animasyonlu, ozgun link kisaltici. TinyURL mantiginda 301 yonlendirme, LiteSpeed uyumlu.
Version: 6.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: haberioku
*/

/* =====================================================
   CSS DEĞİŞKENLERİ
   ===================================================== */
:root {
  --bg-base:     #0a0e1a;
  --bg-card:     #111827;
  --bg-card2:    #1a2235;
  --bg-input:    #0d1424;
  --border:      #1e2d45;
  --border-glow: #3b82f6;
  --primary:     #3b82f6;
  --primary-2:   #2563eb;
  --accent:      #06b6d4;
  --success:     #10b981;
  --danger:      #ef4444;
  --text:        #f1f5f9;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition:  all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* =====================================================
   RESET & TEMEL
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; outline: none; }

/* =====================================================
   ARKA PLAN ANİMASYONU
   ===================================================== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59,130,246,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(99,102,241,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.site-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(59,130,246,0.3);
  flex-shrink: 0;
  transition: var(--transition);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); box-shadow: 0 0 24px rgba(59,130,246,0.5); }
.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-name span { color: var(--primary); }
.header-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 30px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease both;
}
.hero-eyebrow::before { content: '●'; font-size: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideInScale { from{opacity:0;transform:scale(0.95) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin: 0 0 16px;
  animation: fadeInDown 0.6s 0.1s ease both;
}
.hero h1 .word-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .word-share {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 48px;
  animation: fadeInDown 0.6s 0.2s ease both;
  line-height: 1.6;
}

/* =====================================================
   KISALTICI KARTI
   ===================================================== */
.shortener-wrap {
  max-width: 680px;
  margin: 0 auto;
  animation: slideInScale 0.6s 0.3s ease both;
}
.shortener-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.shortener-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #a78bfa);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.input-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.url-input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.url-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.url-input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
}
.url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15), 0 0 20px rgba(59,130,246,0.1);
  background: #0f1929;
}
.url-input::placeholder { color: var(--text-muted); }

.btn-shorten {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-shorten::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn-shorten:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.5); }
.btn-shorten:hover::after { opacity: 1; }
.btn-shorten:active { transform: translateY(0); }
.btn-shorten:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Sonuç */
.result-area {
  margin-top: 20px;
  display: none;
}
.result-area.show { display: block; animation: fadeInUp 0.3s ease; }

.result-card {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.result-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}
.result-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.result-link {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  word-break: break-all;
}
.btn-copy {
  padding: 10px 18px;
  background: var(--success);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-copy:hover { background: #059669; transform: translateY(-1px); }
.btn-copy.copied { background: #047857; }

/* Hata */
.error-area {
  margin-top: 16px;
  padding: 13px 16px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.error-area.show { display: block; animation: fadeInUp 0.3s ease; }

/* =====================================================
   İSTATİSTİK SAYAÇLARI
   ===================================================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 36px 24px;
  flex-wrap: wrap;
  animation: fadeIn 0.6s 0.5s ease both;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}
@media(max-width:500px){ .stat-divider{display:none} .stats-bar{gap:24px} }

/* =====================================================
   ÖZELLİKLER
   ===================================================== */
.features-section {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  text-align: center;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
  color: var(--text);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
@media(max-width:760px){ .features-grid{ grid-template-columns:1fr; } }
@media(min-width:761px) and (max-width:960px){ .features-grid{ grid-template-columns:repeat(2,1fr); } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  background: radial-gradient(ellipse at top left, rgba(59,130,246,0.08), transparent 60%);
}
.feature-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); box-shadow: var(--shadow-card), 0 0 30px rgba(59,130,246,0.1); }
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  position: relative;
}
.fi-blue  { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.2); }
.fi-cyan  { background: rgba(6,182,212,0.12);  border: 1px solid rgba(6,182,212,0.2); }
.fi-green { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2); }
.fi-purple{ background: rgba(167,139,250,0.12);border: 1px solid rgba(167,139,250,0.2); }
.fi-pink  { background: rgba(236,72,153,0.12); border: 1px solid rgba(236,72,153,0.2); }
.fi-amber { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }

.feature-card h3 {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* =====================================================
   NASIL ÇALIŞIR
   ===================================================== */
.how-section {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.03));
}
.how-inner { max-width: 800px; margin: 0 auto; }
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.how-step:last-child { border-bottom: 0; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.step-body h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-body p  { font-size: 14px; color: var(--text-muted); }
.step-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--primary);
  margin-top: 6px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-logo span { color: var(--primary); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* =====================================================
   404 & DİĞER SAYFALAR
   ===================================================== */
.page-content { flex: 1; padding: 60px 24px; }
.content-card {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.page-404 { text-align: center; padding: 80px 24px; }
.page-404 .err-code {
  font-size: 120px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-404 h2 { font-size: 24px; margin: 8px 0 16px; color: var(--text); }
.page-404 p  { color: var(--text-muted); }

/* =====================================================
   GENEL BUTON
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.45); color: #fff; text-decoration: none; }

/* =====================================================
   MOBİL
   ===================================================== */
@media(max-width:600px){
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .shortener-card { padding: 20px; border-radius: var(--radius-md); }
  .shortener-card::before { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .section-title { font-size: 24px; }
}
