/* Additions on top of the original Hostinger stylesheet. */

/* ---------------------------------------------------------------- Spotify */

/* Spotify player in the hero, under the social icons: the slim horizontal bar
   variant (80px), aligned with the left edge of the title above it. */
.spotify-element {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.spotify-embed {
  width: 100%;
  max-width: 680px;
  height: 80px;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 920px) {
  .spotify-element {
    padding: 0 16px 24px;
  }
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  background: #fff;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  color: #8b8f94;
}

/* The way in for the artist: visible enough to find, quiet enough to ignore. */
.site-footer__key {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d7dade;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.site-footer__key:hover,
.site-footer__key:focus-visible {
  opacity: 1;
  background: #1e2a3a;
}

/* --------------------------------------------------------- concerts list */

.concerts {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.concert__title {
  margin: 0 0 6px;
}

.concert__body p {
  margin: 0 0 4px;
}

.concerts__empty {
  color: #8b8f94;
  font-style: italic;
}

/* ------------------------------------------------------------ editor: UI */

.ed-field {
  outline: 2px dashed rgba(30, 42, 58, 0.35);
  outline-offset: 8px;
  border-radius: 2px;
  transition: outline-color 0.2s ease, background-color 0.2s ease;
}

.ed-field:hover {
  outline-color: rgba(30, 42, 58, 0.7);
  background: rgba(30, 42, 58, 0.03);
}

.ed-field:focus {
  outline: 2px solid #1e2a3a;
  background: rgba(30, 42, 58, 0.04);
}

body.ed-on {
  padding-bottom: 80px;
}

/* buttons ------------------------------------------------------------- */

.ed-btn {
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ed-btn--primary {
  background: #1e2a3a;
  color: #fff;
}

.ed-btn--primary:hover:not(:disabled) {
  background: #0d141a;
}

.ed-btn--primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.ed-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.ed-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ed-modal .ed-btn--ghost {
  border-color: #d7dade;
  color: #4a4f55;
}

.ed-modal .ed-btn--ghost:hover {
  background: #f2f4f6;
}

.ed-btn--add {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed #9aa0a6;
  color: #1e2a3a;
}

.ed-btn--add:hover {
  background: rgba(30, 42, 58, 0.06);
  border-style: solid;
}

/* login modal --------------------------------------------------------- */

.ed-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 20, 26, 0.55);
  backdrop-filter: blur(3px);
}

.ed-modal__card {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-family: Raleway, sans-serif;
}

.ed-modal__title {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #0d141a;
}

.ed-modal__hint {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #6b7076;
}

.ed-modal__input,
.ed-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dade;
  border-radius: 8px;
  background: #fff;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  color: #0d141a;
}

.ed-modal__input:focus,
.ed-input:focus {
  outline: none;
  border-color: #1e2a3a;
  box-shadow: 0 0 0 3px rgba(30, 42, 58, 0.12);
}

.ed-modal__error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #c0392b;
}

.ed-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* editing toolbar ----------------------------------------------------- */

.ed-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 50px;
  background: #0d141a;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-family: Raleway, sans-serif;
  color: #fff;
}

.ed-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.ed-bar__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}

.ed-bar__links {
  display: flex;
  gap: 12px;
  padding: 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 14px;
}

.ed-bar__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.ed-bar__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* concert cards in edit mode ------------------------------------------ */

.concerts--editing {
  gap: 16px;
}

.ed-concert {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e2e5e8;
  border-radius: 12px;
  background: #fafbfc;
}

.ed-concert__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-concert__n {
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8f94;
}

.ed-concert__tools {
  display: flex;
  gap: 6px;
}

.ed-icon {
  padding: 5px 10px;
  border: 1px solid #d7dade;
  border-radius: 6px;
  background: #fff;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  color: #4a4f55;
  cursor: pointer;
}

.ed-icon:hover:not(:disabled) {
  background: #eef0f2;
}

.ed-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

.ed-icon--danger:hover {
  border-color: #c0392b;
  background: #fdeceb;
  color: #c0392b;
}

.ed-input--area {
  resize: vertical;
  line-height: 1.5;
}

/* toast ---------------------------------------------------------------- */

.ed-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  transform: translate(-50%, 10px);
  border-radius: 10px;
  background: #1e2a3a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: Raleway, sans-serif;
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ed-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ed-toast--ok { background: #1c7a4a; }
.ed-toast--error { background: #b03a2e; }

@media (max-width: 700px) {
  .ed-bar {
    left: 16px;
    right: 16px;
    bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
    border-radius: 16px;
  }
}
