@import url("https://fonts.googleapis.com/css2?family=Carlito&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5ff;
  --text: #333355;
  --search-bg: #ffffff;
  --container-bg: #ffffff;
  --button-bg: #000000;
  --button-text: #ffffff;
  --shadow: rgba(0, 0, 30, 0.2);
  --shadow-light: rgba(0, 0, 100, 0.3);
  --border-color: #e0e0e0;
  --select-bg: #ffffff;
  --select-border: #cccccc;
  --purple: rgb(123, 31, 162);
  --violet: rgb(103, 58, 183);
  --pink: rgb(244, 143, 177);
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #ffffff;
  --search-bg: #2a2a2a;
  --container-bg: #2a2a2a;
  --button-bg: #ffffff;
  --button-text: #000000;
  --shadow: rgba(0, 0, 0, 0.5);
  --shadow-light: rgba(0, 0, 0, 0.7);
  --border-color: #444444;
  --select-bg: #2a2a2a;
  --select-border: #555555;
  --purple: rgb(123, 31, 162);
  --violet: rgb(103, 58, 183);
  --pink: rgb(244, 143, 177);
}

html {
  height: 100%;
  background-color: var(--bg) !important;
}

body {
  min-height: 100vh;
  font-family: "Carlito", sans-serif;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  padding: 0;
  margin: 0;
  background-color: var(--bg) !important;
}

/* Ensure there's room at the bottom so last content isn't cut off */
body::after {
  content: "";
  display: block;
  height: 64px;
  width: 100%;
}

/* Global scrollbar styling */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--search-bg);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--button-bg);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--button-bg) var(--search-bg);
}

.theme-toggle {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
}

.centered {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.search {
	position: relative;
	width: 100%;
	flex: 1;
	height: 3rem;
	padding-left: 1.5rem;
	border-radius: 1.5rem;
	background: var(--search-bg);
	box-shadow: 0 0.5rem 1.5rem -0.5rem var(--shadow);
	transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

.search::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	box-shadow: 0 0.5rem 2rem -0.5rem var(--shadow-light);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease-in-out;
}

.search input {
	all: unset;
	height: 100%;
	width: calc(100% - 8rem);
	color: var(--text);
	font-size: 1rem;
}

.search input::placeholder {
	color: var(--text);
	opacity: 0.4;
}

.search button {
	all: unset;
	position: absolute;
	right: 0;
	height: 3rem;
	padding-left: 3rem;
	border-radius: 1.5rem;
	background: var(--button-bg);
	cursor: pointer;
	transition: all 0.3s ease;
}

.search button::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	box-shadow: 0 0.3rem 1rem 0 var(--shadow);
	opacity: 0;
	transition: opacity 300ms ease-in-out;
}

.search button:hover::before {
	opacity: 1;
}

.search button:hover {
	transform: scale(1.05);
}

.search button label {
	display: block;
	opacity: 0;
	color: var(--button-text);
	width: 0;
	transition: width 200ms ease-in-out, opacity 100ms ease-in-out;
	cursor: pointer;
}

.search .search-icon {
	position: absolute;
	height: 0.875rem;
	width: 0.875rem;
	top: 1rem;
	left: 0.875rem;
	border: 0.125rem solid var(--button-text);
	border-radius: 50%;
	box-sizing: border-box;
	transform: rotate(-45deg);
	transition: border-color 0.3s ease;
}

.search .search-icon::after {
	content: "";
	position: absolute;
	height: 0.5rem;
	width: 0.125rem;
	background: var(--button-text);
	left: calc(50% - (0.125rem / 2));
	bottom: -0.6rem;
	transition: background 0.3s ease;
}

.search:has(input:not(:placeholder-shown)) button label {
	opacity: 1;
	width: 3rem;
	margin-left: -0.5rem;
	padding-right: 1rem;
}

.search:has(input:focus) {
	transform: translateY(-0.5rem);
}

.search:has(input:focus)::before {
	opacity: 1;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid;
  border-color: var(--text) transparent;
  animation: l1 1s infinite;
}
@keyframes l1 {to{transform: rotate(.5turn)}}

.switch {
  position: relative;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  width: 60px;
  height: 34px;
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#input:checked + .slider {
  background-color: black;
}

#input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

.main_container {
  margin: 30px auto;
  max-width: 900px;
  padding: 30px;
  border-radius: 20px;
  background: var(--container-bg);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.main_container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow);
}

.centered-title {
  text-align: center;
  margin-bottom: 25px;
}

.main_container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.main_container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.main_container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text);
}

.search-sort-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sort-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.sort-group select {
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid var(--select-border);
  background: var(--select-bg);
  color: var(--text);
  font-size: 1rem;
  font-family: "Carlito", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  outline: none;
}

.sort-group select:hover {
  border-color: var(--button-bg);
  box-shadow: 0 2px 8px var(--shadow);
}

.sort-group select:focus {
  border-color: var(--button-bg);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .sort-group select:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sort-group select option {
  padding: 10px;
  background: var(--select-bg);
  color: var(--text);
}

/* Apps List Styling */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

/* Custom scrollbar */
.apps-list::-webkit-scrollbar {
  width: 8px;
}

.apps-list::-webkit-scrollbar-track {
  background: var(--search-bg);
  border-radius: 10px;
}

.apps-list::-webkit-scrollbar-thumb {
  background: var(--button-bg);
  border-radius: 10px;
}

.apps-list::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

.app_container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin: 15px 0;
  border-radius: 15px;
  background: var(--search-bg);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.3s ease;
}

.app_container:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px var(--shadow);
  border-color: var(--button-bg);
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  background-color: #bdbdbd;
}

.app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.app-desc {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text);
  opacity: 0.8;
}

.app-meta {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

.app-rating,
.app-downloads {
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-btn {
  padding: 12px 30px;
  border-radius: 10px;
  border: none;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Carlito", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--shadow);
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--shadow);
}

.download-btn:active {
  transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hide all scrollbars on mobile */
  *::-webkit-scrollbar {
    display: none;
  }
  
  * {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .app_container {
    flex-direction: column;
    text-align: center;
  }
  
  .app-icon {
    margin: 0 auto;
  }
  
  .app-meta {
    justify-content: center;
  }
  
  .search-sort-container {
    flex-direction: column;
  }
  
  .search {
    width: 100%;
  }
  
  .sort-group {
    width: 100%;
    justify-content: center;
  }
}

@keyframes background-pan {
  from {
    background-position: 0% center;
  }
  
  to {
    background-position: -200% center;
  }
}

@keyframes scale {
  from, to {
    transform: scale(0);
  }
  
  50% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  
  to {
    transform: rotate(180deg);
  }
}

h1 {
  color: var(--text);
  font-family: "Carlito", sans-serif;
  font-size: clamp(2em, 2vw, 4em);
  font-weight: 400;
  margin: 0px;
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.magic {
  display: inline-block;
  position: relative;
  font-size: 2.5rem;
  font-weight: 900;
  padding: 0 20px;
}

.magic > .magic-star {
  --size: clamp(15px, 1.2vw, 25px);
  
  animation: scale 700ms ease forwards;
  display: block;
  height: var(--size);
  left: var(--star-left);
  position: absolute;
  top: var(--star-top);
  width: var(--size);
  pointer-events: none;
}

.magic > .magic-star > svg {
  animation: rotate 1000ms linear infinite;
  display: block;
  opacity: 0.7;
}

.magic > .magic-star > svg > path {
  fill: var(--violet);
}

.magic > .magic-text {
  animation: background-pan 3s linear infinite;
  background: linear-gradient(
    to right,
    var(--purple),
    var(--violet),
    var(--pink),
    var(--purple)
  );
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}



.meta-link {
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;  
  display: inline-flex;
  gap: 5px;
  left: 10px;
  padding: 10px 20px;
  position: fixed;
  text-decoration: none;
  transition: background-color 600ms, border-color 600ms;
  z-index: 10000;
}

.meta-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-link > i, .meta-link > span {
  height: 20px;
  line-height: 20px;
}

.meta-link > span {
  color: white;
  font-family: "Rubik", sans-serif;
  transition: color 600ms;
}

/* Submit Request Form */
.submit-request {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 20px;
  background: var(--container-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow);
}

.submit-request form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-row label {
  min-width: 90px;
  font-weight: 600;
  color: var(--text);
}

.form-row select,
.form-row textarea {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--select-border);
  background: var(--search-bg);
  color: var(--text);
  font-family: "Carlito", sans-serif;
}

.form-row textarea {
  resize: vertical;
}

.submit-request .download-btn {
  align-self: flex-start;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row label { min-width: 0; }
}

.footer {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.hyperlinktextlumo {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
/* FAQ / accordion styles */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.faq-item {
  width: 100%;
}

.faq-question {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--search-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  transition: max-height 0.3s ease-out;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.faq-question:focus {
  outline: 2px solid var(--button-bg);
}

.faq-arrow {
  transition: transform 180ms ease;
  font-size: 1.1rem;
  color: var(--text);
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 200ms ease, padding 200ms ease;
  padding: 0 16px;
  opacity: 0;
  background: transparent;
  color: var(--text);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  opacity: 1;
  padding: 12px 16px;
}

.faq-answer p { margin: 0; opacity: 0.9; }

/* Vote Buttons Styling */
.vote-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--border, #ddd);
  background: var(--bg, #fff);
  color: var(--text, #333);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
}

.vote-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vote-btn:active:not(:disabled) {
  transform: translateY(0);
}

.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vote-btn .vote-count {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.vote-btn .vote-arrow {
  font-size: 12px;
  line-height: 1;
}

.vote-btn .vote-label {
  font-size: 13px;
}

/* Upvote button */
.upvote-btn {
  border-color: #10b981;
}

.upvote-btn:hover:not(:disabled) {
  background: #10b98110;
  border-color: #059669;
}

.upvote-btn.active {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.upvote-btn.active:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
}

/* Downvote button */
.downvote-btn {
  border-color: #ef4444;
}

.downvote-btn:hover:not(:disabled) {
  background: #ef444410;
  border-color: #dc2626;
}

.downvote-btn.active {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.downvote-btn.active:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
}

/* Dark theme adjustments */
[data-theme="dark"] .vote-btn {
  background: var(--bg-dark, #1a1a1a);
  color: var(--text-dark, #e5e5e5);
  border-color: var(--border-dark, #333);
}

[data-theme="dark"] .upvote-btn:hover:not(:disabled) {
  background: #10b98120;
}

[data-theme="dark"] .downvote-btn:hover:not(:disabled) {
  background: #ef444420;
}

/* Responsive design */
@media (max-width: 768px) {
  .vote-buttons {
    gap: 8px;
    margin: auto;
  }
  
  .vote-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .vote-btn .vote-label {
    display: none;
  }
  
  .vote-btn .vote-count {
    min-width: 18px;
  }
}