/* Мінімалістичний світлий дизайн */

/* Основні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fafbfc;
  min-height: 100vh;
  color: #2c3e50;
  line-height: 1.6;
}

/* Анімований фоновий ефект з частинками */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(147, 197, 253, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(196, 181, 253, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundPulse 10s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 40% 60%, rgba(196, 181, 253, 0.12) 0%, transparent 25%),
    radial-gradient(circle at 70% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 25%);
  pointer-events: none;
  z-index: -1;
  animation: floatingParticles 20s linear infinite;
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

@keyframes floatingParticles {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-8%, 8%) rotate(90deg);
  }
  50% {
    transform: translate(-15%, -8%) rotate(180deg);
  }
  75% {
    transform: translate(8%, -15%) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Контейнер */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Навігація */
.navbar-wrap {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.logo-badge {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-text {
  color: #1e293b;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.nav-link:hover {
  color: #3b82f6;
  background: #f1f5f9;
}

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

.nav-auth {
  display: flex;
  gap: 8px;
}

.login, .register {
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 14px;
}

.login {
  color: #3b82f6;
  background: transparent;
  border: 1px solid #e2e8f0;
}

.login:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.register {
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
}

.register:hover {
  background: #2563eb;
}

/* Акаунт віджет */
.account {
  position: relative;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.account-menu {
  position: absolute;
  right: 0;
  top: 48px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  min-width: 220px;
  display: none;
  overflow: hidden;
}

.account.open .account-menu {
  display: block;
}

.account-row {
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  color: #475569;
  transition: background 0.15s;
  font-size: 14px;
}

.account-row:hover {
  background: #f8fafc;
}

.account-row strong {
  color: #1e293b;
  font-weight: 600;
}

.account-row.muted {
  color: #94a3b8;
  font-size: 13px;
}

.account-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.linklike {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  font-size: 14px;
  transition: background 0.15s;
}

.linklike:hover {
  background: #f8fafc;
}

/* Flash повідомлення */
.flash {
  margin-bottom: 24px;
}

.flash-item {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid;
}

.flash-item.success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.flash-item.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.flash-item.info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Заголовки */
h1 {
  font-size: 36px;
  margin-bottom: 28px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1e293b;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 600;
}

/* Hero секції */
.hero {
  text-align: center;
  padding: 56px 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.08) 0%, transparent 50%, rgba(147, 197, 253, 0.08) 100%);
  animation: heroGradientMove 6s ease-in-out infinite;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes heroGradientMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-15%, -15%) rotate(180deg);
  }
}

.hero h2 {
  color: #0f172a;
  font-size: 32px;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.hero .muted {
  color: #64748b;
  font-size: 15px;
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.7;
}

/* Banner реєстрації */
.registration-banner {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.7) 0%, rgba(191, 219, 254, 0.7) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 48px 40px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.registration-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(147, 197, 253, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: bannerFloat 5s ease-in-out infinite;
}

.registration-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(147, 197, 253, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: bannerFloat 7s ease-in-out infinite reverse;
}

@keyframes bannerFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 30px) scale(1.2);
  }
}

.registration-banner h2 {
  color: #1e3a8a;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.registration-banner .muted {
  color: #1e40af;
  max-width: 640px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

/* CTA */
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #f1f5f9;
}

/* Кнопки */
.btn {
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  line-height: 1.5;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-outline {
  background: white;
  color: #3b82f6;
  border-color: #e2e8f0;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-secondary {
  background: #64748b;
  color: white;
  border-color: #64748b;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-danger {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Форми */
.form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-weight: 500;
  color: #334155;
  font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #fafbfc;
  color: #334155;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row input:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #f1f5f9;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.row-inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3b82f6;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Секції бронювання */
.booking-hero,
.booking-form,
.reservations-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.booking-hero h2,
.reservations-section h2 {
  color: #0f172a;
  margin-bottom: 8px;
  font-size: 22px;
}

.booking-hero .muted {
  color: #64748b;
  font-size: 14px;
}

/* Список бронювань */
.reservations {
  list-style: none;
  display: grid;
  gap: 12px;
}

.reservation-item {
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  border-left: 3px solid #3b82f6;
  transition: all 0.2s;
}

.reservation-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateX(2px);
}

.reservation-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reservation-info strong {
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
}

.reservation-info .date {
  color: #64748b;
  font-size: 13px;
}

.no-reservations {
  text-align: center;
  color: #94a3b8;
  padding: 40px;
  font-size: 15px;
}

/* Картки */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.section-sub {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 14px;
}

.section-sub a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.section-sub a:hover {
  text-decoration: underline;
}

.muted {
  color: #94a3b8;
}

/* Features блок - Bento Grid стиль */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.feature-block {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 440px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.4) 0%, rgba(241, 245, 249, 0.4) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-block:first-child {
  grid-column: span 2;
  height: 380px;
}

.feature-block:hover {
  transform: scale(1.02);
}

.feature-block:hover .feature-img {
  transform: scale(1.05);
}

.feature-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.feature-text {
  position: relative;
  height: 30%;
  padding: 24px 28px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-text h3 {
  color: #0f172a;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-text p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Адаптивність */

/* Планшети */
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature-block {
    height: 340px;
  }

  .feature-block:first-child {
    grid-column: span 1;
    height: 340px;
  }

  .feature-text {
    padding: 18px 20px;
  }

  .feature-text h3 {
    font-size: 17px;
  }

  .feature-text p {
    font-size: 13px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .registration-banner h2 {
    font-size: 24px;
  }
}

/* Мобільні пристрої */
@media (max-width: 768px) {
  /* Навігація */
  .navbar {
    padding: 12px 16px;
  }

  .nav {
    gap: 20px;
  }

  .logo {
    font-size: 16px;
  }

  .logo-badge {
    width: 26px;
    height: 26px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .login, .register {
    padding: 7px 14px;
    font-size: 13px;
  }

  .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Контейнер */
  .container {
    padding: 16px 16px;
  }

  /* Заголовки */
  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  h3 {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero .muted {
    font-size: 14px;
  }

  /* Registration Banner */
  .registration-banner {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .registration-banner h2 {
    font-size: 22px;
  }

  .registration-banner .muted {
    font-size: 14px;
  }

  .registration-banner::before {
    width: 200px;
    height: 200px;
  }

  /* CTA */
  .cta {
    flex-direction: column;
    gap: 10px;
  }

  .cta .btn {
    width: 100%;
    padding: 12px 24px;
  }

  /* Кнопки */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Форми */
  .form {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Секції бронювання */
  .booking-hero,
  .booking-form,
  .reservations-section {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .booking-hero h2,
  .reservations-section h2 {
    font-size: 20px;
  }

  .booking-hero .muted {
    font-size: 13px;
  }

  /* Бронювання */
  .reservation-item {
    padding: 14px;
  }

  .reservation-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .reservation-info strong {
    font-size: 14px;
  }

  .reservation-info .date {
    font-size: 12px;
  }

  .no-reservations {
    padding: 32px 16px;
    font-size: 14px;
  }

  /* Картки */
  .card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .section-title {
    font-size: 17px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .section-sub {
    font-size: 13px;
  }

  /* Feature блоки */
  .features {
    gap: 12px;
    margin-top: 20px;
  }

  .feature-block {
    height: 320px;
    border-radius: 16px;
  }

  .feature-block:first-child {
    height: 320px;
  }

  .feature-block:hover {
    transform: none;
  }

  .feature-img {
    height: 65%;
  }

  .feature-text {
    height: 35%;
    padding: 16px 18px;
  }

  .feature-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .feature-text p {
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  /* Flash повідомлення */
  .flash {
    margin-bottom: 16px;
  }

  .flash-item {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* Account menu */
  .account-menu {
    min-width: 200px;
    right: 0;
  }

  /* Row inline */
  .row-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* CTA bottom */
  .cta-bottom {
    margin-top: 24px;
    padding-top: 24px;
  }
}

/* Маленькі телефони */
@media (max-width: 480px) {
  .container {
    padding: 12px 12px;
  }

  .navbar {
    padding: 10px 12px;
  }

  .logo {
    font-size: 15px;
    gap: 8px;
  }

  .logo-badge {
    width: 24px;
    height: 24px;
  }

  .login, .register {
    padding: 6px 12px;
    font-size: 12px;
  }

  h2 {
    font-size: 18px;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero .muted {
    font-size: 13px;
  }

  .registration-banner {
    padding: 24px 16px;
  }

  .registration-banner h2 {
    font-size: 20px;
  }

  .feature-block {
    height: 280px;
  }

  .feature-block:first-child {
    height: 280px;
  }

  .feature-text {
    padding: 14px 16px;
  }

  .feature-text h3 {
    font-size: 15px;
  }

  .feature-text p {
    font-size: 12px;
  }

  .form {
    padding: 16px 14px;
  }

  .card {
    padding: 16px 14px;
  }

  .booking-hero,
  .booking-form,
  .reservations-section {
    padding: 16px 14px;
  }
}
