/* ============================================================
   Yedinci Kat Game Studio — site.css
   Complete utility stylesheet (replaces Tailwind CDN)
   ============================================================ */

/* ============================================================
   CSS RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

blockquote {
  margin: 0;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --yk-bg: #0D0B0A;
  --yk-surface: #1A1714;
  --yk-text: #F5F1E8;
  --yk-primary: #1E3A3A;
  --yk-accent: #D4923A;
  --yk-highlight: #E87A5D;
  --yk-muted: #7A6A58;
}

/* ============================================================
   FONT FAMILIES
   ============================================================ */
.font-heading { font-family: 'Newsreader', Georgia, serif; }
.font-body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* ============================================================
   LAYOUT — Display
   ============================================================ */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ============================================================
   LAYOUT — Flexbox
   ============================================================ */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ============================================================
   LAYOUT — Grid
   ============================================================ */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ============================================================
   LAYOUT — Positioning
   ============================================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.top-1\/3 { top: 33.333333%; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ============================================================
   LAYOUT — Sizing
   ============================================================ */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-\[600px\] { width: 600px; }
.h-0\.5 { height: 0.125rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.h-\[600px\] { height: 600px; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }

/* ============================================================
   LAYOUT — Aspect Ratio
   ============================================================ */
.aspect-video { aspect-ratio: 16 / 9; }

/* ============================================================
   LAYOUT — Overflow
   ============================================================ */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* ============================================================
   SPACING — Margin
   ============================================================ */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* ============================================================
   SPACING — Padding
   ============================================================ */
.p-2 { padding: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pl-3 { padding-left: 0.75rem; }

/* ============================================================
   TYPOGRAPHY — Font Size
   ============================================================ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }

/* ============================================================
   TYPOGRAPHY — Font Weight
   ============================================================ */
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* ============================================================
   TYPOGRAPHY — Font Style
   ============================================================ */
.italic { font-style: italic; }
.not-italic { font-style: normal; }

/* ============================================================
   TYPOGRAPHY — Letter & Line Spacing
   ============================================================ */
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }

/* ============================================================
   TYPOGRAPHY — Text Transform & Alignment
   ============================================================ */
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.break-all { word-break: break-all; }

/* ============================================================
   TYPOGRAPHY — Antialiasing
   ============================================================ */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   COLORS — Text
   ============================================================ */
.text-yk-text { color: #F5F1E8; }
.text-yk-accent { color: #D4923A; }
.text-yk-highlight { color: #E87A5D; }
.text-yk-muted { color: #7A6A58; }
.text-yk-bg { color: #0D0B0A; }
.text-yk-text\/70 { color: rgba(245, 241, 232, 0.7); }
.text-yk-text\/80 { color: rgba(245, 241, 232, 0.8); }
.text-yk-text\/60 { color: rgba(245, 241, 232, 0.6); }
.text-yk-text\/50 { color: rgba(245, 241, 232, 0.5); }
.text-yk-text\/90 { color: rgba(245, 241, 232, 0.9); }
.text-yk-muted\/60 { color: rgba(122, 106, 88, 0.6); }
.text-yk-muted\/50 { color: rgba(122, 106, 88, 0.5); }
.text-yk-accent\/60 { color: rgba(212, 146, 58, 0.6); }

/* ============================================================
   COLORS — Background
   ============================================================ */
.bg-yk-bg { background-color: #0D0B0A; }
.bg-yk-surface { background-color: #1A1714; }
.bg-yk-primary { background-color: #1E3A3A; }
.bg-yk-accent { background-color: #D4923A; }
.bg-yk-text\/70 { background-color: rgba(245, 241, 232, 0.7); }
.bg-yk-muted\/10 { background-color: rgba(122, 106, 88, 0.1); }
.bg-yk-muted\/30 { background-color: rgba(122, 106, 88, 0.3); }
.bg-yk-muted\/20 { background-color: rgba(122, 106, 88, 0.2); }
.bg-yk-accent\/5 { background-color: rgba(212, 146, 58, 0.05); }
.bg-yk-accent\/90 { background-color: rgba(212, 146, 58, 0.9); }
.bg-yk-primary\/40 { background-color: rgba(30, 58, 58, 0.4); }
.bg-yk-primary\/50 { background-color: rgba(30, 58, 58, 0.5); }
.bg-yk-surface\/95 { background-color: rgba(26, 23, 20, 0.95); }
.bg-yk-surface\/90 { background-color: rgba(26, 23, 20, 0.9); }
.bg-yk-surface\/80 { background-color: rgba(26, 23, 20, 0.8); }
.bg-yk-surface\/70 { background-color: rgba(26, 23, 20, 0.7); }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02); }

/* ============================================================
   COLORS — Gradients
   ============================================================ */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}
.from-yk-bg { --tw-gradient-from: #0D0B0A; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(13,11,10,0)); }
.from-yk-bg\/95 { --tw-gradient-from: rgba(13,11,10,0.95); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(13,11,10,0)); }
.via-yk-surface\/90 { --tw-gradient-stops: var(--tw-gradient-from), rgba(26,23,20,0.9), var(--tw-gradient-to, rgba(26,23,20,0)); }
.via-yk-surface\/80 { --tw-gradient-stops: var(--tw-gradient-from), rgba(26,23,20,0.8), var(--tw-gradient-to, rgba(26,23,20,0)); }
.via-yk-surface\/70 { --tw-gradient-stops: var(--tw-gradient-from), rgba(26,23,20,0.7), var(--tw-gradient-to, rgba(26,23,20,0)); }
.via-yk-bg\/95 { --tw-gradient-stops: var(--tw-gradient-from), rgba(13,11,10,0.95), var(--tw-gradient-to, rgba(13,11,10,0)); }
.via-yk-bg\/80 { --tw-gradient-stops: var(--tw-gradient-from), rgba(13,11,10,0.8), var(--tw-gradient-to, rgba(13,11,10,0)); }
.via-yk-bg\/70 { --tw-gradient-stops: var(--tw-gradient-from), rgba(13,11,10,0.7), var(--tw-gradient-to, rgba(13,11,10,0)); }
.via-yk-primary\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgba(30,58,58,0.2), var(--tw-gradient-to, rgba(30,58,58,0)); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.to-yk-bg { --tw-gradient-to: #0D0B0A; }
.to-yk-bg\/90 { --tw-gradient-to: rgba(13,11,10,0.9); }
.to-yk-bg\/95 { --tw-gradient-to: rgba(13,11,10,0.95); }
.to-transparent { --tw-gradient-to: transparent; }

/* ============================================================
   BORDERS
   ============================================================ */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/\[0\.05\] { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/\[0\.06\] { border-color: rgba(255, 255, 255, 0.06); }
.border-yk-accent\/50 { border-color: rgba(212, 146, 58, 0.5); }

/* ============================================================
   BORDER RADIUS
   ============================================================ */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================================
   EFFECTS — Opacity
   ============================================================ */
.opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.20; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.30; }
.opacity-70 { opacity: 0.70; }

/* ============================================================
   EFFECTS — Backdrop & Blur
   ============================================================ */
.backdrop-blur-lg {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.blur-\[120px\] {
  filter: blur(120px);
}

/* ============================================================
   EFFECTS — Shadow
   ============================================================ */
.pointer-events-none { pointer-events: none; }

/* ============================================================
   EFFECTS — Object Fit
   ============================================================ */
.object-cover { object-fit: cover; }

/* ============================================================
   TRANSITIONS
   ============================================================ */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* ============================================================
   TRANSFORMS — Hover
   ============================================================ */
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-\[0_20px_60px_-15px_rgba\(212\,146\,58\,0\.1\)\]:hover {
  box-shadow: 0 20px 60px -15px rgba(212, 146, 58, 0.1);
}

/* ============================================================
   HOVER — Colors
   ============================================================ */
.hover\:text-yk-accent:hover { color: #D4923A; }
.hover\:text-yk-highlight:hover { color: #E87A5D; }
.hover\:text-yk-text:hover { color: #F5F1E8; }
.hover\:border-yk-accent\/20:hover { border-color: rgba(212, 146, 58, 0.2); }
.hover\:border-yk-accent\/30:hover { border-color: rgba(212, 146, 58, 0.3); }

/* ============================================================
   GROUP HOVER
   ============================================================ */
.group:hover .group-hover\:text-yk-highlight { color: #E87A5D; }
.group:hover .group-hover\:text-yk-text { color: #F5F1E8; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ============================================================
   SPACE UTILITIES
   ============================================================ */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ============================================================
   RESPONSIVE — sm (640px)
   ============================================================ */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:h-10 { height: 2.5rem; }
  .sm\:aspect-\[21\/9\] { aspect-ratio: 21 / 9; }
}

/* ============================================================
   RESPONSIVE — md (768px)
   ============================================================ */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* ============================================================
   RESPONSIVE — lg (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-8xl { font-size: 6rem; line-height: 1; }
  .lg\:text-\[1\.7rem\] { font-size: 1.7rem; }
}

/* ============================================================
   ANIMATIONS — Hero glow
   ============================================================ */
.hero-glow {
  text-shadow:
    0 0 80px rgba(212, 146, 58, 0.08),
    0 0 160px rgba(212, 146, 58, 0.04);
}

/* ============================================================
   ANIMATIONS — Scroll indicator bounce
   ============================================================ */
@keyframes bounce-up {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.animate-bounce-up {
  animation: bounce-up 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ============================================================
   ANIMATIONS — Fade-in on scroll
   ============================================================ */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV — Background on scroll
   ============================================================ */
#main-nav.nav-scrolled {
  background-color: rgba(13, 11, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================
   HAMBURGER — Animation
   ============================================================ */
#mobile-menu-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#mobile-menu-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.is-active .hamburger-line:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================================
   GAME CARD — Glow on hover
   ============================================================ */
.game-card {
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 146, 58, 0.04),
    transparent 40%
  );
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
}

/* ============================================================
   PARALLAX — Background layers
   ============================================================ */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================================
   SCROLLBAR — Custom
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0D0B0A;
}

::-webkit-scrollbar-thumb {
  background: #7A6A58;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D4923A;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #7A6A58 #0D0B0A;
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background-color: rgba(212, 146, 58, 0.3);
  color: #F5F1E8;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
/* ============================================================
   FLOOR BACKGROUND GRADIENTS
   ============================================================ */
.floor-bg-street {
  background: radial-gradient(ellipse at 50% 80%, rgba(212,146,58,0.08) 0%, transparent 60%),
              linear-gradient(to top, rgba(26,23,20,0.5) 0%, transparent 100%);
}
.floor-bg-stairwell {
  background: linear-gradient(to bottom, rgba(30,58,58,0.1) 0%, rgba(13,11,10,0.3) 100%);
}
.floor-bg-corridor {
  background: radial-gradient(ellipse at 30% 50%, rgba(122,106,88,0.08) 0%, transparent 50%);
}
.floor-bg-salon {
  background: radial-gradient(ellipse at 60% 40%, rgba(30,58,58,0.1) 0%, transparent 60%),
              linear-gradient(135deg, rgba(26,23,20,0.3) 0%, rgba(45,74,92,0.05) 100%);
}
.floor-bg-kitchen {
  background: radial-gradient(ellipse at 40% 60%, rgba(212,146,58,0.06) 0%, transparent 50%);
}
.floor-bg-window {
  background: radial-gradient(ellipse at 50% 30%, rgba(45,74,92,0.1) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(30,58,58,0.08) 0%, transparent 100%);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-bounce-up,
  .animate-bounce {
    animation: none;
  }

  .fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax-bg {
    will-change: auto;
    transition: none;
  }

  .game-card {
    transition: none;
  }

  .transition-all,
  .transition-colors,
  .transition-transform {
    transition: none;
  }
}

/* ============================================================
   LOADER — Progress Bar
   ============================================================ */
#site-loader {
  will-change: opacity;
}

#load-progress {
  will-change: width;
}
