/* Poker Online Ukraine - Beautiful + Working Version */

:root {
  --poker-green: #0a5f38;
  --poker-gold: #d4af37;
  --poker-red: #c41e3a;
  --dark-bg: #0d1117;
  --card-bg: #161b22;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent-blue: #58a6ff;
  --border-color: #30363d;
}

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

body {
  font-family: 'Segoe UI', -apple-system, system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ===== ANIMATED BACKGROUND (SAFE) ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0d1117 0%, #0a5f38 100%);
}

.animated-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: bgMove 30s linear infinite;
}

@keyframes bgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ===== HEADER ===== */
header {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--poker-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
  transition: box-shadow 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--poker-gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* Logo card flip animation */
.logo::before {
  content: '🃏';
  font-size: 2rem;
  margin-right: 0.5rem;
  display: inline-block;
  animation: cardFlip 4s ease-in-out infinite;
}

@keyframes cardFlip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--poker-gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
  width: 80%;
}

nav a:hover,
nav a.active {
  color: var(--poker-gold);
  background: rgba(212, 175, 55, 0.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--poker-gold);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO WITH FLOATING CARDS ===== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Floating card symbols */
.hero::before {
  content: '♠';
  position: absolute;
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.15);
  left: 10%;
  top: 20%;
  animation: float1 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '♥';
  position: absolute;
  font-size: 4rem;
  color: rgba(196, 30, 58, 0.15);
  right: 15%;
  top: 60%;
  animation: float2 10s ease-in-out infinite;
  pointer-events: none;
}

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

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

.hero-content {
  max-width: 900px;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--poker-gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { text-shadow: 0 0 40px rgba(212, 175, 55, 0.5); }
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Hero image placeholder */
.hero-image {
max-width: 800px;
height: 400px;
margin: 2rem auto 0;
border-radius: 20px;
border: 2px solid var(--poker-gold);
overflow: hidden;
background-color: var(--card-bg);
}

.hero-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

@keyframes cardPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-image::after {
  
  position: absolute;
  bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin: 5rem 0;
}

h2 {
  font-size: 2.5rem;
  color: var(--poker-gold);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--poker-gold), transparent);
}

/* ===== CARD GRID (CRITICAL - DON'T BREAK!) ===== */
.card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
  margin: 3rem 0 !important;
  width: 100% !important;
}

/* ===== INFO CARD (SAFE ANIMATIONS) ===== */
.info-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  display: block !important;
  min-height: 100px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
}

/* SAFE hover effect - NO transform! */
.info-card:hover {
  border-color: var(--poker-gold) !important;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25) !important;
  background: rgba(22, 27, 34, 0.95) !important;
}

/* Subtle shine effect on hover */
.info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212,175,55,0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.info-card:hover::before {
  transform: translateX(100%);
}

.info-card h3 {
  color: var(--poker-gold) !important;
  font-size: 1.4rem !important;
  margin-bottom: 1rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.info-card:hover h3 {
  color: #ffd700 !important;
}

.info-card p {
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
  font-size: 1.05rem !important;
}

.info-card ul {
  list-style: none;
  margin-top: 1rem;
}

.info-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.info-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--poker-gold);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.info-card:hover ul li::before {
  transform: translateX(5px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--card-bg);
  border-top: 2px solid var(--poker-gold);
  padding: 3rem 2rem;
  margin-top: 5rem;
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--poker-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffd700;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--poker-gold), #b8941f);
  border: none;
  border-radius: 50%;
  color: var(--dark-bg);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.scroll-to-top::before {
  content: '↑';
  font-size: 1.8rem;
  font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--card-bg);
    padding: 5rem 2rem;
    transition: right 0.4s ease;
    border-left: 2px solid var(--poker-gold);
  }
  
  nav.active { right: 0; }
  nav ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: flex; z-index: 1001; }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .hero h1 { font-size: 2.5rem; }
  .card-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 2rem; }
}
