/* Template 12 - 1960s Psychedelic/Mod */
@import url("https://fonts.googleapis.com/css2?family=Modak&family=Bungee+Shade&family=Righteous&display=swap");

:root {
  --psyche-orange: #ff6b35;
  --psyche-pink: #f7931e;
  --psyche-purple: #9b59b6;
  --psyche-green: #2ecc71;
  --psyche-blue: #3498db;
  --psyche-yellow: #f1c40f;
  --psyche-red: #e74c3c;
  --psyche-white: #ffffff;
  --psyche-black: #2c3e50;
  --psyche-cream: #fef9e7;
  --font-groovy: "Modak", cursive;
  --font-bold: "Bungee Shade", cursive;
  --font-clean: "Righteous", cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-clean);
  line-height: 1.6;
  color: var(--psyche-black);
  background: var(--psyche-cream);
  min-height: 100vh;
  background-image: radial-gradient(circle at 20% 20%, var(--psyche-orange) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, var(--psyche-purple) 0%, transparent 30%),
    radial-gradient(circle at 40% 60%, var(--psyche-green) 0%, transparent 30%),
    
  background-size: 300px 300px, 250px 250px, 200px 200px, 280px 280px;
  animation: psychedelicMove 15s ease-in-out infinite;
}

@keyframes psychedelicMove {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%;
  }
  25% {
    background-position: 30% 70%, 70% 30%, 80% 20%, 20% 80%;
  }
  50% {
    background-position: 70% 30%, 30% 70%, 20% 80%, 60% 40%;
  }
  75% {
    background-position: 80% 20%, 20% 80%, 60% 40%, 40% 60%;
  }
}

img {
  max-width: 360px;
  height: auto;
  border-radius: 5px;
}

.f-left {
  float: left;
  margin: 0 20px 20px 0;
}
.f-right {
  float: right;
  margin: 0 0 20px 20px;
}
.f-center {
  display: block;
  margin: 0 auto 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(45deg, var(--psyche-orange), var(--psyche-pink), var(--psyche-purple), var(--psyche-blue));
  background-size: 400% 400%;
  animation: psychedelicGradient 8s ease infinite;
  color: var(--psyche-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 5px solid var(--psyche-yellow);
  box-shadow: 0 5px 25px rgba(255, 107, 53, 0.4);
}

@keyframes psychedelicGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  font-family: var(--font-groovy);
  font-size: 3rem;
  font-weight: 400;
  color: var(--psyche-white);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  animation: psychedelicPulse 3s ease-in-out infinite;
  text-shadow: 3px 3px 0px var(--psyche-black), 6px 6px 0px var(--psyche-yellow);
}

@keyframes psychedelicPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
    filter: hue-rotate(180deg);
  }
}

.header .logo:hover {
  animation-duration: 0.5s;
  transform: scale(1.1) rotate(-5deg);
}

.header .quick-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.header .quick-nav a {
  color: var(--psyche-white);
  text-decoration: none;
  font-weight: 400;
  padding: 12px 20px;
  background: var(--psyche-purple);
  border: 3px solid var(--psyche-yellow);
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.header .quick-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--psyche-green), var(--psyche-blue));
  transition: left 0.3s ease;
  z-index: -1;
}

.header .quick-nav a:hover::before {
  left: 0;
}

.header .quick-nav a:hover {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.section {
  padding: 80px 0;
}

.section.head {
  background: linear-gradient(135deg, var(--psyche-purple) 0%, var(--psyche-pink) 50%, var(--psyche-orange) 100%);
  color: var(--psyche-white);
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section.head::before {
  content: "✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  letter-spacing: 30px;
  animation: psychedelicFlowers 6s linear infinite;
}

@keyframes psychedelicFlowers {
  0% {
    transform: translateX(-100px) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: translateX(100px) rotate(360deg);
    filter: hue-rotate(360deg);
  }
}

.section.head .container {
  position: relative;
  z-index: 1;
}

.section.head h1 {
  font-family: var(--font-bold);
  font-size: 4.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: var(--psyche-white);
  text-shadow: 4px 4px 0px var(--psyche-black), 8px 8px 0px var(--psyche-yellow);
  animation: psychedelicTitle 4s ease-in-out infinite;
}

@keyframes psychedelicTitle {
  0%,
  100% {
    transform: scale(1) skew(0deg);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: scale(1.02) skew(2deg);
    filter: hue-rotate(90deg);
  }
  50% {
    transform: scale(1.05) skew(-2deg);
    filter: hue-rotate(180deg);
  }
  75% {
    transform: scale(1.02) skew(1deg);
    filter: hue-rotate(270deg);
  }
}

.section.head p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* Section Headers */
.section header {
  text-align: center;
  margin-bottom: 64px;
}

.section header h2 {
  font-family: var(--font-bold);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--psyche-purple);
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0px var(--psyche-black), 6px 6px 0px var(--psyche-orange);
  position: relative;
  animation: psychedelicHeader 5s ease-in-out infinite;
}

@keyframes psychedelicHeader {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

.section header h2::before,
.section header h2::after {
  content: "✿";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--psyche-green);
  font-size: 2rem;
  animation: psychedelicSpin 3s linear infinite;
}

.section header h2::before {
  left: -70px;
}
.section header h2::after {
  right: -70px;
  animation-direction: reverse;
}

@keyframes psychedelicSpin {
  0% {
    transform: translateY(-50%) rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translateY(-50%) rotate(180deg) scale(1.2);
    filter: hue-rotate(180deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg) scale(1);
    filter: hue-rotate(360deg);
  }
}

/* Casino List */
.casino_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
}

.casino-item {
  width: calc(33.333% - 20px);
  min-width: 300px;
  background: var(--psyche-white);
  border: 4px solid var(--psyche-orange);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  animation: psychedelicFloat 6s ease-in-out infinite;
}

@keyframes psychedelicFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.casino-item::before {
  content: "✿";
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--psyche-pink);
  font-size: 1.8rem;
  animation: psychedelicItemSpin 4s linear infinite;
  z-index: 2;
}

@keyframes psychedelicItemSpin {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: rotate(360deg) scale(1.2);
    filter: hue-rotate(360deg);
  }
}

.casino-item:hover {
  transform: translateY(-15px) scale(1.05) rotate(-2deg);
  border-color: var(--psyche-purple);
  box-shadow: 0 20px 40px rgba(155, 89, 182, 0.4);
  animation-duration: 2s;
}

.casino-header {
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--psyche-yellow) 0%, var(--psyche-orange) 100%);
  border-bottom: 4px solid var(--psyche-purple);
  position: relative;
}

.casino-header::before {
  content: "❀ ✿ ❀ ✿ ❀";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--psyche-purple);
  font-size: 1rem;
  letter-spacing: 8px;
  animation: psychedelicHeaderFlowers 3s ease-in-out infinite;
}

@keyframes psychedelicHeaderFlowers {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

.casino-logo {
  width: 360px;
  height: 120px;
  margin: 15px auto 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--psyche-white);
  border: 4px solid var(--psyche-green);
  transition: all 0.3s ease;
  position: relative;
}

.casino-logo::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, var(--psyche-orange), var(--psyche-pink), var(--psyche-purple), var(--psyche-blue));
  background-size: 400% 400%;
  animation: psychedelicBorder 3s ease infinite;
  border-radius: 5px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes psychedelicBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.casino-logo:hover::before {
  opacity: 1;
}

.casino-logo:hover {
  transform: scale(1.05) rotate(3deg);
}

.casino-name {
  font-family: var(--font-groovy);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--psyche-purple);
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--psyche-yellow);
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rating .stars {
  width: 84px;
  height: 15px;
  background: url("../../../images/stars-empty.svg") left center / auto 100%;
  position: relative;
  filter: hue-rotate(280deg) saturate(2) brightness(1.5);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: url("../../../images/stars-active.svg") left center / auto 100%;
  filter: hue-rotate(280deg) saturate(2) brightness(1.5) drop-shadow(0 0 5px var(--psyche-pink));
}

.casino-body {
  padding: 24px;
  background: var(--psyche-white);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--psyche-black) 0%, var(--psyche-purple) 100%);
  color: var(--psyche-white);
  padding: 64px 0 32px;
  margin-top: 80px;
  border-top: 5px solid var(--psyche-orange);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  color: rgba(241, 196, 15, 0.3);
  font-size: 1.5rem;
  letter-spacing: 20px;
  animation: psychedelicFooterFlowers 10s linear infinite;
}

@keyframes psychedelicFooterFlowers {
  0% {
    transform: translateX(-200px);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: translateX(200px);
    filter: hue-rotate(360deg);
  }
}

.footer-title {
  font-family: var(--font-groovy);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--psyche-yellow);
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--psyche-black);
  animation: psychedelicFooterTitle 4s ease-in-out infinite;
}

@keyframes psychedelicFooterTitle {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

.footer .footer-icons,
.footer .logos_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer .logo-item {
  width: 145px;
  height: 40px;
  background: var(--psyche-orange);
  border: 3px solid var(--psyche-yellow);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.footer .logo-item::before {
  content: "✿";
  position: absolute;
  top: -8px;
  left: 8px;
  color: var(--psyche-white);
  font-size: 0.8rem;
  animation: psychedelicFooterIcon 2s ease-in-out infinite;
}

.footer .logo-item::after {
  content: "❀";
  position: absolute;
  bottom: -8px;
  right: 8px;
  color: var(--psyche-white);
  font-size: 0.8rem;
  animation: psychedelicFooterIcon 2s ease-in-out infinite 1s;
}

@keyframes psychedelicFooterIcon {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    filter: hue-rotate(180deg);
  }
}

.footer .logo-item:hover {
  background: var(--psyche-green);
  color: var(--psyche-white);
  transform: translateY(-5px) rotate(-3deg) scale(1.1);
  border-color: var(--psyche-pink);
}

.footer .icon {
  width: 64px;
  height: auto;
  fill: currentColor;
}

/* Popup */
.popup-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--psyche-white);
  color: var(--psyche-black);
  padding: 40px;
  border: 5px solid var(--psyche-orange);
  border-radius: 30px;
  z-index: 10000;
  max-width: 500px;
  width: 90%;
  text-align: center;
  display: none;
  position: relative;
}

.popup-banner::before {
  content: "✿ GROOVY ✿";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--psyche-purple);
  color: var(--psyche-white);
  padding: 8px 20px;
  border: 3px solid var(--psyche-yellow);
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  animation: psychedelicPopupBadge 2s ease-in-out infinite;
}

@keyframes psychedelicPopupBadge {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

.popup-banner.show {
  display: block;
  animation: psychedelicPopup 0.8s ease-out;
}

@keyframes psychedelicPopup {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-20deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

.popup-banner h3 {
  font-family: var(--font-groovy);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--psyche-purple);
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--psyche-orange);
}

/* FAQ Accordion */
.faq-item {
  background: var(--psyche-white);
  border: 3px solid var(--psyche-orange);
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item::before {
  content: "?";
  position: absolute;
  top: 8px;
  right: 50px;
  color: var(--psyche-white);
  font-size: 1.2rem;
  font-weight: bold;
  background: var(--psyche-purple);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--psyche-yellow);
  animation: psychedelicFaqIcon 3s ease-in-out infinite;
}

@keyframes psychedelicFaqIcon {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

.accordion-question {
  background: linear-gradient(135deg, var(--psyche-yellow), var(--psyche-orange));
  border: none;
  font-family: var(--font-clean);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--psyche-black);
  padding: 20px 24px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.accordion-question:hover {
  background: linear-gradient(135deg, var(--psyche-green), var(--psyche-blue));
  color: var(--psyche-white);
}

.accordion-icon {
  float: right;
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  color: var(--psyche-purple);
}

.faq-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--psyche-green);
}

h3 {
  font-family: var(--font-groovy);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--psyche-purple);
  margin: 32px 0 16px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0px var(--psyche-orange);
  position: relative;
  animation: psychedelicH3 4s ease-in-out infinite;
}

@keyframes psychedelicH3 {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

h3::before {
  content: "✿";
  position: absolute;
  left: -50px;
  color: var(--psyche-green);
  font-size: 2rem;
  animation: psychedelicH3Icon 3s linear infinite;
}

@keyframes psychedelicH3Icon {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: rotate(360deg) scale(1.2);
    filter: hue-rotate(360deg);
  }
}

.header .quick-nav a::before {
content: "";
position: absolute;
top: 0;
left: 0; /* Фон всегда за кнопкой */
width: 100%;
height: 100%;
background: var(--deco-gold);
z-index: -1;
}