/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header Styles */
.header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo img {
  height: 25px;
  width: auto;
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.header-nav .nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-nav .nav-list a:hover {
  color: #0255c2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #54b146;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-login {
  background: #0255c2;
  color: white;
}

.btn-login:hover {
  background: #0144a3;
  color: white;
}

.btn-signup {
  background: #54b146;
  color: white;
}

.btn-signup:hover {
  background: #459a37;
  color: white;
}

.btn-primary {
  background: #0255c2;
  color: white;
}

.btn-success {
  background: #54b146;
  color: white;
}

.burger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(2, 85, 194, 0.9), rgba(84, 177, 70, 0.9)), url("/slottica-casino-banner.jpeg");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fortune Wheel */
.fortune-wheel-container {
  margin-top: 40px;
}

.wheel-wrapper {
  position: relative;
  display: inline-block;
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #54b146;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.spin-btn:hover {
  background: #459a37;
  transform: translate(-50%, -50%) scale(1.05);
}

.wheel-result {
  margin-top: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  color: #333;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.wheel-result.hidden {
  display: none;
}

.wheel-result h3 {
  color: #54b146;
  margin-bottom: 15px;
}

/* Section Styles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #333;
}

.pros-cons-section,
.casino-info-section,
.winners-section,
.tournaments-section,
.live-games-section,
.review-section,
.faq-section {
  padding: 80px 0;
}

/* Pros and Cons */
.pros-block,
.cons-block {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.pros-title {
  color: #54b146;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.cons-title {
  color: #dc3545;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.pros-list,
.cons-list {
  list-style: none;
}

.pros-list li,
.cons-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pros-list li:last-child,
.cons-list li:last-child {
  border-bottom: none;
}

/* Casino Info Table */
.info-table-wrapper {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.casino-info-table {
  width: 100%;
  border-collapse: collapse;
}

.casino-info-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.casino-info-table td:first-child {
  font-weight: 600;
  background: #f8f9fa;
  width: 40%;
}

.casino-info-table tr:last-child td {
  border-bottom: none;
}

/* Winners List */
.winners-list {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-height: 500px;
  overflow-y: auto;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.winner-rank {
  font-weight: 700;
  color: #0255c2;
  width: 40px;
}

.winner-name {
  flex: 1;
  margin-left: 20px;
}

.winner-amount {
  font-weight: 600;
  color: #54b146;
}

/* Tournaments */
.tournaments-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.tournament-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tournament-card:hover {
  transform: translateY(-5px);
}

.tournament-card h3 {
  color: #0255c2;
  margin-bottom: 15px;
}

.tournament-prize {
  font-size: 1.2rem;
  font-weight: 600;
  color: #54b146;
  margin: 20px 0;
}

.tournament-timer {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
}

.timer-display {
  font-weight: 700;
  color: #dc3545;
}

.tournament-top5 {
  margin-top: 20px;
}

.tournament-player {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.tournament-player:last-child {
  border-bottom: none;
}

/* Live Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card h4 {
  padding: 20px;
  margin: 0;
  text-align: center;
}

.game-card .btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Review Section */
.review-content {
  background: white;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.review-content h2,
.review-content h3,
.review-content h4 {
  color: #0255c2;
  margin-top: 30px;
  margin-bottom: 20px;
}

.review-content h2:first-child {
  margin-top: 0;
}

.review-content p {
  margin-bottom: 20px;
}

.review-content ul,
.review-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.review-content li {
  margin-bottom: 10px;
}

.review-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.review-content table th,
.review-content table td {
  padding: 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.review-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

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

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 25px;
  margin: 0;
  cursor: pointer;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0255c2;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 25px;
  max-height: 500px;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #0255c2;
  margin-bottom: 20px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-description {
  color: #666;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0255c2;
}

.payment-methods,
.game-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-methods img,
.game-providers img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-methods img:hover,
.game-providers img:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal,
.footer-responsible {
  color: #666;
  font-size: 14px;
}

.footer-legal a {
  color: #0255c2;
  text-decoration: none;
}

/* Registration Widget */
.registration-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #54b146, #459a37);
  color: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.widget-content {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.widget-text strong {
  display: block;
  font-size: 1.1rem;
}

.widget-text span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.widget-btn {
  background: white;
  color: #54b146;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.widget-btn:hover {
  background: #f8f9fa;
  color: #459a37;
  transform: scale(1.05);
}

.widget-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.widget-close:hover {
  opacity: 1;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .header-nav.active {
    display: block;
  }

  .header-nav .nav-list {
    flex-direction: column;
    gap: 15px;
  }

  .burger-menu {
    display: flex;
  }

  .burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .tournaments-slider {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .info-table-wrapper {
    overflow-x: auto;
  }

  .casino-info-table {
    min-width: 600px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .registration-widget {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .widget-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .header-buttons {
    flex-direction: column;
    gap: 5px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease;
}

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

.slide-up {
  animation: slideUp 0.6s ease;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}
