:root {
  --bg-color: #0b0f19;
  --text-color: #f3f4f6;
  --card-bg: #111827;
  --card-border: #1f2937;
  --primary: #f97316; /* Turuncu */
  --primary-hover: #ea580c;
  --accent: #3b82f6; /* Accent mavi */
  --secondary-text: #9ca3af;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(12px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #f9fafb;
    --text-color: #111827;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --secondary-text: #4b5563;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

/* Header Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 3px solid var(--primary);
  padding: 4px;
  background: var(--bg-color);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.2);
}

.profile-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

/* Channel Bio */
.channel-bio {
  max-width: 620px;
  margin: 1.5rem auto 0;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
}

.bio-intro {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.bio-sub {
  font-size: 0.925rem;
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.bio-checks {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-checks li {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bio-disclosure {
  font-size: 0.8rem;
  color: var(--secondary-text);
  margin-top: 1rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.75rem;
  opacity: 0.8;
}

/* Search Bar */
.search-container {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.125rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* Categories Filter */
.categories-filter {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  margin-bottom: 3rem;
  scrollbar-width: none;
  justify-content: center;
}

.categories-filter::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.3);
}

/* Grid System */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 Columns Desktop */
  }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.product-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Square aspect ratio for clean fit */
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.yt-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(249, 115, 22, 0.9);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  pointer-events: none; /* Let parent handle clicks */
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.yt-icon:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ea580c;
}

.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

/* Product Info Area */
.product-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent); /* Accent color */
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 3.2em; /* Max 2 lines height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-benefit {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.special-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(255, 65, 108, 0.3);
}

/* Card Actions / Buttons */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-color);
}

.btn-amazon {
  background: #f97316;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-amazon:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.5);
}

/* Modal Video Player */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #000;
  width: 90%;
  max-width: 420px;
  max-height: 85vh; /* Limit height to fit screens */
  aspect-ratio: 9/16;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Product Detail Page Layout */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 350px 1fr; /* Two columns: 350px video, rest for info */
    align-items: start;
  }
}

.video-container {
  width: 100%;
  max-width: 350px; /* Constrain vertical video width */
  margin: 0 auto;   /* Center on mobile/tablet */
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.close-modal:hover {
  background: rgba(249, 115, 22, 0.9);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Title */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  height: 580px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.skeleton-thumb {
  width: 100%;
  height: 250px;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, var(--card-border) 25%, var(--card-bg) 50%, var(--card-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 1.5rem;
}

.skeleton-line {
  height: 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--card-border) 25%, var(--card-bg) 50%, var(--card-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 0.75rem;
}

.skeleton-brand { width: 30%; height: 0.75rem; }
.skeleton-title-1 { width: 90%; height: 1.25rem; }
.skeleton-title-2 { width: 70%; height: 1.25rem; }
.skeleton-benefit { width: 50%; height: 0.85rem; }
.skeleton-rating { width: 40%; height: 0.85rem; }
.skeleton-btn { height: 2.75rem; border-radius: 0.75rem; margin-top: auto; }
