/** GLOBAL **/

@font-face {
  font-family: "BebasNeue-Regular";
  src: url("font/BebasNeue-Regular.ttf") format("truetype");
  font-weight: normal;
  font-size: normal;
}

* {
  font-family: "BebasNeue-Regular", sans-serif;
  font-weight: lighter;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem;
  background: #111827;
  color: white;
  gap: 1rem;
}

@media (max-width: 900px) {
  body {
    padding: 0.75rem;
    gap: 1.5rem;
  }
}

.hidden {
  display: none !important;
}

/** TEXT **/

.info-icon img {
  height: 1.2rem !important;
  margin: auto 5px;
}

p {
  font-size: 1.5rem;
}

footer p {
  font-size: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
}

a {
  color: white;
  word-break: break-all;
}

a[target="_blank"]::after {
  content: " ↗";
  display: inline-block;
  text-decoration: none;
  vertical-align: top;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

#round-number {
  font-size: x-large;
  font-weight: lighter;
}

#answer-text,
#question-regular p {
  font-size: 250%;
}

header.welcome-header {
  position: relative;
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;

  margin: -50px auto;
}

img.header-bg {
  width: 80%;
  height: auto;
}

img#long-header {
  display: block !important;
}

img#small-header {
  display: none !important;
}

@media (max-width: 600px) {
  h1.welcome-header-text {
    width: 75%;
    font-size: clamp(1rem, 6vw, 5rem);
  }
  img#long-header {
    display: none !important;
  }
  img#small-header {
    display: block !important;
  }
}

@media (min-width: 601px) {
  h1.welcome-header-text {
    width: 95%;
    font-size: clamp(1rem, 3.5vw, 2.5rem);
  }
}

h1.welcome-header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  /*width: 90%;*/
  margin: 0;
}

@media (max-width: 1400px) {
  img.header-bg {
    width: 110%;
  }

  header.welcome-header {
    margin: -40px auto;
  }
}

@media (max-width: 768px) {
  img.header-bg {
    width: 100%;
  }

  header.welcome-header {
    margin: -20px auto;
    width: 100%;
  }
}

/** SUMMARY & DROPDOWNS **/

aside {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

summary,
aside > a {
  display: block;
  width: 100%;
  max-width: 350px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

aside > a:hover {
  background-color: #374151;
}

summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary.show-arrow::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  border-radius: 5px;
  border: 1px solid #133e7b;
  padding: 5px;
  width: 25px;
  height: 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  transform: rotate(-90deg);

  background-color: #0099ff;

  user-select: none;
  -webkit-user-select: none;
}

details[open] summary::after {
  transform: rotate(0deg);
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #111827;
  padding: 5px;
  border: 1px solid #374151;
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.dropdown-content stripe-button {
  display: block;

  transform-origin: left top;
  margin-bottom: -8px;
  max-width: 90%;
}

.dropdown-content a {
  padding: 10px 15px;
  text-decoration: none;
  color: #9ca3af;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #3b82f6;
  color: white;
}

.dropdown-content > * {
  opacity: 0;
  transform: translateY(-8px);
}

.dropdown-image-icon {
  margin: auto 0;
  padding: 0;
}

.dropdown-image-icon img {
  margin: auto 0;
  width: 35px;
}

#hero-filter-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
  align-items: center;
}

.filter-type-element {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-type-element p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

details[open] .dropdown-content > * {
  animation: dropdownItemIn 0.25s ease-out forwards;

  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes dropdownItemIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(0.9);
  }
}

/** PAGE LAYOUT **/

.page-wrapper {
  display: flex;
  width: 100%;
  gap: 2rem;
  align-items: flex-start;
  flex: 1;
}

main {
  flex: 1;
}

aside {
  width: 320px;
  flex-shrink: 0;
}

header,
footer {
  width: 100%;
}

footer {
  text-align: center;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  width: 100%;
}

@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column-reverse;
  }
  aside {
    width: 100%;
  }
  main {
    width: 100%;
  }
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/** BUTTONS **/
button {
  border: none;
  padding: 5px 10px;
  font-size: 200%;
  border-radius: 3px;
}

/* * AUDIO CONTROLLS  * */

.audio-player {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  background: rgba(8, 10, 26, 0.7);
  border: 1px solid #142254;
  border-left: 4px solid #00f0ff;
  padding: 12px 20px;
  border-radius: 4px;
  width: fit-content;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.audio-player button {
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  border-radius: 2px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%
  );
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.audio-player button:hover {
  background: #00f0ff;
  color: #020205;
  box-shadow: 0 0 15px #00f0ff;
  border-color: #00f0ff;
}

.audio-player input[type="range"] {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: #142254;
  height: 4px;
  border-radius: 2px;
  outline: none;
  width: 120px;
}

.audio-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #ff007f;
  box-shadow: 0 0 8px #ff007f;
  border-radius: 50%;
  transition: transform 0.1s ease;
}

.audio-player input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-player label,
.audio-player span {
  color: #a2add0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(162, 173, 208, 0.2);
  white-space: nowrap;
}

.audio-volume-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .audio-player {
    width: 100%;
    padding: 15px;
    gap: 15px 10px;
  }

  .audio-player button {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  .audio-player span,
  .audio-player label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .audio-player .audio-volume-group,
  .audio-player input[type="range"] {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
  }

  .audio-player input[type="range"] {
    flex: 1;
    min-width: 100px;
  }
}

/** LIST **/
.standalone-ul-item {
  display: list-item;
  list-style-type: disc;
  margin-left: 20px;
}

/** CLASSES **/
.mw-100 {
  max-width: 100%;
}

.trans-1-eio {
  transition: 1s ease-in-out;
}

/*! testing feature - delete if needed */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/** MAIN PAGE **/

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
  background-color: #0b0f12;
  color: #e0e6ed;
  min-height: 700px;
  width: 100%;
  box-sizing: border-box;
}

.changelog-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
  background-color: #0b0f12;
  color: #e0e6ed;
  text-align: left;

  h1 {
    margin: 0;
  }
}

.welcome-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #141a22 0%, #1a2430 100%);
  border-left: 5px solid #00ff66;
  padding: 25px;
  margin-bottom: 30px;
  clip-path: polygon(
    0 0,
    97% 0,
    100% 25px,
    100% 100%,
    3% 100%,
    0% calc(100% - 25px)
  );
  box-shadow: inset 0 0 15px rgba(0, 255, 102, 0.1);
}

.welcome-text h2 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-top: 0;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.welcome-text p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
}

.creator-badge {
  background: #1e1112;
  border: 2px solid #ff3344;
  padding: 15px;
  text-align: center;
  clip-path: polygon(
    10px 0%,
    100% 0%,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0% 100%,
    0% 10px
  );
}

.badge-title {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #ff3344;
  font-weight: bold;
  letter-spacing: 2px;
}

.badge-code {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 5px 0;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(255, 51, 68, 0.6);
}

.creator-badge p {
  font-size: 0.75rem;
  margin: 0;
  color: #ffb3b9;
}

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

.feature-card {
  background: #121820;
  border: 2px solid #26354a;
  padding: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  clip-path: polygon(
    0 0,
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px)
  );
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #00ff66;
}

.feature-card.highlighted {
  border-color: #ffcc00;
  background: linear-gradient(145deg, #121820 0%, #1c1a10 100%);
}

.feature-card.highlighted .card-icon i {
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.card-icon i {
  color: #00ff66;
}

.feature-card h3 {
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 0 0 10px 0;
  color: #ffffff;
  letter-spacing: 1px;
}

.feature-card p {
  color: #8a99ad;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-btn {
  display: block;
  text-align: center;
  background: #1a2536;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 12px;
  border: 1px solid #3b4e68;
  letter-spacing: 1px;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  transition: background 0.2s;
}

.feature-card:hover .card-btn {
  background: #00ff66;
  color: #000000;
  border-color: #00ff66;
}

.feature-card.highlighted .card-btn {
  background: #ffcc00;
  color: #000000;
  border-color: #ffcc00;
}

.latest-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .welcome-hero,
  .latest-section {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 20px;
  }
}

.latest-video,
.quick-status {
  background: #121820;
  border: 1px solid #232f3e;
  padding: 20px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%
  );
}

.latest-video h3,
.quick-status h3 {
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.latest-video h3 {
  color: #ff0044;
}
.quick-status h3 {
  color: #00bfff;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d10038;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 10px;
}

.yt-link:hover {
  text-shadow: 0 0 8px rgba(255, 0, 68, 0.5);
}

#dynamic-tip {
  color: #b0c4de;
  font-style: italic;
  border-left: 3px solid #00bfff;
  padding-left: 10px;
  margin: 5px 0 0 0;
}

/** NEWS SECTION **/

#news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.news-box {
  position: relative;
  background: linear-gradient(135deg, #121820 0%, #17202c 100%);
  border: 1px solid #232f3e;
  border-left: 4px solid #ffcc00;
  padding: 30px 20px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
}

.news-tag {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;

  background: linear-gradient(135deg, #ff1100 0%, #ff6600 50%, #ffcc00 100%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 15px rgba(255, 34, 0, 0.4);

  padding: 6px 16px;

  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  z-index: 5;
}

.changelog-wrapper {
  margin: 0;
  padding: 0;
}

.update-tag {
  position: absolute;
  margin-top: 4px;
  right: 5%;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;

  background: linear-gradient(135deg, #ff1100 0%, #ff6600 50%, #ffcc00 100%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 15px rgba(255, 34, 0, 0.4);

  padding: 6px 16px;

  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  z-index: 5;
}

.news-box:hover .news-tag {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 0, 0.7);
}

.new-box-info h2 {
  margin-top: 10px;
}

.news-box:hover {
  transform: translateY(-3px);
  border-color: #ffcc00;
  background: linear-gradient(135deg, #161f2b 0%, #1d293a 100%);
}

.new-box-info {
  flex: 1;
}

.new-box-info h2 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.news-box:hover .new-box-info h2 {
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.new-box-info p {
  color: #8a99ad;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.news-box-image {
  height: 130px;
  width: auto;
  object-fit: cover;
  border: 2px solid #26354a;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%
  );
  transition: border-color 0.2s ease;
}

.news-box:hover .news-box-image {
  border-color: #ffcc00;
}

@media (max-width: 576px) {
  #news {
    grid-template-columns: 1fr;
  }

  .news-box {
    flex-direction: column-reverse;
    align-items: flex-start;
    clip-path: polygon(
      0 0,
      90% 0,
      100% 20px,
      100% 100%,
      10% 100%,
      0 calc(100% - 20px)
    );
  }

  .news-box-image {
    width: 100%;
    height: 160px;
  }
}

/* * back-to-top button * */
.back-to-top {
  position: fixed;
  bottom: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 899px) {
  .back-to-top {
    left: 20px;
  }
}

@media (min-width: 900px) {
  .back-to-top {
    right: 20px;
  }
}

.back-to-top:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
