/* 
 * TRL Design System - Game Form Component 
 * Styling for the new game creation form
 */

.game-form {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, var(--trl-primary), var(--trl-secondary));
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: "Rubik", sans-serif;
  color: #ffffff;
  position: relative;
  user-select: text;
}

.game-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.game-form__header {
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.game-form__title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 5px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.game-form__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.game-form__content {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.game-form__description {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  text-align: left;
}

.game-form__icon {
  font-size: 32px;
  margin-right: 16px;
  background-color: rgba(0, 0, 0, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.game-form__description p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.game-form__actions {
  margin-bottom: 24px;
}

.game-form__submit {
  width: 100%;
  background-color: var(--trl-accent);
  color: var(--trl-black);
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.game-form__submit:hover {
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
}

.game-form__submit:active {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.game-form__submit:focus {
  outline: none;
}

.game-form__info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.game-form__info-item {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 8px;
}

.game-form__info-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.game-form__info-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.game-form__footer {
  padding: 16px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.game-form__back-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.game-form__back-link:hover {
  color: var(--trl-accent);
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .game-form__title {
    font-size: 24px;
  }

  .game-form__subtitle {
    font-size: 14px;
  }

  .game-form__content {
    padding: 16px;
  }

  .game-form__icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .game-form__description p {
    font-size: 14px;
  }

  .game-form__info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .game-form__info-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px;
  }

  .game-form__info-icon {
    margin-bottom: 0;
    margin-right: 12px;
  }
}
