/* =========================================================
   ViralTrack - Genel Stil
   Koyu/siyah premium tema + pembe-kırmızı neon vurgular
   ========================================================= */

:root {
  --bg: #0a0a0d;
  --bg-alt: #121016;
  --card-bg: #16141c;
  --card-border: #262230;
  --pink: #ff2d78;
  --pink-light: #ff5c9c;
  --red: #ff3b5c;
  --text: #f5f5f7;
  --text-muted: #9d99a8;
  --gradient: linear-gradient(135deg, #ff2d78 0%, #ff3b5c 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 40px rgba(255, 45, 120, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-pink {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 120, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 45, 120, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--card-border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------------- Header ---------------- */

/* Not: backdrop-filter kullanılmıyor; sticky header'da scroll sırasında
   her karede yeniden blur hesaplanması takılmaya yol açıyordu. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b0a0e;
  border-bottom: 1px solid var(--card-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--pink);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  /* radial-gradient zaten yumuşak geçişli; ayrıca blur filtresi uygulanmıyor */
  background: radial-gradient(circle, rgba(255, 45, 120, 0.22), transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
}

.hero-content p.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-features li {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-features li::before {
  content: '✓';
  color: var(--pink);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Phone mockups */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 460px;
}

.phone-mockup {
  position: absolute;
  width: 190px;
  height: 380px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1c1a22, #0d0c10);
  border: 3px solid #2c2836;
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Telefon içindeki gerçek video kapağı */
.phone-mockup img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 45, 120, 0.16), transparent 55%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

/* Video bağlı telefonlar tıklanabilir */
a.phone-mockup {
  cursor: pointer;
}

a.phone-mockup:hover {
  box-shadow: 0 0 55px rgba(255, 45, 120, 0.45), 0 20px 50px rgba(0, 0, 0, 0.55);
}

a.phone-mockup.phone-1:hover {
  transform: rotate(-8deg) translateY(-8px);
}

a.phone-mockup.phone-2:hover {
  transform: translateX(-50%) translateY(-8px);
}

a.phone-mockup.phone-3:hover {
  transform: rotate(8deg) translateY(-8px);
}

.phone-mockup .phone-icons {
  position: absolute;
  right: 8px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.phone-mockup .phone-icons span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}

.phone-mockup .phone-caption {
  position: absolute;
  left: 12px;
  bottom: 14px;
  right: 44px;
  font-size: 0.7rem;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.phone-1 {
  left: 0;
  top: 40px;
  transform: rotate(-8deg);
  z-index: 1;
}

.phone-2 {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
  width: 210px;
  height: 420px;
}

.phone-3 {
  right: 0;
  top: 40px;
  transform: rotate(8deg);
  z-index: 1;
}

/* ---------------- Nasıl Çalışır ---------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 120, 0.5);
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 18px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------------- İş Örnekleri ---------------- */

/* Kart genişliği sabit tutulur, grid ortalanır.
   Böylece 1 video varken kart devasa olmaz, 6 video yan yana sığar. */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 178px);
  justify-content: center;
  gap: 16px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 120, 0.5);
}

/* Kapak görseli / tıklanabilir alan
   Yükseklik padding-top oranı ile kurulur (aspect-ratio desteklemeyen
   tarayıcılarda da çalışır), içerik mutlak konumlandırılır. */
.video-card .video-thumb {
  display: block;
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #1c1a22, #0d0c10);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
}

.video-card .video-thumb::before {
  content: '';
  display: block;
  padding-top: 177.78%; /* 9:16 dikey oran */
}

.video-card .video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.06);
}

.video-card .thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}

.video-card .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
  transition: background 0.25s ease;
}

.video-card:hover .play-overlay {
  background: linear-gradient(180deg, rgba(255, 45, 120, 0.15), rgba(0, 0, 0, 0.5));
}

.video-card .play-overlay .play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  padding-left: 3px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-card:hover .play-overlay .play-icon {
  transform: scale(1.12);
  background: var(--gradient);
  border-color: transparent;
}

/* Kapak üzerindeki istatistik şeridi */
.video-card .thumb-stats {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.video-card .featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 5;
}

.video-info {
  padding: 14px;
}

.video-info .creator {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.video-info .title {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-stats {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-info .video-external {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pink-light);
  transition: opacity 0.2s;
}

.video-info .video-external:hover {
  opacity: 0.75;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------------- Paketler ---------------- */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.package-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 120, 0.5);
}

.package-card.featured {
  border: 1.5px solid var(--pink);
  box-shadow: var(--shadow-glow);
}

.package-card .featured-tag {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
}

.package-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.package-card .price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pink-light);
  margin-bottom: 18px;
}

.package-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.package-card ul {
  flex: 1;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.package-card ul li::before {
  content: '✓';
  color: var(--pink);
  font-weight: 800;
}

/* ---------------- Güven Alanı ---------------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 45, 120, 0.12);
  color: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--bg-alt);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-grid ul li a:hover {
  color: var(--pink-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--gradient);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Video lightbox ---------------- */

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
}

.video-modal-body {
  position: relative;
  width: 100%;
  height: min(78vh, 740px);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-glow), 0 24px 60px rgba(0, 0, 0, 0.6);
}

.video-modal-body iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-modal-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0d0c10;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.video-modal-loading .spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--pink);
  animation: vt-spin 0.8s linear infinite;
}

@keyframes vt-spin {
  to {
    transform: rotate(360deg);
  }
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: var(--gradient);
  border-color: transparent;
}

/* ---------------- WhatsApp float button ---------------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 200;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ---------------- Sayfa başlığı (iç sayfalar) ---------------- */

.page-header {
  padding: 60px 0 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 380px;
    order: -1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: repeat(auto-fit, 170px);
  }

  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .header-actions .btn-primary span.btn-label-full {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  /* Mobilde kartlar 2 kolona esner */
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    margin: 0 auto;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .phone-mockup {
    width: 130px;
    height: 260px;
  }

  .phone-2 {
    width: 150px;
    height: 300px;
  }
}
