/* Template 13 - 1940s Film Noir */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Crimson+Text:wght@400;600;700&display=swap");

:root {
  --noir-black: #0d0d0d;
  --noir-white: #f5f5f5;
  --noir-gray: #2a2a2a;
  --noir-light-gray: #666666;
  --noir-silver: #c0c0c0;
  --noir-gold: #d4af37;
  --noir-red: #8b0000;
  --noir-smoke: #36454f;
  --noir-cream: #faf0e6;
  --font-noir: "Bebas Neue", cursive;
  --font-body: "Oswald", sans-serif;
  --font-elegant: "Crimson Text", serif;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--noir-white);
  background: var(--noir-black);
  min-height: 100vh;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(245, 245, 245, 0.02) 2px,
      rgba(245, 245, 245, 0.02) 4px
    ), radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

img {
  max-width: 360px;
  height: auto;
  border-radius: 5px;
  filter: grayscale(0.3) contrast(1.2);
}

.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(135deg, var(--noir-black) 0%, var(--noir-gray) 100%);
  color: var(--noir-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--noir-gold);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(212, 175, 55, 0.1) 50px,
    rgba(212, 175, 55, 0.1) 52px
  );
  animation: noirShadows 8s linear infinite;
}

@keyframes noirShadows {
  0% {
    transform: translateX(-52px);
  }
  100% {
    transform: translateX(0px);
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.header .logo {
  font-family: var(--font-noir);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--noir-gold);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.header .logo::before {
  content: "●";
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--noir-red);
  animation: noirBullet 3s ease-in-out infinite;
}

.header .logo::after {
  content: "●";
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--noir-red);
  animation: noirBullet 3s ease-in-out infinite 1.5s;
}

@keyframes noirBullet {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
  }
}

.header .logo:hover {
  color: var(--noir-white);
  text-shadow: 0 0 20px var(--noir-gold), 2px 2px 4px rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.header .quick-nav a {
  display: flex;
  flex-direction: column; /* если вертикально */
  color: var(--noir-white);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border: 2px solid var(--noir-gold);
  background: rgba(212, 175, 55, 0.1);
  transition: all 0.4s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.header .quick-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: transparent; /* фон есть, но невидим */
  transition: left 0.4s ease, background 0.4s ease;
  z-index: -1;
}

.header .quick-nav a:hover::before {
  left: 0;
  background: var(--noir-gold); /* фон появляется при наведении */
}

.header .quick-nav a:hover {
  color: var(--noir-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

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

.section.head {
  background: linear-gradient(135deg, var(--noir-gray) 0%, var(--noir-smoke) 100%);
  color: var(--noir-white);
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 100px,
    rgba(212, 175, 55, 0.05) 100px,
    rgba(212, 175, 55, 0.05) 102px
  );
  animation: noirStripes 10s linear infinite;
}

@keyframes noirStripes {
  0% {
    transform: translateX(-102px);
  }
  100% {
    transform: translateX(0px);
  }
}

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

.section.head h1 {
  font-family: var(--font-noir);
  font-size: 5.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: var(--noir-gold);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 4px;
  animation: noirTitle 6s ease-in-out infinite;
}

@keyframes noirTitle {
  0%,
  100% {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px var(--noir-gold);
    transform: scale(1);
  }
  50% {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 50px var(--noir-gold), 0 0 70px var(--noir-gold);
    transform: scale(1.02);
  }
}

.section.head p {
  font-family: var(--font-elegant);
  font-size: 1.4rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 400;
}

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

.section header h2 {
  font-family: var(--font-noir);
  font-size: 4rem;
  font-weight: 400;
  color: var(--noir-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.section header h2::before,
.section header h2::after {
  content: "●";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--noir-red);
  font-size: 1.5rem;
  animation: noirHeaderBullet 4s ease-in-out infinite;
}

.section header h2::before {
  left: -60px;
}
.section header h2::after {
  right: -60px;
  animation-delay: 2s;
}

@keyframes noirHeaderBullet {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.5);
  }
}

/* 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(--noir-gray);
  border: 3px solid var(--noir-gold);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.casino-item::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--noir-gold), var(--noir-silver), var(--noir-gold));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.casino-item::after {
  content: "●";
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--noir-red);
  font-size: 1.2rem;
  z-index: 2;
  animation: noirItemBullet 3s ease-in-out infinite;
}

@keyframes noirItemBullet {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

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

.casino-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.casino-header {
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--noir-smoke) 0%, var(--noir-gray) 100%);
  border-bottom: 3px solid var(--noir-gold);
  position: relative;
}

.casino-header::before {
  content: "● ● ● ● ●";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--noir-gold);
  font-size: 0.8rem;
  letter-spacing: 8px;
  opacity: 0.7;
}

.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(--noir-black);
  border: 3px solid var(--noir-silver);
  transition: all 0.3s ease;
  position: relative;
}

.casino-logo::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--noir-gold), var(--noir-red), var(--noir-gold));
  border-radius: 5px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.casino-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.casino-name {
  font-family: var(--font-noir);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--noir-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.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: grayscale(0.5) brightness(0.8);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: url("../../../images/stars-active.svg") left center / auto 100%;
  filter: grayscale(0.5) brightness(0.8) drop-shadow(0 0 3px var(--noir-gold));
}

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

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--noir-black) 0%, var(--noir-gray) 100%);
  color: var(--noir-white);
  padding: 64px 0 32px;
  margin-top: 80px;
  border-top: 3px solid var(--noir-gold);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 50px,
    rgba(212, 175, 55, 0.05) 50px,
    rgba(212, 175, 55, 0.05) 52px
  );
}

.footer-title {
  font-family: var(--font-noir);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--noir-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.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: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--noir-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
  position: relative;
}

.footer .logo-item::before {
  content: "●";
  position: absolute;
  top: 2px;
  left: 5px;
  color: var(--noir-red);
  font-size: 0.6rem;
  opacity: 0.7;
}

.footer .logo-item::after {
  content: "●";
  position: absolute;
  bottom: 2px;
  right: 5px;
  color: var(--noir-red);
  font-size: 0.6rem;
  opacity: 0.7;
}

.footer .logo-item:hover {
  background: var(--noir-gold);
  color: var(--noir-black);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

/* Popup */
.popup-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--noir-gray);
  color: var(--noir-white);
  padding: 40px;
  border: 3px solid var(--noir-gold);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  z-index: 10000;
  max-width: 500px;
  width: 90%;
  text-align: center;
  display: none;
  position: relative;
}

.popup-banner::before {
  content: "● EXCLUSIVE ●";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--noir-gold);
  font-size: 0.8rem;
  letter-spacing: 3px;
  font-weight: bold;
}

.popup-banner.show {
  display: block;
  animation: noirPopup 0.6s ease-out;
}

@keyframes noirPopup {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup-banner h3 {
  font-family: var(--font-noir);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--noir-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* FAQ Accordion */
.faq-item {
  background: var(--noir-gray);
  border: 2px solid var(--noir-gold);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item::before {
  content: "●";
  position: absolute;
  top: 8px;
  right: 60px;
  color: var(--noir-red);
  font-size: 0.8rem;
  opacity: 0.7;
}

.accordion-question {
  background: linear-gradient(135deg, var(--noir-smoke), var(--noir-gray));
  border: none;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--noir-white);
  padding: 20px 24px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

h3 {
  font-family: var(--font-noir);
  font-size: 3rem;
  font-weight: 400;
  color: var(--noir-gold);
  margin: 32px 0 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h3::before {
  content: "●";
  position: absolute;
  left: -40px;
  color: var(--noir-red);
  font-size: 1.5rem;
  animation: noirH3Bullet 3s ease-in-out infinite;
}

@keyframes noirH3Bullet {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
