/* full-hd dimensions: width 1920, height 911 */

:root {
  --genshin-blue: #69c0de;
  --genshin-gold: #f7cf33;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --bg: #f9fafb;
  --text: #1f2937;
  --text-light: #4b5563;
  --added: #10b981;
  --fixed: #f59e0b;
  --updated: #3b82f6;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
  --dark-color: #2c3e50;
  --light-color: #f9f9f9;
  --accent-color: #e76f51;
  --story-color: #78a9db;
  --combat-color: #e07a5f;

  /* Anemo (Wind) - Green */
  --anemo-primary-white: #74c2a8;
  --anemo-secondary-white: #59a990;
  --anemo-accent-white: #3d7d69;

  /* Geo (Earth) - Yellow/Brown */
  --geo-primary-white: #fab632;
  --geo-secondary-white: #d89b20;
  --geo-accent-white: #9e6e17;

  /* Electro (Lightning) - Purple */
  --electro-primary-white: #a757cb;
  --electro-secondary-white: #8445a3;
  --electro-accent-white: #62317a;

  /* Dendro (Nature) - Green */
  --dendro-primary-white: #7ec236;
  --dendro-secondary-white: #68a42b;
  --dendro-accent-white: #4e7a20;

  /* Hydro (Water) - Blue */
  --hydro-primary-white: #4cc2f1;
  --hydro-secondary-white: #30a6d8;
  --hydro-accent-white: #1f7ca3;

  /* Pyro (Fire) - Red */
  --pyro-primary-white: #ef674a;
  --pyro-secondary-white: #d94e2f;
  --pyro-accent-white: #a83a22;

  /* Cryo (Ice) - Light Blue */
  --cryo-primary-white: #9fd6e3;
  --cryo-secondary-white: #7bbecf;
  --cryo-accent-white: #5a9cab;

  /* 5 star rarity color */
  --five-star: #db914f;

  /* 4 star rarity color */
  --four-star: #7a6ba1;

  /* 3 star rarity color */
  --three-star: #708aaa;

  /* 2 star rarity color */
  --two-star: #638879;

  /* 1 star rarity color */
  --one-star: #7a7b7f;
}

.anemo {
  color: var(--anemo-secondary-white);
}

.anemo-bg {
  color: var(--light-color);
  background-color: var(--anemo-secondary-white);
}

.geo {
  color: var(--geo-secondary-white);
}

.geo-bg {
  color: var(--light-color);
  background-color: var(--geo-secondary-white);
}

.electro {
  color: var(--electro-secondary-white);
}

.electro-bg {
  color: var(--light-color);
  background-color: var(--electro-secondary-white);
}

.dendro {
  color: var(--dendro-secondary-white);
}

.dendro-bg {
  color: var(--light-color);
  background-color: var(--dendro-secondary-white);
}

.hydro {
  color: var(--hydro-secondary-white);
}

.hydro-bg {
  color: var(--light-color);
  background-color: var(--hydro-secondary-white);
}

.pyro {
  color: var(--pyro-secondary-white);
}

.pyro-bg {
  color: var(--light-color);
  background-color: var(--pyro-secondary-white);
}

.cryo {
  color: var(--cryo-secondary-white);
}

.cryo-bg {
  color: var(--light-color);
  background-color: var(--cryo-secondary-white);
}

/* Dark theme colors - will be applied when .dark-theme class is added */
.dark-theme {
  --bg: #111827;
  --text: #f9fafb;
  --text-light: #9ca3af;
  --card-bg: #1f2937;
  --shadow: rgba(0, 0, 0, 0.3);

  /* Anemo (Wind) - Green */
  --anemo-primary-black-bg: #a0e5d0;
  --anemo-secondary-black-bg: #74c2a8;
  --anemo-accent-black-bg: #59a990;

  /* Geo (Earth) - Yellow/Brown */
  --geo-primary-black-bg: #ffda85;
  --geo-secondary-black-bg: #fab632;
  --geo-accent-black-bg: #d89b20;

  /* Electro (Lightning) - Purple */
  --electro-primary-black-bg: #d19bef;
  --electro-secondary-black-bg: #a757cb;
  --electro-accent-black-bg: #8445a3;

  /* Dendro (Nature) - Green */
  --dendro-primary-black-bg: #a3e462;
  --dendro-secondary-black-bg: #7ec236;
  --dendro-accent-black-bg: #68a42b;

  /* Hydro (Water) - Blue */
  --hydro-primary-black-bg: #7dd5ff;
  --hydro-secondary-black-bg: #4cc2f1;
  --hydro-accent-black-bg: #30a6d8;

  /* Pyro (Fire) - Red */
  --pyro-primary-black-bg: #ff8d74;
  --pyro-secondary-black-bg: #ef674a;
  --pyro-accent-black-bg: #d94e2f;

  /* Cryo (Ice) - Light Blue */
  --cryo-primary-black-bg: #c5e9f3;
  --cryo-secondary-black-bg: #9fd6e3;
  --cryo-accent-black-bg: #7bbecf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  padding: 2rem;
  line-height: 1.6;
  background-position-x: center;
  background-position-y: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

h1 {
  /* text-align: center; */
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 2.5rem;
  letter-spacing: -0.025em;
}

.container {
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.7);
  justify-self: center;
  margin-bottom: 60px;
  padding: 0;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  color: white;
}

.badge.new {
  background-color: var(--added);
}

.bottom-container {
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 15px;
  width: 30%;
  min-width: 750px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 40%);
  border-top-left-radius: 8px;
  /* backdrop-filter: blur(4px); */
  z-index: 1000;
}

.bottom-container .item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.bottom-container .item:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

img[data-img-loading-error] {
  --img-border-space: 1em;
  padding-inline-start: var(--img-border-space);
  padding-block: var(--img-border-space);
  max-width: 42ch;
  margin-inline: auto;
}

/* Special styling for version number */
.bottom-container #version {
  font-size: 14px;
  opacity: 0.8;
}

.changelog-container {
  max-width: 800px;
  margin: 0 auto;
}

.version-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.version-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.version-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.version-number span {
  background-color: var(--primary);
  color: white;
  border-radius: 1rem;
  padding: 0.2rem 0.8rem;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.version-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.changes-section {
  margin-bottom: 1.5rem;
}

.changes-section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.section-title.added {
  color: var(--added);
}

.section-title.fixed {
  color: var(--fixed);
}

.section-title.updated {
  color: var(--updated);
}

.section-title svg {
  margin-right: 0.5rem;
}

.changes-list {
  list-style: none;
  padding-left: 2rem;
}

.changes-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.changes-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.changes-list.added li::before {
  color: var(--added);
}

.changes-list.fixed li::before {
  color: var(--fixed);
}

.changes-list.updated li::before {
  color: var(--updated);
}

.empty-notice {
  color: var(--text-light);
  font-style: italic;
  padding-left: 2rem;
}

.backdrop {
  background: rgb(0 0 0 / 30%);
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.recommended-ar {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: #1e293b;
  padding: 3px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

div[name="quiz-difficulty-display"] {
  padding-bottom: 1rem;
}

.level-easy .recommended-ar {
  background-color: #10b981;
  color: white;
}

.level-medium .recommended-ar {
  background-color: #3b82f6;
  color: white;
}

.level-hard .recommended-ar {
  background-color: #8b5cf6;
  color: white;
}

/* Tooltip component styling */
.custom-tooltip {
  --bs-tooltip-bg: #0d6efd;
  --bs-tooltip-color: white;
  --bs-tooltip-max-width: 250px;
  --bs-tooltip-padding-x: 10px;
  --bs-tooltip-padding-y: 8px;
  --bs-tooltip-font-size: 0.9rem;
  --bs-tooltip-opacity: 0.95;
  --bs-tooltip-arrow-width: 10px;
  --bs-tooltip-arrow-height: 6px;
}

.tooltip {
  font-weight: normal;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); */
}

/* Menu component styling */
nav {
  max-width: 1100px;
  mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 25%, #ffffff 75%, rgba(255, 255, 255, 0) 100%);
  margin: 0 auto;
  padding: 20px 0 20px 0;
}

nav ul {
  padding: 0;
  margin: 0;
  text-align: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0.5) 100%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.6);
}

nav ul li {
  display: inline-block;
  position: relative;
}

nav ul li a {
  padding: 18px;
  font-family: "Open Sans";
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.visible {
  opacity: 1;
}

nav ul li:hover {
  div.help-icon {
    opacity: 1;
  }
}

nav ul li a:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

nav ul li.active {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.badge-daily {
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  position: absolute;
}

/* Help icon styling */
.help-icon {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;

  &.visible {
    opacity: 1;
  }

  &.left {
    left: 0;
  }

  &.right {
    right: 0;
  }
}

#quizzes-list > div.card:hover .help-icon {
  opacity: 1;
}

.help-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.help-icon i {
  color: #0d6efd;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.help-icon i:hover {
  transform: scale(1.2);
}

.flex-1 {
  flex: 1;
}

.quality-5 {
  background: var(--five-star);
}

.quality-4 {
  background: var(--four-star);
}

.quality-3 {
  background: var(--three-star);
}

.quality-2 {
  background: var(--two-star);
}

.quality-1,
.quality-0 {
  background: var(--one-star);
}

.loader {
  flex-direction: column;
  justify-content: center;
  z-index: 100000;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgb(45 45 45 / 75%);
}

@keyframes noise-animation {
  100% {
    background-position: 50% 0, 60% 50%;
  }
}

/* Mobile responsiveness */
@media only screen and (max-width: 992px) {
  nav ul {
    display: flex;
    flex-direction: column;
  }

  .help-icon {
    &.left {
      left: calc(50% - 50px);
    }

    &.right {
      right: calc(50% - 50px);
    }
  }

  .d-flex {
    flex-wrap: wrap;
  }

  .text-center-mobile {
    text-align: center;
  }

  .flex-column-mobile {
    flex-direction: column !important;
  }

  .m-auto-mobile {
    margin: auto !important;
  }

  .mx-auto-mobile {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .my-auto-mobile {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .m-0-mobile {
    margin: 0 !important;
  }

  .bottom-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0px;
    background: rgba(0, 0, 0, 0.8);
  }

  .container {
    margin-bottom: 10px;
  }
}

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-35 {
  width: 35%;
}

.w-40 {
  width: 40%;
}

.w-45 {
  width: 45%;
}

.w-50 {
  width: 50%;
}

.w-55 {
  width: 55%;
}

.w-60 {
  width: 60%;
}

.w-65 {
  width: 65%;
}

.w-70 {
  width: 70%;
}

.w-75 {
  width: 75%;
}

.w-80 {
  width: 80%;
}

.w-85 {
  width: 85%;
}

.w-90 {
  width: 90%;
}

.w-95 {
  width: 95%;
}

.w-100 {
  width: 100%;
}

@media only screen and (max-width: 992px) {
  .w-5 {
    width: 50%;
  }

  .w-10 {
    width: 50%;
  }

  .w-15 {
    width: 50%;
  }

  .w-20 {
    width: 50%;
  }

  .w-25 {
    width: 50%;
  }

  .w-30 {
    width: 50%;
  }

  .w-35 {
    width: 50%;
  }

  .w-40 {
    width: 50%;
  }

  .w-45 {
    width: 50%;
  }

  .w-50 {
    width: 50%;
  }

  .w-55 {
    width: 100%;
  }

  .w-60 {
    width: 100%;
  }

  .w-65 {
    width: 100%;
  }

  .w-70 {
    width: 100%;
  }

  .w-75 {
    width: 100%;
  }

  .w-80 {
    width: 100%;
  }

  .w-85 {
    width: 100%;
  }

  .w-90 {
    width: 100%;
  }

  .w-95 {
    width: 100%;
  }

  .w-100 {
    width: 100%;
  }
}
