/* === Base Colors === */
.base-color {
  color: hsl(var(--main)) !important;
}

/* === Copy-to-Clipboard Button & Animation === */
.copy-input {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 50px;
  line-height: 50px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copied::after {
  content: "COPIED";
  position: absolute;
  top: 8px;
  right: 12%;
  padding: 5px;
  width: 100px;
  font-size: 1em;
  color: #fff;
  background-color: hsl(var(--base));
  border-radius: 3px;
  opacity: 0;
  animation: show-copied 1.5s ease forwards;
}

@keyframes show-copied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }
  70% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
  }
}

/* === Cookie Consent Card === */
.cookies-card {
  width: 520px;
  padding: 30px;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  background: #d1d1d1;
  border-radius: 10px;
  color: #1e2337;
  transition: all 0.5s ease;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  background: #6e6f70;
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  display: inline-block;
  margin: 3px 5px;
  padding: 10px 35px;
  border-radius: 50px;
  background: transparent;
  color: #363636;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cookies-btn:hover {
  color: #000;
}

/* Light Theme Support */
[data-theme="light"] .cookies-card {
  background-color: hsl(var(--section-bg));
}

[data-theme="light"] .cookies-card p {
  font-weight: 300;
  color: hsl(var(--black) / 0.7) !important;
}

/* === Mobile Responsive === */
@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 15px;
    font-size: 14px;
  }
}

/* === Input Tooltip Validation === */
.hover-input-popup {
  position: relative;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  padding: 20px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 5px;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.input-popup::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  border: 10px solid transparent;
  border-top-color: #1a1a1a;
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

/* === Filter Toggle for Mobile === */
.show-filter {
  display: none;
}

@media (max-width: 767px) {
  .responsive-filter-card {
    display: none;
  }
  .show-filter {
    display: block;
  }
}

/* === Verification Code Input === */
.verification-code-wrapper {
  background-color: hsl(var(--footer-bg)) !important;
  box-shadow: var(--box-shadow) !important;
  border: 0 !important;
}

.verification-code input {
  background: transparent !important;
  color: hsl(var(--black)) !important;
  letter-spacing: 67px !important;
}

.verification-code::after,
.verification-code span {
  background: transparent !important;
  border-color: hsl(var(--base)) !important;
}

/* === Accessibility Improvements === */
@media (prefers-reduced-motion: reduce) {
  .copied::after {
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}