/* Template 9 - Elegant Purple Theme */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@300;400;500;700&display=swap");

:root {
  --purple-royal: #6b46c1;
  --purple-deep: #553c9a;
  --purple-light: #a78bfa;
  --purple-lavender: #e9d5ff;
  --purple-orchid: #c084fc;
  --purple-plum: #8b5cf6;
  --purple-dark: #4c1d95;
  --purple-cream: #faf5ff;
  --purple-shadow: rgba(107, 70, 193, 0.2);
  --purple-glow: rgba(196, 132, 252, 0.3);

  --font-elegant: "Playfair Display", serif;
  --font-clean: "Lato", sans-serif;
}

* {
  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(--purple-dark);
  background: linear-gradient(135deg, var(--purple-cream) 0%, var(--purple-lavender) 50%, var(--purple-cream) 100%);
  min-height: 100vh;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--purple-royal);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--purple-deep);
  text-shadow: 0 1px 3px var(--purple-shadow);
}

.main {
  flex: 1;
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--purple-cream) 0%, var(--purple-lavender) 100%);
  border-bottom: 3px solid var(--purple-royal);
  padding: 2rem 0;
  
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px var(--purple-shadow);
  backdrop-filter: blur(10px);
}



.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-elegant);
  font-size: 3rem;
  font-weight: 900;
  color: var(--purple-royal);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.site-logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-orchid), var(--purple-plum));
  border-radius: 1px;
}

.logo a {
  color: var(--purple-royal);
}

.logo a:hover {
  color: var(--purple-deep);
  text-shadow: 0 0 15px var(--purple-glow);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--purple-dark);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  font-family: var(--font-elegant);
  font-style: italic;
}

.site-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-orchid), var(--purple-plum));
  border-radius: 25px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.site-nav a:hover::before {
  opacity: 1;
}

.site-nav a:hover {
  color: var(--purple-cream);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--purple-shadow);
}

/* Hero Section */
.section.head {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--purple-lavender) 0%, var(--purple-cream) 50%, var(--purple-lavender) 100%);
  position: relative;
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, var(--purple-glow) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, var(--purple-glow) 0%, transparent 50%);
  animation: sparkle 20s ease-in-out infinite;
}

.section.head h1 {
  font-family: var(--font-elegant);
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--purple-dark);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px var(--purple-shadow);
  position: relative;
  z-index: 1;
  font-style: italic;
}

.section.head p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--purple-deep);
  font-weight: 400;
  position: relative;
  z-index: 1;
  font-style: italic;
}

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, var(--purple-cream) 0%, var(--purple-lavender) 100%);
}

.section header {
  text-align: center;
  margin-bottom: 4rem;
}

.section header h2 {
  font-family: var(--font-elegant);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px var(--purple-shadow);
  position: relative;
  font-style: italic;
}

.section header h2::after {
  content: "✦";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--purple-orchid);
  font-size: 2rem;
}

.section header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--purple-deep);
  font-size: 1.125rem;
  font-weight: 400;
  font-style: italic;
}

/* Casino List */
.casino_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.casino-item {
  width: calc(33.333% - 1.5rem);
  min-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px var(--purple-shadow);
  position: relative;
  background: var(--purple-cream);
  border: 2px solid var(--purple-lavender);
}

.casino-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px var(--purple-shadow);
  border-color: var(--purple-orchid);
}

.casino-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--purple-royal);
  color: var(--purple-cream);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  font-family: var(--font-elegant);
  font-style: italic;
  box-shadow: 0 3px 10px var(--purple-shadow);
}

.casino-header {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--purple-lavender) 0%, var(--purple-cream) 100%);
}

.casino-logo {
  width: 360px;
  height: 120px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--purple-shadow);
  border: 2px solid var(--purple-orchid);
}

.casino-logo:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 8px 25px var(--purple-shadow);
}

.casino-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.casino-name {
  font-family: var(--font-elegant);
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px var(--purple-shadow);
  font-style: italic;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.rating .stars {
  width: 120px;
  height: 20px;
  background: var(--purple-lavender);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px var(--purple-shadow);
  border: 1px solid var(--purple-orchid);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-orchid), var(--purple-plum));
  border-radius: 10px;
  transition: all 0.5s ease;
}

.rating .text {
  color: var(--purple-deep);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-elegant);
  font-style: italic;
}

.casino-body {
  padding: 2rem 1.5rem;
}

.casino-bonus {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--purple-royal) 0%, var(--purple-deep) 100%);
  border-radius: 20px;
  color: var(--purple-cream);
  box-shadow: 0 5px 20px var(--purple-shadow);
  position: relative;
}

.casino-bonus::before {
  content: "✦";
  position: absolute;
  top: 10px;
  left: 15px;
  color: var(--purple-orchid);
  font-size: 1.5rem;
}

.casino-bonus::after {
  content: "✦";
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: var(--purple-orchid);
  font-size: 1.5rem;
}

.bonus-amount {
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-elegant);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-style: italic;
}

.free-spins {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  font-style: italic;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-tag {
  background: var(--purple-lavender);
  color: var(--purple-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px var(--purple-shadow);
  border: 1px solid var(--purple-orchid);
  font-family: var(--font-elegant);
  font-style: italic;
}

.feature-tag:hover {
  transform: translateY(-2px) rotate(1deg);
  box-shadow: 0 5px 15px var(--purple-shadow);
  background: var(--purple-orchid);
  color: var(--purple-cream);
}

.casino-details {
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--purple-shadow);
  border: 1px solid var(--purple-lavender);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--purple-lavender);
  border-bottom: 1px solid var(--purple-cream);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: var(--purple-orchid);
  color: var(--purple-cream);
  transform: translateX(5px);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  font-family: var(--font-elegant);
  font-style: italic;
}

.detail-value {
  font-weight: 700;
  font-family: var(--font-elegant);
}

.casino-action {
  text-align: center;
}

.casino-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-royal) 0%, var(--purple-deep) 100%);
  color: var(--purple-cream);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--purple-shadow);
  position: relative;
  overflow: hidden;
  font-family: var(--font-elegant);
  font-style: italic;
}

.casino-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.casino-button:hover::before {
  left: 100%;
}

.casino-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px var(--purple-shadow);
  color: var(--purple-cream);
}

/* FAQ Section */
.faq_list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--purple-cream);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--purple-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--purple-lavender);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--purple-shadow);
}

.accordion-question {
  background: var(--purple-lavender);
  border: none;
  font-family: var(--font-elegant);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--purple-dark);
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-style: italic;
}

.accordion-question:hover {
  background: var(--purple-orchid);
  color: var(--purple-cream);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  background: var(--purple-royal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--purple-cream);
  transition: all 0.3s ease;
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--purple-orchid);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
  color: var(--purple-deep);
  line-height: 1.6;
  background: var(--purple-cream);
}

.faq-item.active .accordion-answer {
  max-height: 500px;
  padding: 0 2rem 2rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-deep) 100%);
  color: var(--purple-cream);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-column {
  width: 100%;
  max-width: 300px;
  margin-bottom: 2rem;
}

.footer-links a {
  font-family: var(--font-elegant);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #E5DBFF;
  font-style: italic;
}

.footer-links a:hover {
  color: #BDA0FF; /* чуть темнее или контрастнее */
  text-decoration: underline; /* подчёркивание при наведении */
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--purple-deep);
}



.copyright {
  font-size: 0.875rem;
  opacity: 0.8;
  font-style: italic;
}

/* Animations */
@keyframes sparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .casino-item {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .casino-item {
    width: 100%;
    max-width: 400px;
  }

  .section.head h1 {
    font-size: 3rem;
  }

  .section header h2 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .casino-logo {
    width: 100%;
    height: 100px;
  }
}

/* Enhanced h3 styling outside FAQ */
body:not(.faq) h3,
:not(section.faq) h3 {
  font-size: 2.2rem;
  color: var(--purple-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
  font-family: var(--font-elegant);
  font-weight: 700;
  font-style: italic;
}

.footer-columns {
  display: flex;
  align-items: flex-start;
}

.footer-links {
  margin-left: auto;
}
