/* Custom Styles for Silenvio Online Casino - Fixed Proper Layout */

:root {
  --dark-red: #8b0000;
  --crimson: #dc143c;
  --deep-crimson: #a01030;
  --dark-bg: #1a0505;
  --darker-bg: #0d0202;
  --light-red: #ff6b6b;
  --gold-accent: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fixed body styles for proper background */
html,
body {
  font-family: "Poppins", sans-serif;
  background: #0a0a0a;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Enhanced header with proper sticky positioning */
.site-header {
  background: rgba(13, 2, 2, 0.98);
  border-bottom: 3px solid var(--crimson);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
}

.navbar {
  background: transparent !important;
  padding: 0.75rem 0;
  min-height: 3.5rem;
}

.navbar-brand {
  min-height: 3.5rem;
  align-items: center;
}

/* Text logo with proper sizing and glow effect */
.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.6), 0 0 20px rgba(220, 20, 60, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.5rem 0;
}

.logo-text:hover {
  color: var(--light-red);
  text-shadow: 0 0 15px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.5);
  transform: scale(1.05);
}

.navbar-item {
  color: #fff !important;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after,
.navbar-item.is-active::after {
  width: 80%;
}

.navbar-item:hover,
.navbar-item.is-active {
  color: var(--crimson) !important;
  background: rgba(220, 20, 60, 0.1) !important;
}

.navbar-burger {
  color: var(--crimson);
  height: 3.5rem;
}

.navbar-burger span {
  background-color: var(--crimson);
  height: 3px;
  width: 20px;
}

/* Enhanced hero sections with proper sizing */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  background: linear-gradient(135deg, #000 0%, var(--dark-red) 40%, var(--crimson) 100%);
  min-height: 500px;
}

.hero-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.15) 0%, transparent 50%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-body {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
}

.hero.is-large .hero-body {
  padding: 5rem 1.5rem;
}

.hero-home .title {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease-out;
  color: #fff;
}

.hero-home .subtitle {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  background: linear-gradient(135deg, var(--dark-red) 0%, #1a0505 50%, #000 100%);
  min-height: 300px;
}

.page-hero .title,
.page-hero .subtitle {
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

/* Enhanced buttons with proper hover effects */
.button.is-danger,
.button.is-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--deep-crimson) 100%);
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
  color: white;
}

.button.is-danger::before,
.button.is-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button.is-danger:hover::before,
.button.is-primary:hover::before {
  width: 300px;
  height: 300px;
}

.button.is-danger:hover,
.button.is-primary:hover {
  background: linear-gradient(135deg, var(--deep-crimson) 0%, var(--dark-red) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

.button.is-danger:active,
.button.is-primary:active {
  transform: translateY(-1px);
}

/* Enhanced sections with proper padding */
section {
  padding: 4rem 0;
  background: #fff;
}

section.games-preview,
section.cta-section,
section.upcoming-section,
section.mission-section,
section.info-section,
section.newsletter-section {
  background: linear-gradient(135deg, #000 0%, var(--dark-red) 50%, #000 100%);
  color: #fff;
}

section.games-preview::before,
section.upcoming-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

/* Enhanced cards with proper styling */
.card {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(220, 20, 60, 0.3);
  border-color: var(--crimson);
}

.feature-card {
  border-top: 4px solid var(--crimson);
}

.feature-card:hover {
  border-top-width: 6px;
}

.icon-wrapper {
  color: var(--crimson);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
  font-size: 3rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Games section with proper card styling */
.game-card,
.game-card-full {
  transition: all 0.4s ease;
  background: #1a1a1a;
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.game-card:hover,
.game-card-full:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.6);
  border-color: var(--crimson);
  z-index: 10;
}

.game-card .card-content,
.game-card-full .card-content {
  color: #fff;
}

.game-card .card-image img,
.game-card-full .card-image img {
  transition: transform 0.4s ease;
  object-fit: cover;
  height: 250px;
  width: 100%;
}

.game-card:hover .card-image img,
.game-card-full:hover .card-image img {
  transform: scale(1.1);
}

/* Event cards with proper styling */
.event-card,
.event-type-card {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-card {
  border-left: 5px solid var(--crimson);
  background: #fff;
}

.event-card:hover {
  border-left-width: 8px;
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.event-type-card {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.event-type-card:hover {
  border-color: var(--crimson);
}

.event-schedule {
  border-left: 5px solid var(--crimson);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.event-schedule:hover {
  border-left-width: 8px;
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
  transform: translateX(5px);
}

.event-date {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--deep-crimson) 100%);
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.date-day {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.date-month {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  margin-top: 0.25rem;
}

/* FAQ cards with accordion functionality */
.faq-card {
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--crimson);
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.faq-card:hover {
  border-left-width: 8px;
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.faq-card .card-header {
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
  padding: 1.5rem;
}

.faq-card .card-header:hover {
  background: rgba(220, 20, 60, 0.05);
}

.faq-card.is-active .card-header {
  background: rgba(220, 20, 60, 0.1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-content.is-active {
  max-height: 1000px;
}

.faq-content .card-content {
  padding: 1.5rem;
}

/* Blog cards with proper layout */
.featured-article {
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
  color: #fff;
}

.featured-article .card-image img {
  height: 400px;
  object-fit: cover;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.blog-card:hover {
  border-color: var(--crimson);
}

.blog-card .card-image img {
  height: 200px;
  object-fit: cover;
}

.blog-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .content {
  flex-grow: 1;
}

/* Contact section styling */
.contact-box {
  border-left: 5px solid var(--crimson);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.contact-box:hover {
  border-left-width: 8px;
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2);
  transform: translateX(5px);
}

.contact-form-box {
  background: #f9f9f9;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
}

/* Team and mission cards */
.team-card {
  text-align: center;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.team-card:hover {
  border-color: var(--crimson);
}

.team-card .card-image img {
  transition: transform 0.4s ease;
  height: 300px;
  object-fit: cover;
}

.team-card:hover .card-image img {
  transform: scale(1.1);
}

.mission-card {
  border-top: 5px solid var(--gold-accent);
  background: #fff;
}

.mission-card:hover {
  border-top-width: 8px;
}

.difference-box {
  border-left: 5px solid var(--crimson);
  transition: all 0.3s ease;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.difference-box:hover {
  border-left-width: 8px;
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2);
  transform: translateX(5px);
}

/* Thank you page styling */
.thank-you-box {
  padding: 3rem;
  border-top: 5px solid var(--crimson);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Footer with proper styling */
.site-footer {
  background: linear-gradient(135deg, #000 0%, var(--darker-bg) 100%);
  padding: 3rem 1.5rem 1.5rem;
  color: #fff;
  border-top: 3px solid var(--crimson);
  margin-top: auto;
}

.site-footer .title {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}

.site-footer ul li:hover {
  transform: translateX(5px);
}

.site-footer a {
  color: #ddd;
  transition: all 0.3s ease;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--crimson) !important;
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

/* Cookie consent with proper z-index and no blocking */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(13, 2, 2, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
  color: #fff;
  padding: 1.5rem;
  z-index: 9999;
  border-top: 3px solid var(--crimson);
  box-shadow: 0 -4px 30px rgba(220, 20, 60, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent.is-active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cookie-content p {
  flex: 1;
  margin: 0;
  min-width: 280px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons .button {
  min-width: 120px;
}

/* Game modal with proper z-index */
.modal {
  z-index: 10000;
}

.modal-background {
  background-color: rgba(0, 0, 0, 0.92);
}

.game-modal-content {
  width: 90vw;
  max-width: 1400px;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  background: var(--crimson);
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--deep-crimson);
}

/* Tags and form elements */
.tag.is-danger,
.tag.is-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--deep-crimson) 100%);
  color: white;
  font-weight: 600;
}

.input,
.textarea,
.select select {
  border-color: #dbdbdb;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 0.125em rgba(220, 20, 60, 0.25);
}

/* Box styling */
.box {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

/* Container improvements */
.container {
  max-width: 1200px;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
  .hero.is-large .hero-body {
    padding: 3rem 1.5rem;
  }

  .title.is-1 {
    font-size: 2rem !important;
  }

  .title.is-2 {
    font-size: 1.75rem !important;
  }

  .title.is-3 {
    font-size: 1.5rem !important;
  }

  .logo-text {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .game-modal-content {
    width: 95vw;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  .featured-article .card-image img {
    height: 250px;
  }

  section {
    padding: 3rem 0;
  }
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background: linear-gradient(135deg, rgba(13, 2, 2, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-top: 2px solid var(--crimson);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
  }

  .navbar-item {
    padding: 0.75rem 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.box {
  animation: fadeIn 0.5s ease-out;
}

/* Stagger animation */
.column:nth-child(1) .card {
  animation-delay: 0.1s;
}
.column:nth-child(2) .card {
  animation-delay: 0.2s;
}
.column:nth-child(3) .card {
  animation-delay: 0.3s;
}
.column:nth-child(4) .card {
  animation-delay: 0.4s;
}

/* Accessibility */
a:focus,
button:focus,
.button:focus {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

::selection {
  background: var(--crimson);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--deep-crimson) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--deep-crimson) 0%, var(--dark-red) 100%);
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .cookie-consent,
  .button,
  .navbar {
    display: none !important;
  }

  body {
    background: white;
  }
}
