/* Template 9 - Space/Cosmic Theme */
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@300;400;700;900&family=Michroma:wght@400&display=swap");

:root {
  --space-black: #000000;
  --space-deep: #0a0a1a;
  --space-dark: #1a1a2e;
  --space-navy: #16213e;
  --space-blue: #0f3460;
  --space-cyan: #00d4ff;
  --space-purple: #6a0dad;
  --space-violet: #8a2be2;
  --space-pink: #ff69b4;
  --space-white: #ffffff;
  --space-silver: #c0c0c0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Exo", sans-serif;
  line-height: 1.6;
  color: #64b5f6;
  background: radial-gradient(ellipse at center, #0f1419 0%, #000000 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-weight: 400;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, #42a5f5, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
    radial-gradient(1px 1px at 130px 80px, #7986cb, transparent),
    radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  pointer-events: none;
  z-index: -1;
  animation: starfield 50s linear infinite;
}

@keyframes starfield {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(63, 81, 181, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: cosmicPulse 10s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Header */
header {
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
  border: 1px solid #3f51b5;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(63, 81, 181, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

h1 {
  font-family: "Michroma", monospace;
  font-size: 2.5rem;
  text-align: center;
  background: linear-gradient(45deg, #64b5f6, #7986cb, #9c27b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
  position: relative;
  z-index: 1;
  animation: hologram 4s ease-in-out infinite;
}

@keyframes hologram {
  0%,
  100% {
    filter: brightness(1) contrast(1);
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
  }
  50% {
    filter: brightness(1.2) contrast(1.1);
    text-shadow: 0 0 30px rgba(100, 181, 246, 0.8);
  }
}

/* Navigation */
nav {
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: #81d4fa;
  text-decoration: none;
  font-weight: 400;
  padding: 12px 25px;
  border: 1px solid #29b6f6;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(41, 182, 246, 0.1);
  font-family: "Exo", sans-serif;
}

nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(100, 181, 246, 0.2), rgba(121, 134, 203, 0.2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover::before {
  transform: scaleX(1);
}

nav a:hover {
  color: #ffffff;
  border-color: #64b5f6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
}

/* Hero Section */
.section.head {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.1) 2px,
    rgba(0, 212, 255, 0.1) 4px
  );
  animation: cosmicScan 4s linear infinite;
}

@keyframes cosmicScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.section.head h1 {
  font-family: "Michroma", monospace;
  font-size: 4rem;
  font-weight: 400;
  color: var(--space-cyan);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: var(--cosmic-glow);
  position: relative;
  z-index: 1;
  animation: cosmicGlow 5s ease-in-out infinite alternate;
}

@keyframes cosmicGlow {
  0% {
    text-shadow: 0 0 10px var(--space-cyan), 0 0 20px var(--space-cyan);
  }
  100% {
    text-shadow: 0 0 20px var(--space-cyan), 0 0 40px var(--space-cyan), 0 0 60px var(--space-cyan);
  }
}

.section.head .content p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--space-white);
  font-weight: 300;
  position: relative;
  z-index: 1;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border: 1px solid var(--space-cyan);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

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

.section:nth-child(even) {
  background: rgba(10, 10, 26, 0.3);
}

.section header h2 {
  font-family: "Michroma", monospace;
  font-size: 3rem;
  font-weight: 400;
  color: var(--space-violet);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: var(--cosmic-glow);
  position: relative;
}

.section header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--space-violet);
  box-shadow: 0 0 15px var(--space-violet);
}

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

.casino-card {
  flex: 0 1 calc(33.333% - 20px);
  min-width: 320px;
  padding: 25px;
  border: 1px solid #3f51b5;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.8) 0%, rgba(63, 81, 181, 0.1) 100%);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.casino-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.casino-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3f51b5, #9c27b0, #3f51b5);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

.casino-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(63, 81, 181, 0.3);
}

.casino-logo {
  width: 360px;
  height: 120px;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.casino-logo::after {
  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-card:hover .casino-logo::after {
  left: 100%;
}

.casino-card:hover .casino-logo {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(100, 181, 250, 0.3);
}

.casino-title {
  font-family: "Michroma", monospace;
  font-size: 1.3rem;
  font-weight: 400;
  color: #81d4fa;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(129, 212, 250, 0.5);
}

.casino-description {
  color: #90caf9;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}

.casino-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #3f51b5, #9c27b0);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.casino-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #5c6bc0, #ab47bc);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.casino-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(63, 81, 181, 0.6);
}

.casino-button span {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
  border: 1px solid #3f51b5;
  border-radius: 15px;
  padding: 30px;
  margin-top: 50px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(63, 81, 181, 0.3);
}

footer p {
  color: #81d4fa;
  font-size: 1.1rem;
  font-weight: 300;
}

/* Cosmic particles */
.cosmic-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #64b5f6, transparent);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f1419;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3f51b5, #9c27b0);
  border-radius: 6px;
  border: 2px solid #0f1419;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5c6bc0, #ab47bc);
}


/* Site Logo & Name */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(100, 181, 246, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 15px rgba(129, 212, 250, 0.9);
}

.site-name {
  font-family: "Michroma", monospace;
  font-size: 1.2rem;
  color: var(--space-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-logo:hover .site-name {
  color: var(--space-white);
  text-shadow: 0 0 15px var(--space-cyan), 0 0 30px var(--space-cyan);
}

.section.head {
  transform: none !important; /* убираем смещение вниз из inline-стиля */
  margin-top: 0 !important;   /* чтобы не было зазора */
}

header + .section.head {
  margin-top: 0 !important;   /* секция сразу под шапкой */
}

.section.tx-block {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.section.tx-block .container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.section.tx-block p {
  font-size: 1.5rem;
}

.section.tx-block h3 {
  font-size: 2rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-links {
  margin-left: auto;
  padding-right: 300px; /* чтобы не прилипало к самому краю */
}

.footer-links ul {
  list-style: none;
  display: block; /* вертикальный список */
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--space-cyan);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
  color: var(--space-white);
  text-shadow: 0 0 10px var(--space-cyan), 0 0 20px var(--space-cyan);
}