:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --accent: #F59E0B;
  --dark: #0F172A;
  --light: #F8FAFC;
}
* { font-family: 'Inter', sans-serif; }
h1, h2, h3, .display { font-family: 'Space Grotesk', sans-serif; }
body { margin: 0; background: #FAFAFA; }

.hero-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;           /* mouse etkileşimi için */
  overflow: visible;
  cursor: grab;
}
.hero-canvas:active { cursor: grabbing; }
.hero-canvas canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #6366F1 0%, #EC4899 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
}
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.product-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
}
.btn-primary {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.page { display: none; animation: fadeIn 0.4s; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.badge-new { background: linear-gradient(135deg, #10B981, #059669); }
.badge-hot { background: linear-gradient(135deg, #EF4444, #DC2626); }
.badge-sale { background: linear-gradient(135deg, #F59E0B, #D97706); }

.cart-drawer {
  position: fixed; top: 0; right: -500px; width: 100%; max-width: 480px; height: 100vh;
  background: white; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 100;
}
.cart-drawer.open { right: 0; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.modal { position: fixed; inset: 0; background: rgba(15,23,42,0.7); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-content { background: white; border-radius: 1.5rem; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }

.logo-3d {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #EC4899);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 20px;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
  transform: rotate(-5deg);
  transition: transform 0.3s;
}
.logo-mark:hover { transform: rotate(0deg) scale(1.1); }

.category-pill {
  padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  background: white; border: 1px solid #E5E7EB; cursor: pointer; transition: all 0.2s;
}
.category-pill:hover { border-color: #6366F1; color: #6366F1; }
.category-pill.active { background: #6366F1; color: white; border-color: #6366F1; }

input, select, textarea { transition: all 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.toast {
  position: fixed; bottom: 2rem; right: 2rem; background: #10B981; color: white;
  padding: 1rem 1.5rem; border-radius: 0.75rem; box-shadow: 0 10px 30px rgba(16,185,129,0.3);
  z-index: 300; transform: translateY(100px); opacity: 0; transition: all 0.3s;
  display: flex; align-items: center; gap: 0.75rem;
}
.toast.show { transform: translateY(0); opacity: 1; }

.admin-tab { padding: 0.75rem 1.25rem; border-radius: 0.5rem; cursor: pointer; font-weight: 500; color: #64748B; }
.admin-tab.active { background: #6366F1; color: white; }
.admin-tab:hover:not(.active) { background: #F1F5F9; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

.img-grad-1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.img-grad-2 { background: linear-gradient(135deg, #EC4899, #F59E0B); }
.img-grad-3 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.img-grad-4 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.img-grad-5 { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.img-grad-6 { background: linear-gradient(135deg, #06B6D4, #6366F1); }
.img-grad-7 { background: linear-gradient(135deg, #F43F5E, #8B5CF6); }
.img-grad-8 { background: linear-gradient(135deg, #14B8A6, #3B82F6); }
.img-grad-9 { background: linear-gradient(135deg, #F97316, #EAB308); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product cover */
.prod-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.prod-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.18) 0%, transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(0,0,0,.12) 0%, transparent 40%);
  z-index: 1;
}
.prod-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}
.prod-cover-icon {
  position: relative;
  z-index: 2;
  font-size: 5rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  transition: transform .35s ease;
}
.product-card:hover .prod-cover-icon { transform: scale(1.08) rotate(-3deg); }
.prod-cover-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,.92);
  color: #1f2937;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.prod-cover-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 50%;
  height: 200%;
  z-index: 2;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform: translateX(-100%) rotate(18deg);
  transition: transform .6s ease;
  pointer-events: none;
}
.product-card:hover .prod-cover-shine { transform: translateX(400%) rotate(18deg); }

/* References marquee */
.refs-mask {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.refs-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: refs-scroll 60s linear infinite;
}
.refs-mask:hover .refs-track { animation-play-state: paused; }
@keyframes refs-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ref-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter .2s, opacity .2s, transform .2s;
  flex-shrink: 0;
}
.ref-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

.neon-edu {
  color: #F97316;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 0.15rem;
  text-shadow:
    0 0 1px #FB923C,
    0 0 3px rgba(249, 115, 22, 0.6);
  animation: neon-pulse 2.8s ease-in-out infinite;
}
@keyframes neon-pulse {
  0%, 100% {
    text-shadow:
      0 0 1px #FB923C,
      0 0 3px rgba(249, 115, 22, 0.6);
  }
  50% {
    text-shadow:
      0 0 2px #FDBA74,
      0 0 5px rgba(234, 88, 12, 0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .neon-edu { animation: none; }
}

/* ============ USER DROPDOWN (navbar) ============ */
.user-dropdown-wrapper { position: relative; display: inline-block; }
.user-dropdown-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(236,72,153,.08));
  border: 1px solid rgba(99,102,241,.2);
  color: #1F2937; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s;
}
.user-dropdown-trigger:hover {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(236,72,153,.15));
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 4px 16px rgba(99,102,241,.18);
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6, #EC4899);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 10px rgba(139, 92, 246, .35);
  flex-shrink: 0;
}
.dropdown-chevron {
  width: 14px; height: 14px; color: #6B7280;
  transition: transform .2s ease;
}
.user-dropdown-wrapper.open .dropdown-chevron { transform: rotate(180deg); }

.user-dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15,23,42,.18), 0 4px 14px rgba(15,23,42,.06);
  border: 1px solid rgba(229,231,235,.9);
  padding: 8px;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 60;
}
.user-dropdown-wrapper.open .user-dropdown-menu {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.user-dropdown-header {
  padding: 10px 12px 12px; margin-bottom: 6px;
  border-bottom: 1px solid #F3F4F6;
}
.user-dropdown-name {
  font-weight: 700; font-size: 14px; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown-email {
  font-size: 12px; color: #6B7280; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #374151;
  cursor: pointer; text-decoration: none;
  transition: background .12s, color .12s;
}
.user-dropdown-item svg { width: 16px; height: 16px; color: #6B7280; transition: color .12s; }
.user-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(236,72,153,.06));
  color: #4F46E5;
}
.user-dropdown-item:hover svg { color: #6366F1; }
.user-dropdown-item--danger { color: #B91C1C; }
.user-dropdown-item--danger svg { color: #EF4444; }
.user-dropdown-item--danger:hover {
  background: #FEF2F2; color: #991B1B;
}
.user-dropdown-item--danger:hover svg { color: #DC2626; }
.user-dropdown-divider { height: 1px; background: #F3F4F6; margin: 6px 0; }

/* Panel sidebar — admin panel gradient button */
.panel-admin-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  box-shadow: 0 6px 18px rgba(139, 92, 246, .35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  border: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
}
.panel-admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, .45);
  opacity: .97;
}
.panel-admin-btn svg { width: 18px; height: 18px; color: #fff; }
