/* Template 2 - Matrix/Cyberpunk Green */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap");

:root {
  --matrix-green: #00ff41;
  --matrix-dark-green: #008f11;
  --matrix-black: #0d1117;
  --matrix-dark: #161b22;
  --matrix-gray: #21262d;
  --matrix-light-gray: #30363d;
  --matrix-white: #f0f6fc;
  --matrix-red: #ff4757;
  --matrix-yellow: #ffa502;
  --font-cyber: "Orbitron", monospace;
  --font-mono: "Share Tech Mono", monospace;
}

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

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

body {
  font-family: var(--font-mono);
  line-height: 1.6;
  color: var(--matrix-white);
  background: var(--matrix-black);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 65, 0.08) 0%, transparent 50%);
  z-index: -1;
  animation: matrixAmbient 20s ease-in-out infinite;
}

@keyframes matrixAmbient {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

img {
  max-width: 360px;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--matrix-green);
  transition: all 0.3s ease;
}

.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;
}

/* Matrix Rain Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}

.matrix-column {
  position: absolute;
  top: -100px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--matrix-green);
  animation: matrixFall linear infinite;
  text-shadow: 0 0 5px var(--matrix-green);
}

@keyframes matrixFall {
  to {
    transform: translateY(100vh);
  }
}

/* Header */
.header {
  background: rgba(13, 17, 23, 0.95);
  color: var(--matrix-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--matrix-green);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 255, 65, 0.3);
}

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

.header .logo {
  font-family: var(--font-cyber);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--matrix-green);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--matrix-green);
  position: relative;
}

.header .logo::before {
  content: ">";
  position: absolute;
  left: -30px;
  animation: matrixBlink 1s infinite;
}

.header .logo::after {
  content: "_";
  animation: matrixBlink 1s infinite;
}

@keyframes matrixBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.header .logo:hover {
  color: var(--matrix-yellow);
  text-shadow: 0 0 15px var(--matrix-yellow);
  transform: scale(1.05);
}

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

.header .quick-nav a {
  color: var(--matrix-white);
  text-decoration: none;
  padding: 10px 15px;
  background: transparent;
  border: 1px solid var(--matrix-green);
  border-radius: 3px;
  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: var(--matrix-green);
  transition: left 0.3s ease;
  z-index: -1;
  opacity: 0.2;
}

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

.header .quick-nav a:hover {
  color: #3aff00;
  border-color: var(--matrix-green);
  box-shadow: 0 0 10px var(--matrix-green);
  transform: translateY(-2px);
}

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

.section.head {
  background: linear-gradient(135deg, var(--matrix-dark) 0%, var(--matrix-black) 100%);
  color: var(--matrix-white);
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.section.head h1 {
  font-family: var(--font-cyber);
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--matrix-green);
  text-shadow: 0 0 20px var(--matrix-green);
  animation: matrixGlow 3s ease-in-out infinite;
}

@keyframes matrixGlow {
  0%,
  100% {
    text-shadow: 0 0 20px var(--matrix-green);
  }
  50% {
    text-shadow: 0 0 30px var(--matrix-green), 0 0 40px var(--matrix-green);
  }
}

.section.head p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

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

.section header h2 {
  font-family: var(--font-cyber);
  font-size: 3rem;
  font-weight: 700;
  color: var(--matrix-green);
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--matrix-green);
  position: relative;
}

.section header h2::before {
  content: "// ";
  color: var(--matrix-dark-green);
  font-size: 2rem;
}

.section header h2::after {
  content: " //";
  color: var(--matrix-dark-green);
  font-size: 2rem;
}

/* 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;
  border: 1px solid var(--matrix-green);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  background: transparent;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.casino-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.casino-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--matrix-yellow);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}

.casino-header {
  padding: 25px 20px;
  text-align: center;
  background: rgba(33, 38, 45, 0.5);
  border-bottom: 1px solid var(--matrix-green);
}

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

.casino-logo::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--matrix-green), var(--matrix-yellow), var(--matrix-green));
  background-size: 200% 200%;
  animation: matrixBorderMove 3s linear infinite;
  border-radius: 5px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.casino-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--matrix-green);
}

.casino-name {
  font-family: var(--font-cyber);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--matrix-green);
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 0 5px var(--matrix-green);
}

.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(90deg) saturate(2) brightness(1.2);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: url("../../../images/stars-active.svg") left center / auto 100%;
  filter: hue-rotate(90deg) saturate(2) brightness(1.2);
}

.casino-body {
  padding: 20px;
  background: rgba(13, 17, 23, 0.8);
}

.casino-bonus {
  text-align: center;
  margin-bottom: 15px;
}

.bonus-amount {
  display: block;
  font-family: var(--font-cyber);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--matrix-yellow);
  text-shadow: 0 0 10px var(--matrix-yellow);
  margin-bottom: 5px;
}

.free-spins {
  color: var(--matrix-green);
  font-size: 1rem;
  text-shadow: 0 0 5px var(--matrix-green);
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px;
}

.feature-tag {
  background: rgba(0, 255, 65, 0.2);
  color: var(--matrix-green);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  border: 1px solid var(--matrix-green);
  text-transform: uppercase;
}

.casino-details {
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--matrix-gray);
}

.detail-label {
  color: var(--matrix-green);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--matrix-green);
}

.detail-value {
  color: var(--matrix-white);
  font-weight: 600;
}

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

.casino-button {
  display: inline-block;
  background: var(--matrix-green);
  color: var(--matrix-black);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-family: var(--font-cyber);
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--matrix-green);
  position: relative;
  overflow: hidden;
}

.casino-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--matrix-yellow);
  transition: left 0.3s ease;
  z-index: -1;
}

.casino-button:hover::before {
  left: 0;
}

.casino-button:hover {
  color: var(--matrix-black);
  border-color: var(--matrix-yellow);
  box-shadow: 0 0 15px var(--matrix-yellow);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--matrix-black) 0%, var(--matrix-dark) 100%);
  color: var(--matrix-white);
  padding: 50px 0 30px;
  margin-top: 60px;
  border-top: 2px solid var(--matrix-green);
  position: relative;
}

.footer-title {
  font-family: var(--font-cyber);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--matrix-green);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--matrix-green);
  text-align: center;
}

.footer .logos_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
}

.footer .logo-item {
  width: 145px;
  height: 40px;
  background: rgba(33, 38, 45, 0.8);
  border: 1px solid var(--matrix-green);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
}

.footer .logo-item:hover {
  background: rgba(0, 255, 65, 0.2);
  border-color: var(--matrix-yellow);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.footer .icon {
  width: 64px;
  height: auto;
  fill: var(--matrix-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--matrix-gray);
}

.copyright {
  color: var(--matrix-white);
  opacity: 0.8;
}

/* FAQ */
.faq-item {
  background: rgba(33, 38, 45, 0.5);
  border: 1px solid var(--matrix-green);
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.accordion-question {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--matrix-white);
  padding: 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-question::before {
  content: "> ";
  color: var(--matrix-green);
  font-weight: bold;
}

.accordion-question:hover {
  background: rgba(0, 255, 65, 0.1);
  color: var(--matrix-green);
}

.accordion-icon {
  float: right;
  transition: transform 0.3s ease;
  color: var(--matrix-green);
}

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

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(13, 17, 23, 0.8);
}

.accordion-answer p {
  padding: 20px;
  color: var(--matrix-white);
  opacity: 0.9;
}

/* Text Block */
.text-content {
  background: rgba(33, 38, 45, 0.3);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--matrix-green);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.text-content h3 {
  font-family: var(--font-cyber);
  font-size: 2rem;
  font-weight: 700;
  color: var(--matrix-green);
  margin: 25px 0 15px;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--matrix-green);
}

.text-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.text-content a {
  color: var(--matrix-yellow);
  text-decoration: none;
  border-bottom: 1px solid var(--matrix-yellow);
  transition: all 0.3s ease;
}

.text-content a:hover {
  color: var(--matrix-green);
  border-bottom-color: var(--matrix-green);
  text-shadow: 0 0 5px var(--matrix-green);
}

.text-content a[href*="/go/"] {
  target: "_blank";
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.9);
  display: none;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--matrix-dark);
  border: 2px solid var(--matrix-green);
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--matrix-green);
  padding-bottom: 15px;
}

.popup-header h3 {
  font-family: var(--font-cyber);
  font-size: 1.8rem;
  color: var(--matrix-green);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--matrix-green);
}

.popup-close {
  background: none;
  border: none;
  color: var(--matrix-red);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  color: var(--matrix-yellow);
  text-shadow: 0 0 10px var(--matrix-yellow);
}

.popup-casino-logo {
  width: 200px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--matrix-green);
}

.popup-casino-info h4 {
  font-family: var(--font-cyber);
  color: var(--matrix-green);
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.popup-casino-bonus {
  text-align: center;
  margin-bottom: 20px;
}

.popup-casino-button {
  display: block;
  width: 100%;
  background: var(--matrix-green);
  color: var(--matrix-black);
  padding: 15px;
  text-decoration: none;
  border-radius: 5px;
  font-family: var(--font-cyber);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
}

.popup-casino-button:hover {
  background: var(--matrix-yellow);
  box-shadow: 0 0 15px var(--matrix-yellow);
}

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

/* FAQ статичный режим */
.accordion-question {
all: unset;
display: block;
font-family: var(--font-family);
font-size: 1.8rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 10px;
}

.accordion-icon {
display: none;
}

.accordion-answer,
.static-answer {
max-height: none !important;
padding: 0 0 1.5rem 0;
color: var(--text-secondary);
overflow: visible;
transition: none !important;
}