/* Template 5 - Elegant Green Table Layout */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap");

:root {
  --green-bg: #f0f9f0;
  --green-surface: #ffffff;
  --green-accent: #16a085;
  --green-dark: #0d7377;
  --green-light: #52c4a0;
  --green-muted: #a8e6cf;
  --text-primary: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-muted: #85929e;
  --border-color: #d5dbdb;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  --font-primary: "Source Sans Pro", sans-serif;
  --font-accent: "Playfair Display", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--green-bg);
  min-height: 100vh;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* Header with elegant design */
.site-header {
  background: var(--green-surface);
  border-bottom: 3px solid var(--green-accent);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--green-accent);
  box-shadow: var(--shadow-sm);
}

.site-name {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-accent);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--green-accent);
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  text-transform: capitalize;
}

.site-nav a:hover {
  background: var(--green-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.section.head {
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--green-surface) 0%, var(--green-bg) 100%);
  position: relative;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(22, 160, 133, 0.1) 0%, transparent 50%);
}

.section.head h1 {
  font-family: var(--font-accent);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.section.head p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: var(--green-surface);
}

.section header {
  text-align: center;
  margin-bottom: 3rem;
}

.section header h2 {
  font-family: var(--font-accent);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--green-accent);
  margin-bottom: 1rem;
  position: relative;
}

.section header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-accent), var(--green-light));
  border-radius: 2px;
}

.section header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 500;
}

/* Table Layout Toggle */
.layout-toggle {
  text-align: center;
  margin-bottom: 2rem;
}

.toggle-button {
  background: var(--green-accent);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Casino Table Layout */
.casino-table {
  width: 100%;
  background: var(--green-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
}

.casino-table thead {
  background: linear-gradient(135deg, var(--green-accent), var(--green-dark));
  color: white;
}

.casino-table th {
  padding: 1.5rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--green-dark);
}

.casino-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.casino-table tbody tr:hover {
  background: var(--green-bg);
  transform: scale(1.01);
}

.casino-table td {
  padding: 1.5rem 1rem;
  vertical-align: middle;
}

.table-logo {
  width: 120px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  object-fit: contain;
}

.table-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-stars {
  width: 80px;
  height: 16px;
  background: var(--border-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.table-stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--green-accent);
  border-radius: 8px;
}

.table-bonus {
  font-weight: 700;
  color: var(--green-accent);
  font-family: var(--font-accent);
  font-size: 1.125rem;
}

.table-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.table-feature {
  background: var(--green-muted);
  color: var(--green-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-button {
  background: var(--green-accent);
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.table-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Casino List (Card Layout) */
.casino_list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.casino-item {
  width: calc(33.333% - 1.5rem);
  min-width: 320px;
  background: var(--green-surface);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.casino-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-accent);
}

.casino-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--green-accent);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.casino-header {
  padding: 2rem;
  text-align: center;
  background: var(--green-bg);
  border-bottom: 2px solid var(--border-color);
}

.casino-logo {
  width: 360px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 5px;
  border: 2px solid var(--green-accent);
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.casino-logo:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.casino-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.casino-name {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.rating .stars {
  width: 100px;
  height: 20px;
  background: var(--border-color);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--green-accent);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--green-accent);
  transition: all 0.4s ease;
  border-radius: 10px;
}

.rating .text {
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-accent);
}

.casino-body {
  padding: 2rem;
}

.casino-bonus {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--green-accent), var(--green-light));
  border-radius: 12px;
  color: white;
  box-shadow: var(--shadow-md);
}

.bonus-amount {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
}

.free-spins {
  font-size: 1rem;
  font-weight: 600;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.feature-tag {
  background: var(--green-bg);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--green-accent);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.feature-tag:hover {
  background: var(--green-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.casino-details {
  margin-bottom: 2rem;
  background: var(--green-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: var(--green-surface);
}

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

.detail-label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.875rem;
}

.detail-value {
  color: var(--green-accent);
  font-weight: 700;
  font-family: var(--font-accent);
}

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

.casino-button {
  display: inline-block;
  background: var(--green-accent);
  color: white;
  padding: 1rem 2.5rem;
  border: 2px solid var(--green-accent);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.casino-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.faq-item {
  background: var(--green-surface);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-accent);
}

.accordion-question {
  background: none;
  border: none;
  font-family: var(--font-accent);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.accordion-question:hover {
  background: var(--green-bg);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  background: var(--green-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: white;
  transition: all 0.3s ease;
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--green-dark);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .accordion-answer {
  max-height: 300px;
  padding: 0 2rem 1.5rem;
}

/* Footer */
.footer {
  background: var(--green-surface);
  color: var(--text-primary);
  padding: 3rem 0 1rem;
  border-top: 3px solid var(--green-accent);
  box-shadow: 0 -5px 20px rgba(22, 160, 133, 0.1);
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--green-accent);
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: capitalize;
  font-size: 0.875rem;
}

.footer-links a:hover {
  background: var(--green-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-weight: 500;
}

/* Animations */
@keyframes elegantFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  opacity: 0;
  animation: elegantFade 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

/* Text Content */
.text-content {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--green-surface);
  padding: 3rem;
  border: 2px solid var(--border-color);
  border-radius: 15px;
  line-height: 1.7;
  box-shadow: var(--shadow-md);
}

.text-content h3 {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-accent);
  margin: 2rem 0 1rem;
}

.text-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.text-content ul,
.text-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.text-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
