/* Styles for Trainerflix website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
:root {
  --red-gradient: linear-gradient(180deg, #e81b5b 0%, #d62836 100%);
  --blue-gradient: linear-gradient(180deg, #457b9d 0%, #1d3557 100%);
  --button: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
  --progress: linear-gradient(135deg, #e81b5b 0%, #f1faee 50.17%, #a8dadc 100%);
  --primary: #e81b5b;
  --bg: #f0dba5;
  --text: #151515;
  --yellow: #edb74d;
  --red: #eb6666;
  --green: #6fb18a;
}

/* Animations */
html[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.02);
  }
}

body {
  color: #000000;
  overflow: hidden;
  margin: 0;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  background: hsla(184, 82%, 51%, 1);
  background: linear-gradient(
    90deg,
    hsla(184, 82%, 51%, 1) 0%,
    hsla(275, 77%, 70%, 1) 50%,
    hsla(351, 88%, 62%, 1) 100%
  );

  background: -moz-linear-gradient(
    90deg,
    hsla(184, 82%, 51%, 1) 0%,
    hsla(275, 77%, 70%, 1) 50%,
    hsla(351, 88%, 62%, 1) 100%
  );

  background: -webkit-linear-gradient(
    90deg,
    hsla(184, 82%, 51%, 1) 0%,
    hsla(275, 77%, 70%, 1) 50%,
    hsla(351, 88%, 62%, 1) 100%
  );

  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#1CDCE8", endColorstr="#BB77ED", GradientType=1 );
}

/* body::before {
  position: absolute;
  inset: 0;
  content: "";
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 40%;
}

body::before {
  background: #8c8c8c;
} */

/* Blobs */
.blob-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: -2;
  height: 500px;
  width: 500px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.blob {
  border-radius: 100px;
  filter: blur(60px);
}

.yellow {
  background-color: var(--yellow);
  position: absolute;
  top: 200px;
  left: 100px;
  height: 200px;
  width: 200px;

  animation: yellow 8s infinite ease;
}

.green {
  background-color: var(--green);
  position: absolute;
  top: 80px;
  right: -20px;
  height: 200px;
  width: 250px;

  animation: green 8s infinite ease;
}

.red {
  background-color: var(--red);
  position: absolute;
  right: 0;
  top: 300px;
  height: 250px;
  width: 200px;

  animation: red 8s infinite linear;
}

@keyframes yellow {
  0% {
    top: 200px;
    left: 100px;
    transform: scale(1);
  }
  30% {
    top: 300px;
    left: 150px;
    transform: scale(1.2);
  }
  60% {
    top: 100px;
    left: 200px;
    transform: scale(1.3);
  }
  100% {
    top: 200px;
    left: 100px;
    transform: scale(1);
  }
}

@keyframes green {
  0% {
    top: 80px;
    right: -20px;
    transform: scale(1.2);
  }
  30% {
    top: 300px;
    right: -20px;
    transform: scale(1);
  }
  60% {
    top: 200px;
    right: 100px;
    transform: scale(1);
  }
  100% {
    top: 80px;
    right: -20px;
    transform: scale(1.2);
  }
}

@keyframes red {
  0% {
    top: 250px;
    right: 0px;
    transform: scale(1);
  }
  30% {
    top: 150px;
    right: 150px;
    transform: scale(1.4);
  }
  60% {
    top: 250px;
    right: 100px;
    transform: scale(1);
  }
  100% {
    top: 250px;
    right: 0px;
    transform: scale(1);
  }
}

a {
  color: #e81b5b !important;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Button hover effects */
button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(230, 57, 70, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}
.theme-btn {
  background: #e81b5b;
  border: 2px #000000 solid;

  color: #ffffff;
  text-transform: uppercase;
  animation: pulse 0.5s ease-in-out infinite;
  cursor: pointer;

  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
  }
}

/* language switcher */
/* Basic dropdown wrapper */
.dropdown.lang-swticher {
  position: relative;
  display: inline-block;
  text-align: right;
}

/* Button styling */
.lang-swticher .dropdown-button {
  background-color: var(--primary); /* Tailwind 'blue-500' */
  color: #000000;
  padding: 6px 18px 6px 6px;
  font-size: 12px;
  text-align: center;
  /* border: none; */
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  min-width: 80px;
  overflow: hidden;
  outline: 2px solid black;
}

/* Dropdown content */
.lang-swticher .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* below the button */
  left: 0;
  min-width: 100%;
  background-color: #f1faee;
  border: 1px solid #000000; /* Tailwind 'gray-200' */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-align: center;
  overflow: hidden;
}

/* Individual language links */
.lang-swticher .dropdown-content a {
  color: #000000; /* Tailwind 'gray-800' */
  padding: 2px 12px;
  text-decoration: none;
  font-size: 13px;
  display: block;
  white-space: nowrap;
}

/* Hover effect */
.lang-swticher .dropdown-content a:hover {
  background-color: var(--primary);
  color: #000000 !important;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
.down-arrow {
  display: inline-block;
  position: relative;
  width: 0;
  height: 8px;
}

.down-arrow::after {
  content: "";
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #000000;
  position: absolute;
  top: 0;
  left: 2px;
}

/* Logo container styles */
.logo-container {
  height: auto;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* legal-content */
.legal-content p {
  margin-bottom: 10px;
}

/* RTL support */
html[dir="rtl"] .space-x-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

/* Critical form styles */
#pinInputContainer,
#phoneInputContainer {
  display: flex;
  align-items: center;
  border: 2px solid;
  border-color: #000000;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.077);
  color: #151515;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  color: #374151;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 480px) {
  .logo-container {
    width: 118px;
  }
  #form-title {
    font-size: 13px;
  }
  .text-custom {
    font-size: 10px !important;
  }
  .dropdown.lang-swticher {
    margin-top: -3px;
  }
}

.legal_text {
  & ul {
    list-style-type: disc;
    margin-inline: 1.5rem;
  }
  & li ul {
    list-style-type: circle;
  }
}
