/* TechNova - shared styles */
.hero-gradient { background: linear-gradient(135deg, rgba(37,99,235,0.95) 0%, rgba(30,58,138,0.95) 100%); }
.tech-shadow { box-shadow: 0 10px 25px -5px rgba(37,99,235,0.2); }
.product-card { transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #2563EB; border-radius: 4px; }
html { scroll-behavior: smooth; }

.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
.animate-slide-up { animation: slideUp 0.3s ease-out; }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slideUp { 0% { transform: translateY(20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

body { font-family: 'Inter', sans-serif; }
.font-playfair { font-family: 'Playfair Display', serif; }

.cart-qty-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; color: #111827;
  cursor: pointer; transition: all .15s ease;
}
.cart-qty-btn:hover { background: #2563EB; color: #fff; border-color: #2563EB; }


/* === MONTSERRAT + NEON ENHANCEMENTS === */
body {
  font-family: 'Montserrat', 'Inter', sans-serif !important;
  background:
    url('../media/grid-bg.png') repeat,
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  background-blend-mode: multiply;
}
.font-playfair, h1, h2, h3 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.01em; }

/* Hero'ya resim arkaplan */
.hero-gradient {
  background:
    url('../media/hero-bg.jpg') center/cover no-repeat,
    radial-gradient(ellipse at top left, rgba(56,189,248,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139,92,246,0.25) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.neon-text {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56,189,248,0.6), 0 0 20px rgba(56,189,248,0.4);
}
.neon-box {
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.4),
    0 0 20px rgba(56,189,248,0.25),
    0 4px 30px rgba(30,58,138,0.2);
}
.neon-btn {
  position: relative;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 0 rgba(56,189,248,0);
}
.neon-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 20px rgba(56,189,248,0.5), 0 8px 25px rgba(37,99,235,0.4);
}
.neon-btn:active { transform: scale(0.97); }
button, a.neon-btn, [onclick] {
  transition: all .2s ease;
}

/* === CAROUSEL (Bootstrap-style custom) === */
.tn-carousel {
  position: relative; overflow: hidden; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(30,58,138,0.25);
}
.tn-carousel-track {
  display: flex; transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.tn-carousel-slide {
  flex: 0 0 100%; min-width: 100%;
  height: 360px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  position: relative;
}
.tn-carousel-slide img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(56,189,248,0.5));
}
.tn-carousel-caption {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  color: #fff; background: rgba(15,23,42,0.6); backdrop-filter: blur(8px);
  padding: 12px 16px; border-radius: 10px;
  border-left: 3px solid #38bdf8;
}
.tn-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #1e3a8a; z-index: 5; transition: all .2s;
}
.tn-carousel-btn:hover { background: #38bdf8; color: #fff; transform: translateY(-50%) scale(1.1); }
.tn-carousel-btn.prev { left: 12px; }
.tn-carousel-btn.next { right: 12px; }
.tn-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.tn-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all .2s;
}
.tn-carousel-dot.active { background: #38bdf8; width: 26px; border-radius: 5px; box-shadow: 0 0 10px #38bdf8; }

/* === ANALYTICS TABLE === */
.analytics-table {
  width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  font-size: 14px;
}
.analytics-table thead {
  background: linear-gradient(90deg, #1e3a8a, #2563EB);
  color: #fff;
}
.analytics-table th, .analytics-table td { padding: 14px 16px; text-align: left; }
.analytics-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .2s; }
.analytics-table tbody tr:hover { background: #eff6ff; }
.analytics-bar {
  display: inline-block; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #2563EB);
  box-shadow: 0 0 8px rgba(56,189,248,0.6);
  vertical-align: middle;
}
.badge-up { color: #059669; background: #d1fae5; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-down { color: #dc2626; background: #fee2e2; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* === SITEMAP TREE === */
.sitemap-tree ul { list-style: none; padding-left: 22px; position: relative; margin: 6px 0; }
.sitemap-tree ul::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 8px;
  border-left: 2px dashed #93c5fd;
}
.sitemap-tree li { position: relative; padding: 6px 0 6px 18px; }
.sitemap-tree li::before {
  content: ''; position: absolute; left: -14px; top: 18px;
  width: 18px; border-top: 2px dashed #93c5fd;
}
.sitemap-tree a, .sitemap-tree span {
  display: inline-block; padding: 4px 12px; border-radius: 8px;
  background: #eff6ff; color: #1e3a8a; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.sitemap-tree a:hover { background: #38bdf8; color: #fff; transform: translateX(3px); box-shadow: 0 0 14px rgba(56,189,248,.4); }

/* === INPUT FEEDBACK === */
.input-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
.input-ok { border-color: #10b981 !important; }


/* === VIDEO BÖLÜMÜ STILLERI === */
.video-showcase {
  background: url('../media/grid-bg.png') repeat,
              linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 60px 0;
  position: relative;
}
.video-frame {
  max-width: 800px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(56,189,248,0.3), 0 0 0 2px rgba(56,189,248,0.4);
}
.video-frame video, .video-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }

/* === BOOTSTRAP CAROUSEL STIL ÖZELLEŞTIRME === */
.carousel-inner { border-radius: 16px; }
.carousel-item img { height: 420px; object-fit: cover; filter: brightness(0.88); }
.carousel-caption { background: rgba(15,23,42,0.75); border-radius: 10px; padding: 14px; border-left: 3px solid #38bdf8; bottom: 20px; left: 10%; right: 10%; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(56,189,248,0.8); border-radius: 50%; padding: 20px; }

/* === BOOTSTRAP + TAILWIND UYUM DÜZELTMESİ ===
   Tailwind'in `collapse` utility'si (visibility:collapse) Bootstrap'ın
   `.collapse` sınıfını eziyor. Navbar için override ediyoruz. */
nav.navbar .collapse.navbar-collapse {
  visibility: visible;
}
@media (min-width: 992px) {
  nav.navbar.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  nav.navbar.navbar-expand-lg .navbar-nav { flex-direction: row; }
  nav.navbar.navbar-expand-lg .navbar-nav .nav-link { padding: 0 14px; }
}
nav.navbar .nav-link { color: #374151; transition: color .15s, transform .15s; }
nav.navbar .nav-link:hover { color: #2563EB; transform: translateY(-1px); }
nav.navbar .nav-link.active { color: #2563EB !important; font-weight: 700; }


/* === Subtle entrance on scroll items === */
.fade-slide-in { opacity: 0; transform: translateY(20px); animation: fadeSlideIn .6s forwards; }
@keyframes fadeSlideIn { to { opacity: 1; transform: translateY(0); } }
