/* Completely redesigned CSS to match Пятёрочка style with rounded corners, soft shadows, and playful animations */

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  z-index: 9999;
  transition: bottom 0.5s ease;
  border: 3px solid #ff6b35;
}

.cookie-popup.show {
  bottom: 30px;
}

.cookie-content {
  display: flex;
  flex-direction: column;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Form Error States */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
  animation: shake 0.3s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  height: 500px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Team Card Expandable Styles */
.team-card {
  transition: all 0.3s ease;
}

.team-card.expanded {
  grid-column: span 2;
}

.team-card-img {
  transition: transform 0.3s ease;
}

.team-card:hover .team-card-img {
  transform: scale(1.05);
}

/* Star Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes floatDelayed {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-10deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.star-float {
  animation: float 3s ease-in-out infinite;
}

.star-float-delayed {
  animation: floatDelayed 4s ease-in-out infinite;
  animation-delay: 1s;
}

.star-rotate {
  animation: rotate 20s linear infinite;
}

/* Enhanced Shadow Effects */
.shadow-xl {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Hover Effects Enhancement */
a,
button {
  transition: all 0.3s ease;
}

/* Responsive Image Optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #ff6b35 0%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35 0%, #ff8c42 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8c42 0%, #ffa500 100%);
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .flip-card {
    height: auto;
  }

  .flip-card-inner {
    transform: none !important;
  }

  .flip-card-back {
    position: relative;
    transform: none;
    margin-top: 1rem;
  }

  .team-card.expanded {
    grid-column: span 1;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-lg {
    backdrop-filter: blur(10px);
  }
}
