/* Enhanced Custom Styles for tablorin.com - Free Social Online Casino */
:root {
  --primary-green: #0f5a47;
  --secondary-green: #1a7a63;
  --accent-green: #2ecc71;
  --dark-bg: #0a2f24;
  --light-green: #3ddc84;
  --text-light: #e8f5e9;
  --text-dark: #1b4332;
  --gold-accent: #ffd700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a1f1a 0%, #0f5a47 50%, #0a2f24 100%);
  color: var(--text-light);
  min-height: 100vh;
}

/* Enhanced header with text logo instead of image */
.main-header {
  background: rgba(15, 90, 71, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(46, 204, 113, 0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-accent) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.logo i {
  color: var(--light-green);
  font-size: 2rem;
}

.logo:hover {
  color: var(--light-green) !important;
  transform: scale(1.05);
}

.navbar-item {
  color: var(--text-light) !important;
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar-item:hover {
  background-color: rgba(46, 204, 113, 0.15) !important;
  color: var(--light-green) !important;
  transform: translateY(-2px);
}

/* Enhanced hero section with gradient overlay */
.hero {
  background: linear-gradient(135deg, rgba(15, 90, 71, 0.9) 0%, rgba(10, 47, 36, 0.85) 100%),
    url("/placeholder.svg?height=600&width=1920") center / cover;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(46, 204, 113, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-accent), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.6rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced button styles with animations */
.button.is-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  border: none;
  color: white;
  font-weight: 700;
  padding: 1.4rem 3rem;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
  position: relative;
  overflow: hidden;
}

.button.is-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.button.is-primary:hover::before {
  left: 100%;
}

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--light-green), var(--gold-accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 220, 132, 0.6);
}

/* Enhanced card styles with glassmorphism */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 20px;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 50px rgba(46, 204, 113, 0.4);
  border-color: var(--light-green);
  background: rgba(255, 255, 255, 0.12);
}

.card-content {
  color: var(--text-light);
  padding: 2rem;
}

.card-title {
  color: var(--gold-accent);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section-light {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(46, 204, 113, 0.2);
  border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.section-title {
  color: var(--gold-accent);
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--light-green), transparent);
  border-radius: 2px;
}

/* Enhanced game card styles */
.game-card {
  background: rgba(15, 90, 71, 0.7);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(46, 204, 113, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 15px 60px rgba(46, 204, 113, 0.5);
  border-color: var(--gold-accent);
}

.game-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: all 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.game-info {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.game-title {
  color: var(--gold-accent);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced modal z-index higher than cookie banner */
.modal {
  z-index: 1001;
}

.modal-background {
  background-color: rgba(10, 47, 36, 0.95);
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  width: 1200px;
}

.modal-card {
  background: var(--primary-green);
  border-radius: 20px;
  border: 2px solid var(--accent-green);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-card-head {
  background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
  border: none;
  padding: 1.5rem;
}

.modal-card-title {
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 1.5rem;
}

.game-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 10px;
}

/* Enhanced FAQ accordion */
.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-green);
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

.faq-question {
  background: rgba(15, 90, 71, 0.7);
  padding: 1.8rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(26, 122, 99, 0.9);
}

.faq-question h3 {
  color: var(--gold-accent);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 700;
}

.faq-answer {
  padding: 2rem;
  display: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced contact form */
.contact-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(46, 204, 113, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.input,
.textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(46, 204, 113, 0.3);
  color: var(--text-light);
  font-size: 1.1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(232, 245, 233, 0.6);
}

.input:focus,
.textarea:focus {
  border-color: var(--light-green);
  box-shadow: 0 0 0 0.125em rgba(61, 220, 132, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.label {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
  background: rgba(15, 90, 71, 0.7);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(46, 204, 113, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-info a {
  color: var(--light-green);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--gold-accent);
  transform: translateX(5px);
  display: inline-block;
}

/* Enhanced blog cards */
.blog-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  border: 2px solid rgba(46, 204, 113, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(46, 204, 113, 0.4);
  border-color: var(--light-green);
}

.blog-meta {
  color: var(--light-green);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Enhanced footer */
.main-footer {
  background: rgba(10, 47, 36, 0.95);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
  border-top: 3px solid rgba(46, 204, 113, 0.4);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gold-accent);
  transform: translateX(5px);
}

/* Fixed cookie banner to not block game modals */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(15, 90, 71, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  z-index: 998;
  display: none;
  border-radius: 20px;
  border: 2px solid var(--accent-green);
}

.cookie-consent.active {
  display: block;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button.is-success {
  background: var(--accent-green);
  color: white;
  font-weight: 700;
}

.button.is-success:hover {
  background: var(--light-green);
}

.button.is-danger {
  background: #e74c3c;
  color: white;
  font-weight: 700;
}

.button.is-danger:hover {
  background: #c0392b;
}

/* Enhanced event cards */
.event-card {
  background: rgba(15, 90, 71, 0.7);
  border: 2px solid rgba(46, 204, 113, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 12px 40px rgba(46, 204, 113, 0.4);
  transform: translateY(-5px);
}

.event-date {
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* Team Cards */
.team-member {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: scale(1.05);
}

.team-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--gold-accent);
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.team-member:hover .team-avatar {
  border-color: var(--light-green);
  box-shadow: 0 12px 40px rgba(46, 204, 113, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cookie-consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 1.5rem;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .footer-links a {
    margin: 0.3rem 0;
  }

  .button.is-primary {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }
}

/* Lazy Loading Images */
img[loading="lazy"] {
  transition: opacity 0.5s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Additional enhancements */
.icon.is-large {
  color: var(--light-green);
  filter: drop-shadow(0 4px 10px rgba(46, 204, 113, 0.5));
}

.notification {
  border-radius: 15px;
  font-weight: 600;
}
