/* Styles for Trainerflix website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
:root {
  /* Game-themed color palette */
  --game-primary: #7209b7; /* Vibrant purple */
  --game-secondary: #4cc9f0; /* Electric blue */
  --game-accent: #f72585; /* Neon pink */
  --game-dark: #3a0ca3; /* Deep purple */
  --game-light: #4361ee; /* Bright blue */

  /* Gradients */
  --red-gradient: linear-gradient(180deg, var(--game-accent) 0%, #b5179e 100%);
  --blue-gradient: linear-gradient(
    180deg,
    var(--game-secondary) 0%,
    var(--game-dark) 100%
  );
  --button: linear-gradient(
    180deg,
    var(--game-light) 0%,
    var(--game-dark) 100%
  );
  --progress: linear-gradient(
    135deg,
    var(--game-accent) 0%,
    #f1faee 50.17%,
    var(--game-secondary) 100%
  );
  --primary: var(--game-accent);

  /* Gaming glow effects */
  --neon-glow: 0 0 10px rgba(76, 201, 240, 0.6),
    0 0 20px rgba(76, 201, 240, 0.4);
  --button-glow: 0 0 15px rgba(247, 37, 133, 0.7);

  /* Gaming fonts */
  --body-font: "Orbitron", sans-serif;
}

/* Animations */
html[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}
html[dir="ltr"] body {
  font-family: var(--body-font);
}

/* Game-themed animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.03);
  }
}

/* Simplified button animation */
@keyframes subtle-glow {
  0% {
    box-shadow: 0 0 5px var(--game-secondary);
  }
  50% {
    box-shadow: 0 0 15px var(--game-secondary);
  }
  100% {
    box-shadow: 0 0 5px var(--game-secondary);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 5px var(--game-accent);
  }
  50% {
    box-shadow: 0 0 20px var(--game-accent), 0 0 30px var(--game-secondary);
  }
  100% {
    box-shadow: 0 0 5px var(--game-accent);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

body {
  color: #ffffff;
  margin: 0;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  position: relative;
  overflow: hidden;
}

/* Game-themed background overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsla(185, 64%, 51%, 1);

  background: linear-gradient(
    90deg,
    hsla(185, 64%, 51%, 1) 0%,
    hsla(277, 74%, 24%, 1) 100%
  );

  background: -moz-linear-gradient(
    90deg,
    hsla(185, 64%, 51%, 1) 0%,
    hsla(277, 74%, 24%, 1) 100%
  );

  background: -webkit-linear-gradient(
    90deg,
    hsla(185, 64%, 51%, 1) 0%,
    hsla(277, 74%, 24%, 1) 100%
  );

  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#30C5D2", endColorstr="#471069", GradientType=1 );
  z-index: -1;
}

/* Animated particles */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(76, 201, 240, 0.3) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(247, 37, 133, 0.3) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
  z-index: -1;
  animation: rotate 120s linear infinite;
}
a {
  color: var(--game-dark) !important;
}
.service_des {
  span {
    color: var(--game-accent);
  }
}

/* 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: linear-gradient(
    45deg,
    var(--game-dark) 0%,
    var(--game-primary) 50%,
    var(--game-light) 100%
  );
  background-size: 200% 100%;
  color: #ffffff;
  text-transform: uppercase;
  animation: neon-pulse 2s ease-in-out infinite, shine 3s linear infinite;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--game-secondary),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(76, 201, 240, 0.5);

  &:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 30px var(--game-accent);
    animation-play-state: paused;
    filter: brightness(1.2);
  }

  /* Button glow effect */
  &::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to bottom right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: rotate 3s linear infinite;
    z-index: 1;
    pointer-events: none;
  }

  /* Additional highlight effect */
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
  }
}

/* language switcher */
/* Basic dropdown wrapper */
.dropdown.lang-swticher {
  position: relative;
  display: inline-block;
  text-align: right;
}

/* Button styling */
.lang-swticher .dropdown-button {
  background-color: transparent; /* Tailwind 'blue-500' */
  color: #ffffff;
  padding: 6px 18px 6px 6px;
  font-size: 12px;
  text-align: center;
  /* border: none; */
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  min-width: 80px;
  outline: 2px solid var(--primary);
}

/* Dropdown content */
.lang-swticher .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* below the button */
  left: 0;
  min-width: 100%;
  background-color: white;
  border: 1px solid #e2e8f0; /* 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: #ffffff !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 #ffffff;
  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: var(--game-secondary);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  box-shadow: var(--neon-glow);
  transition: all 0.3s ease;
  animation: glowing 3s infinite;
}

.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 var(--game-secondary);
  border-right: 3px solid var(--game-accent);
  border-bottom: 3px solid var(--game-light);
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 480px) {
  .logo-container {
    width: 118px;
  }
  .text-custom {
    font-size: 10px !important;
  }
  .dropdown.lang-swticher {
    margin-top: -3px;
  }
}

/* Game-themed animated elements */
.game-icon {
  position: absolute;
  opacity: 0.6;
  z-index: -1;
  animation: float 3s ease-in-out infinite;
  pointer-events: none;
}

.game-icon-1 {
  top: 10%;
  left: 5%;
  width: 70px;
  height: 70px;
  animation-delay: 0s;
}

.game-icon-2 {
  top: 20%;
  right: 8%;
  width: 60px;
  height: 60px;
  animation-delay: 0.5s;
}

.game-icon-3 {
  bottom: 15%;
  left: 10%;
  width: 65px;
  height: 65px;
  animation-delay: 1s;
}

.game-icon-4 {
  bottom: 25%;
  right: 12%;
  width: 55px;
  height: 55px;
  animation-delay: 1.5s;
}

/* Controller button animations */
.controller-btn {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--game-accent);
  margin: 0 5px;
  box-shadow: 0 0 10px var(--game-accent);
  animation: pulse 2s ease-in-out infinite;
}

.controller-btn:nth-child(2) {
  background: var(--game-secondary);
  box-shadow: 0 0 10px var(--game-secondary);
  animation-delay: 0.5s;
}

.controller-btn:nth-child(3) {
  background: var(--game-light);
  box-shadow: 0 0 10px var(--game-light);
  animation-delay: 1s;
}

.controller-btn:nth-child(4) {
  background: var(--game-dark);
  box-shadow: 0 0 10px var(--game-dark);
  animation-delay: 1.5s;
}
