/* Styles for CelebSpot Romania website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
:root {
  --red-gradient: linear-gradient(180deg, #ff6b9d 0%, #e81b5b 100%);
  --blue-gradient: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  --button: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
  --progress: linear-gradient(135deg, #ff6b9d 0%, #f1faee 50.17%, #a8dadc 100%);
  --primary: #ff6b9d;
  --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: #ffffff;
  overflow-x: hidden;
  margin: 0;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b9d 100%);
  background-size: 100% 100%;
  background-position: center;
  min-height: 100vh;
}

/* Make text more readable with stronger shadows and better contrast */
.text-white {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.service-description {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 800;
  color: #ffffff !important;
}

.legal_text {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.8);
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}
a {
  color: #ff6b9d !important;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 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(255, 107, 157, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}
.theme-btn {
  background: #ff6b9d;
  border: 2px #ffffff 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: white;
  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 white;
}

/* 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 #ffffff; /* Tailwind 'gray-200' */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  z-index: 10;
  text-align: center;
  overflow: hidden;
}

/* Individual language links */
.lang-swticher .dropdown-content a {
  color: #ffffff; /* 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: white !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: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.212);
  color: #f1faee;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  color: #ffffff;
  background: transparent;
}

.pin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  color: #ffffff;
  background: transparent;
}

/* Error and success message styling */
#responseMessage, #pinResponseMessage {
  color: #dc2626 !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  margin: 0.5rem 0 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
  line-height: 1.4 !important;
}

#responseMessage.success, #pinResponseMessage.success {
  color: #16a34a !important;
}

#responseMessage.info, #pinResponseMessage.info {
  color: #2563eb !important;
}

/* 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);
  }
}

/* CelebSpot specific styles */
.celebspot-logo {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.service-description {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive styles */
/* Enhanced mobile responsiveness */
@media screen and (max-width: 768px) {
  body {
    overflow-y: auto;
    min-height: 100vh;
  }
  
  .min-h-screen {
    min-height: 100vh !important;
    padding: 1rem 0;
  }
  
  .max-w-md {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 1rem !important;
  }
  
  .service-description {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin: 1rem 0 !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1), 2px 2px 6px rgba(0, 0, 0, 0.9);
  }
  
  #form-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 1rem !important;
  }
  
  .legal_text {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 1rem 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 1rem !important;
    border-radius: 10px !important;
  }
  
  .text-custom {
    font-size: 0.9rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0.5rem 0;
  }
  
  /* Footer links with better visibility */
  .flex.flex-wrap a {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin: 0.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-size: 0.8rem !important;
  }
}

@media screen and (max-width: 480px) {
  .logo-container {
    width: 140px;
  }
  
  .service-description {
    font-size: 1.3rem !important;
  }
  
  #form-title {
    font-size: 1rem !important;
  }
  
  .legal_text {
    font-size: 0.75rem !important;
  }
  
  .dropdown.lang-swticher {
    margin-top: -3px;
  }
}