/* /css/core/base.css */
/* Базовые стили и CSS переменные */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Основная темная тема */
  --bg: #0a0e17;
  --bg2: #111927;
  --bg3: #1a2332;
  --bg4: #1f2b3d;
  --gold: #c9a84c;
  --gold-l: #e0c068;
  --gold-d: #a08030;
  --gold-g: rgba(201, 168, 76, 0.4);
  --grn: #2d6a4f;
  --grn-l: #40916c;
  --txt: #e8e8e8;
  --txt2: #a0a8b4;
  --txt3: #6b7280;
  --brd: #2a3444;
  --red: #ef4444;
  --r: 12px;
  --t: 0.3s ease;

  /* Доп. цвета */
  --color-primary: #1a2e1a;
  --color-secondary: #c9a962;
  --color-accent: #c45c26;
  --color-bg: #f5f3ef;
  --color-dark: #1c1c1c;
  --color-text: #1a1a1a;
  --color-text-light: #6b6b6b;
  --color-success: #10b981;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Общие стили для секций */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--txt);
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--txt2);
}

/* ===== УВЕДОМЛЕНИЯ ===== */
/* Контейнер для уведомлений (может быть один или несколько) */
.cr-notif {
  position: fixed;
  top: 30px;
  right: 58%;
  height: fit-content;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Типы уведомлений */
.cr-notif.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.cr-notif.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.cr-notif.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cr-notif.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Иконки для уведомлений */
.cr-notif::before {
  font-size: 1.2rem;
  line-height: 1;
}

.cr-notif.success::before {
  content: "✅";
}

.cr-notif.error::before {
  content: "❌";
}

.cr-notif.warning::before {
  content: "⚠️";
}

.cr-notif.info::before {
  content: "ℹ️";
}

/* Анимация пульсации для важных уведомлений */
.cr-notif.pulse {
  animation: notifPulse 0.5s ease 2;
}

@keyframes notifPulse {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(0) scale(1.05); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}


/* Альтернативный вариант - уведомления в правом верхнем углу */
/* .cr-notif.top-right {
  top: 20px;
  bottom: auto;
  left: auto;
  right: 20px;
  transform: translateX(120%) translateY(0);
}

.cr-notif.top-right.show {
  transform: translateX(0) translateY(0);
} */

/* Стек уведомлений (если нужно несколько) */
.cr-notif-stack {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.cr-notif-stack .cr-notif {
  position: relative;
  bottom: auto;
  left: auto;
  transform: translateX(-50%) translateY(0);
  margin-bottom: 0;
  pointer-events: auto;
}

/* Прогресс-бар для уведомлений */
.cr-notif.with-progress {
  padding-bottom: 20px;
}

.cr-notif-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 50px 50px;
  animation: progress 2s linear forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}
