/* UI/UX iyileştirmeleri */

.hidden { display: none; }

.shrink-0 { flex-shrink: 0; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary, #ffb410);
  color: var(--primary-foreground, #110904);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-header {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  background-color: rgba(17, 12, 8, 0.92) !important;
}

.site-nav a {
  color: var(--muted-foreground, #a1968b);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--foreground, #f9f5ec);
}

.site-nav .nav-cta {
  background: var(--primary, #ffb410);
  color: var(--primary-foreground, #110904) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  opacity: 0.92;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border, #302720);
  border-radius: 0.75rem;
  background: var(--card, #1b1510);
  color: var(--foreground, #f9f5ec);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem 1rem;
  border-top: 1px solid var(--border, #302720);
  background: rgba(17, 12, 8, 0.95);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.875rem 0.5rem;
  color: var(--foreground, #f9f5ec);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: rgba(255, 180, 16, 0.1);
  color: var(--primary, #ffb410);
}

.mobile-nav .nav-cta-mobile {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--primary, #ffb410);
  color: var(--primary-foreground, #110904) !important;
  padding: 0.875rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: var(--primary, #ffb410);
  color: var(--primary-foreground, #110904);
  box-shadow: 0 4px 20px rgba(255, 180, 16, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 0.9;
}

.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary, #ffb410);
  outline-offset: 2px;
}

details summary .faq-icon {
  transition: transform 0.2s ease;
}

details[open] summary .faq-icon {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top { transition: none; }
}

/* Hero video ses kontrolü */
.video-sound-toggle {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: scale(1.05);
}

.video-sound-toggle .icon-unmuted {
  display: none;
}

.video-sound-toggle.is-unmuted .icon-muted {
  display: none;
}

.video-sound-toggle.is-unmuted .icon-unmuted {
  display: block;
}

.video-sound-toggle.is-unmuted {
  background: rgba(255, 180, 16, 0.85);
  color: var(--primary-foreground, #110904);
}

.video-sound-toggle:not(.is-unmuted) {
  animation: sound-hint 2.5s ease-in-out 3;
}

@keyframes sound-hint {
  0%, 100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 180, 16, 0.25), 0 2px 12px rgba(0, 0, 0, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .video-sound-toggle:not(.is-unmuted) {
    animation: none;
  }
}

/* Hero video sahnesi */
.hero-visual-stage {
  isolation: isolate;
}

.hero-stage-panel {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 16, 0.12);
  background:
    linear-gradient(145deg, rgba(27, 21, 16, 0.95) 0%, rgba(17, 12, 8, 0.6) 55%, rgba(255, 180, 16, 0.04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px -24px rgba(0, 0, 0, 0.65);
}

.hero-stage-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 70%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 180, 16, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-stage-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 180, 16, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 180, 16, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
}

.hero-stage-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(340px, 78%);
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  border: 1px dashed rgba(255, 180, 16, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 12, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: hero-float 5s ease-in-out infinite;
}

.hero-float-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground, #f9f5ec);
}

.hero-float-sub {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--muted-foreground, #a1968b);
}

.hero-float--live {
  top: 1.25rem;
  left: 1rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground, #f9f5ec);
  border-color: rgba(255, 180, 16, 0.25);
  animation-delay: 0s;
}

.hero-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: hero-pulse 2s ease-out infinite;
}

.hero-float--vote {
  top: 18%;
  right: 0.5rem;
  animation-delay: -1.2s;
}

.hero-float--rank {
  left: 0;
  top: 42%;
  animation-delay: -2.4s;
}

.hero-float--prize {
  right: 0;
  top: 48%;
  animation-delay: -3.6s;
}

.hero-float--users {
  bottom: 1.5rem;
  left: 1rem;
  animation-delay: -4.8s;
}

.hero-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
}

.hero-float-icon--heart {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.hero-float-icon--trophy {
  background: rgba(255, 180, 16, 0.15);
  color: var(--primary, #ffb410);
}

.hero-float-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.625rem;
  background: var(--primary, #ffb410);
  color: var(--primary-foreground, #110904);
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.hero-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: calc(var(--i, 0) * -0.45rem);
  border-radius: 50%;
  border: 2px solid rgba(17, 12, 8, 0.9);
  background: linear-gradient(135deg, #ffb410, #d97706);
  color: #110904;
  font-size: 0.625rem;
  font-weight: 800;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-avatar--more {
  background: rgba(255, 255, 255, 0.12);
  color: var(--foreground, #f9f5ec);
  font-size: 0.75rem;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 1023px) {
  .hero-float--rank,
  .hero-float--prize {
    display: none;
  }

  .hero-float--vote {
    top: 1rem;
    right: 0.75rem;
  }

  .hero-float--users {
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .hero-stage-ring {
    width: min(300px, 85%);
  }
}

@media (max-width: 639px) {
  .hero-float--users {
    display: none;
  }

  .hero-stage-panel {
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float,
  .hero-live-pulse {
    animation: none !important;
  }
}

/* Puanlama sistemi bölümü */
.scoring-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .scoring-stack {
    gap: 3.5rem;
  }
}

#puanlama {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  #puanlama {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.scoring-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  flex-shrink: 0;
}

.scoring-block-icon--app {
  background: rgba(255, 180, 16, 0.15);
  color: var(--primary, #ffb410);
}

.scoring-block-icon--video {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.scoring-block-icon--trophy {
  background: rgba(255, 180, 16, 0.2);
  color: var(--primary, #ffb410);
}

.scoring-tier {
  position: relative;
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .scoring-tier {
    padding: 1.5rem;
  }
}

.scoring-tier:hover {
  border-color: rgba(255, 180, 16, 0.35);
}

.scoring-tier--best {
  background: linear-gradient(160deg, rgba(255, 180, 16, 0.08) 0%, rgba(27, 21, 16, 1) 60%);
}

.scoring-tier-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary, #ffb410);
  line-height: 1;
}

.scoring-tier-bar {
  margin-top: 1rem;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scoring-tier-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--pct, 0) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary, #ffb410), #f59e0b);
}

.scoring-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 180, 16, 0.2);
  background: rgba(255, 180, 16, 0.06);
}

.scoring-tip svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary, #ffb410);
}

.scoring-tip p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground, #f9f5ec);
}

.scoring-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scoring-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.scoring-table th,
.scoring-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #302720);
}

.scoring-table th {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground, #a1968b);
  background: rgba(0, 0, 0, 0.2);
}

.scoring-table tbody tr:last-child td {
  border-bottom: none;
}

.scoring-table-highlight {
  background: rgba(255, 180, 16, 0.06);
}

.scoring-table-highlight td:first-child {
  font-weight: 600;
}

.scoring-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: rgba(255, 180, 16, 0.12);
  color: var(--primary, #ffb410);
}

.scoring-badge--full {
  background: var(--primary, #ffb410);
  color: var(--primary-foreground, #110904);
}

.scoring-badge--invalid {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.scoring-trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scoring-trust-dot--up {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.scoring-trust-dot--down {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.scoring-trust--positive {
  border-color: rgba(34, 197, 94, 0.2);
}

.scoring-trust--negative {
  border-color: rgba(239, 68, 68, 0.2);
}

.scoring-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.scoring-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--foreground, #f9f5ec);
}

.scoring-list--positive li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.scoring-list--negative li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 700;
}

.scoring-factor {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border, #302720);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.scoring-winner {
  background: linear-gradient(145deg, rgba(27, 21, 16, 1) 0%, rgba(255, 180, 16, 0.06) 100%);
}

.scoring-cta {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 180, 16, 0.2);
}

@media (max-width: 639px) {
  .scoring-table th,
  .scoring-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .scoring-tier-value {
    font-size: 1.5rem;
  }
}
