/* ==========================================================================
   GLEB'S NIGHT SHIFT - LIGHT LIQUID GLASS DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-deep: #080a0f;
  --glass-bg: rgba(18, 22, 32, 0.7);
  --glass-bg-hover: rgba(24, 30, 44, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.14);

  --accent-liquid: #e8533c;
  --accent-liquid-hover: #f16650;
  --accent-amber: #d97706;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-smooth: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

/* ================= ЛИКВИДНЫЕ ФОНОВЫЕ СФЕРЫ ================= */
.liquid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #e8533c 0%, #b91c1c 100%);
  top: -150px;
  left: 15%;
  animation: floatFluid1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563eb 0%, #1e3a8a 100%);
  bottom: -180px;
  right: 10%;
  animation: floatFluid2 18s ease-in-out infinite alternate;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #d97706 0%, #78350f 100%);
  top: 40%;
  right: 35%;
  opacity: 0.2;
}

@keyframes floatFluid1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes floatFluid2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.05); }
}

/* ================= LAYOUT ================= */
.layout-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ================= НАВИГАЦИЯ ================= */
.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  object-fit: cover;
  pointer-events: none;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.nav-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ================= КАРТОЧКИ СТЕКЛА (GLASS CARDS) ================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Сетка контента */
.content-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.liquid-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ================= ГАЛЕРЕЯ И ЗАЩИТА ФОТО ================= */
.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.viewport-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* Защита от скачивания и сохранения фото */
.protected-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: opacity var(--transition-smooth);
}

.shield-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
}

.caption-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 6;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* Миниатюры */
.thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-pill {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-smooth);
  text-align: center;
}

.thumb-pill img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--transition-smooth);
}

.thumb-pill span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 5px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-pill:hover {
  border-color: var(--glass-border-hover);
}

.thumb-pill:hover img {
  opacity: 0.85;
}

.thumb-pill.active {
  border-color: var(--accent-liquid);
  box-shadow: 0 0 14px rgba(232, 83, 60, 0.3);
}

.thumb-pill.active img {
  opacity: 1;
}

.thumb-pill.active span {
  color: #fff;
}

/* ================= КАРТОЧКА СКАЧИВАНИЯ ================= */
.download-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
}

.game-category {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Кнопка прямого действия */
.cta-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.liquid-btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--accent-liquid) 0%, #c5301a 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(232, 83, 60, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all var(--transition-smooth);
  text-align: left;
}

.liquid-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(232, 83, 60, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, var(--accent-liquid-hover) 0%, #d43b24 100%);
}

.liquid-btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.btn-main {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-sub {
  font-size: 0.8125rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Статус загрузки */
.status-notice {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #fbbf24;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background: #fbbf24;
  border-radius: 50%;
  animation: pulseLight 1.5s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Спецификации релиза */
.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.spec-label {
  color: var(--text-muted);
}

.spec-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Второстепенные кнопки */
.btn-glass-secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--glass-border-hover);
}

/* ================= СЕТКА ИНФОРМАЦИИ ================= */
.info-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.text-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.section-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.features-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-marker {
  width: 6px;
  height: 6px;
  background: var(--accent-liquid);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.feature-item strong {
  color: var(--text-main);
}

/* Таблица требований */
.req-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

.req-item:last-child {
  border-bottom: none;
}

.req-k {
  color: var(--text-muted);
}

.req-v {
  color: var(--text-main);
  font-weight: 500;
}

/* ================= ФУТЕР ================= */
.glass-footer {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-note {
  font-size: 0.75rem;
  color: #475569;
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 27, 38, 0.95);
  border: 1px solid var(--glass-border-hover);
  backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 860px) {
  .liquid-grid, .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-title {
    font-size: 1.85rem;
  }

  .glass-card {
    padding: 24px 20px;
  }
}
