/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
  color: #2d3748;
  max-width: 820px;
  margin: 0px auto;
  line-height: 1.6;
  min-height: 100vh;
  background-size: 50px 50px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

/* Основной контейнер - как металлический ящик */
.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 5px;
  z-index: 0;
}

/* Заголовок страницы - как вывеска паба */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 3px solid #edf2f7;
  position: relative;
  z-index: 1;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
}

.page-header h1 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
  color: #1a202c;
  text-align: left;
}

.search-box {
  display: flex;
  width: 100%;
}

.search-box form {
  display: flex;
  width: 100%;
  gap: 10px;
}

.search-input {
  flex-grow: 1;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.search-input:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.search-button {
  background: #3182ce;
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.search-button:hover {
  background: #2c5282;
}

/* Контейнер для карточек - как доска объявлений */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* Стили карточек - как заметки на доске */
.card {
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s;
  display: block;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-header {
  display: inline-block;
  background: #e6f0ff;
  color: #2b6cb0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 2px 8px;
  color: #4a5568;
  line-height: 1.7;
  flex-grow: 1;
}

.card-text {
  color: #d3d3d3;
  line-height: 1.7;
  text-align: left;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.new-session {
  max-width: 420px;
  margin: 50px auto;
  padding: 40px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 3px solid #b8860b;
  box-shadow:
    8px 8px 0px #8b0000,
    15px 15px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  font-family: 'Arial Narrow', 'Franklin Gothic Medium', sans-serif;
}

/* Эффект потертостей */
.new-session::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: 5px;
}

/* Заголовок в стиле вывески паба */
.form-header {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 15px;
  border-bottom: 2px solid #b8860b;
  position: relative;
}

.form-header h2 {
  color: #ffd700;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 0 #8b0000;
  font-family: 'Impact', 'Haettenschweiler', sans-serif;
}

.form-header p {
  color: #d3d3d3;
  font-size: 14px;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Стили формы */
.new-session form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Стили полей ввода - как старые вывески */
.new-session input[type="email"],
.new-session input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: #f5f5f5;
  background: #2a2a2a;
  border: 2px solid #696969;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.new-session input[type="email"]:focus,
.new-session input[type="password"]:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(184, 134, 11, 0.5);
}

.new-session input[type="email"]::placeholder,
.new-session input[type="password"]::placeholder {
  color: #a9a9a9;
  font-style: italic;
}

/* Кнопка в стиле лондонского паба */
.new-session input[type="submit"] {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(to bottom, #ffd700 0%, #b8860b 100%);
  border: 2px solid #8b0000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Impact', 'Haettenschweiler', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow:
    3px 3px 0 #8b0000,
    inset 0 0 10px rgba(255, 215, 0, 0.3);
}

.new-session input[type="submit"]:hover {
  background: linear-gradient(to bottom, #ffed4e 0%, #daa520 100%);
  transform: translate(-2px, -2px);
  box-shadow:
    5px 5px 0 #8b0000,
    inset 0 0 10px rgba(255, 215, 0, 0.5);
}

.new-session input[type="submit"]:active {
  transform: translate(0, 0);
  box-shadow:
    1px 1px 0 #8b0000,
    inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Дополнительные детали - стикеры, как на лондонских столбах */
.new-session::after {
  content: 'STRICTLY NO ADMITTANCE';
  position: absolute;
  top: -15px;
  right: 20px;
  background: #8b0000;
  color: #ffd700;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: bold;
  transform: rotate(5deg);
  border: 1px solid #ffd700;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

/* Информационное сообщение */
.info-note {
  margin-top: 20px;
  padding: 10px;
  background: rgba(139, 0, 0, 0.1);
  border-left: 3px solid #b8860b;
  font-size: 12px;
  color: #a9a9a9;
  font-style: italic;
  text-align: center;
}

.game-files {
  display: flex;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.game-files a {
  color: #4a5568;
  font-weight: 600;
}

.file {
  flex: 1 0 auto;
  text-align: left;
}

.file-link {
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.file-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: white;
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.file-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.file-link:hover::before {
  left: 100%;
}

.file-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .game-files {
    flex-wrap: nowrap;
    gap: 15px;
  }

  .file {
    flex: 1;
  }

  .file-link {
    padding: 14px 24px;
    font-size: 1.05em;
  }
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .search-box form {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
    margin-bottom: 10px;
  }

  .search-button {
    width: 100%;
    padding: 16px;
  }

  .game-files {
    flex-direction: column;
    gap: 10px;
  }

  .file {
    width: 100%;
  }

  .file-link {
    padding: 15px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .card-header,
  .card-body {
    padding: 15px;
  }

  .new-session {
    margin: 20px;
    padding: 30px 20px;
    box-shadow:
      4px 4px 0px #8b0000,
      8px 8px 15px rgba(0, 0, 0, 0.4);
  }

  .form-header h2 {
    font-size: 24px;
  }

  .new-session::after {
    font-size: 8px;
    right: 10px;
  }

  .file-link {
    padding: 12px 16px;
    font-size: 0.95em;
  }
}

/* Анимация появления карточек */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.card {
  animation: slideIn 0.6s ease-out;
}

/* Мигающая вывеска */
@keyframes pubSign {

  0%,
  100% {
    text-shadow:
      3px 3px 0 #8b0000,
      6px 6px 0 rgba(0, 0, 0, 0.8);
  }

  50% {
    text-shadow:
      3px 3px 0 #8b0000,
      6px 6px 0 rgba(0, 0, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.8);
  }
}

/* Стили для дополнительных элементов (если появятся) */
.warning-tape {
  position: relative;
  padding: 10px;
  margin: 20px 0;
  background: repeating-linear-gradient(45deg,
      #000,
      #000 10px,
      #ffd700 10px,
      #ffd700 20px);
  color: #000;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.new-session {
  animation: pubSignGlow 3s ease-in-out infinite;
}

/* Стиль для лейблов (если они появятся) */
.new-session label {
  color: #ffd700;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
  font-family: 'Arial Narrow', sans-serif;
}
