/**
 * Стили для страницы новогоднего расписания SPBTuning
 * Чистый CSS без фреймворков
 */

/* CSS переменные */
:root {
  --background: #151718;
  --text: #F0F0F0;
  --primary: #CF0939;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --green-500: #22c55e;
}

/* Сброс и базовые стили */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

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

/* Фоновые эффекты */
.background-effect {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.gradient-mesh {
  position: absolute;
  inset: 0;
  background-color: var(--background);
}

.gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background: linear-gradient(to bottom, rgba(207, 9, 57, 0.1), transparent);
  opacity: 0.5;
  filter: blur(48px);
}

.gradient-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

.gradient-middle {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 300px;
  height: 300px;
  background: rgba(127, 29, 29, 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

.garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.garland::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.bottom-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(21, 23, 24, 0.9) 100%);
}

/* Снежинки */
#snowflakes {
  position: absolute;
  inset: 0;
}

.snowflake {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(1px);
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

/* Контейнер */
.container {
  position: relative;
  z-index: 10;
  max-width: 896px;
  margin: 0 auto;
  padding: 48px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .container {
    padding: 48px 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 48px 32px;
  }
}

/* Хедер */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  text-align: center;
}

.logo-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.logo-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(to right, rgba(207, 9, 57, 0.5), rgba(207, 9, 57, 0.2));
  border-radius: 8px;
  filter: blur(4px);
  opacity: 0.25;
  transition: opacity 1s ease;
}

.logo-wrapper:hover .logo-glow {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.logo-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  padding: 12px 24px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: white;
}

.logo-accent {
  color: var(--primary);
}

.subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  margin-bottom: 8px;
}

.subtitle span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.snowflake-icon {
  width: 20px;
  height: 20px;
}

.spin {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .title {
    font-size: 3rem;
  }
}

/* Расписание */
.schedule {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.schedule-item {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease forwards;
  animation-delay: calc(var(--delay) * 0.1s);
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.schedule-item:hover {
  transform: scale(1.02);
}

.schedule-item.weekend {
  background: rgba(127, 29, 29, 0.2);
  border-color: rgba(127, 29, 29, 0.5);
}

.schedule-item.weekend:hover {
  border-color: rgba(185, 28, 28, 0.5);
}

.schedule-item.working {
  background: rgba(24, 24, 27, 0.5);
  border-color: var(--zinc-800);
}

.schedule-item.working:hover {
  border-color: var(--zinc-600);
}

.schedule-item.normal {
  background: rgba(24, 24, 27, 0.3);
  border-color: var(--zinc-800);
}

.schedule-item.normal:hover {
  border-color: rgba(207, 9, 57, 0.5);
}

.status-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.status-stripe.weekend {
  background: var(--primary);
}

.status-stripe.working {
  background: var(--green-500);
}

.status-stripe.normal {
  background: var(--zinc-500);
}

.schedule-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 12px;
}

.schedule-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-wrapper {
  padding: 12px;
  border-radius: 50%;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.icon-wrapper.weekend {
  background: rgba(207, 9, 57, 0.1);
  color: var(--primary);
}

.icon-wrapper.working {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-500);
}

.icon-wrapper.normal {
  background: rgba(113, 113, 122, 0.1);
  color: var(--zinc-400);
}

.schedule-info {
  display: flex;
  flex-direction: column;
}

.dates {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
}

.description {
  font-size: 0.875rem;
  font-weight: 500;
}

.description.weekend {
  color: var(--primary);
}

.description.working {
  color: var(--green-500);
}

.description.normal {
  color: var(--zinc-400);
}

.time-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--zinc-400);
  background: rgba(9, 9, 11, 0.5);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--zinc-800);
}

.time-badge svg {
  width: 14px;
  height: 14px;
}

/* Футер */
.footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(39, 39, 42, 0.5);
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--zinc-400);
}

@media (min-width: 768px) {
  .contacts {
    flex-direction: row;
  }
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--zinc-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary);
}

.contact-icon {
  padding: 8px;
  border-radius: 50%;
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  transition: border-color 0.3s ease;
}

.contact-link:hover .contact-icon {
  border-color: rgba(207, 9, 57, 0.5);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-link span {
  font-size: 0.875rem;
  font-weight: 500;
}

.copyright {
  margin-top: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--zinc-600);
}

