/* Template 9 - Table Layout Theme */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #10b981;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-table-header: #e2e8f0;
  --bg-table-row-even: #f8fafc;
  --bg-table-row-odd: #f1f5f9;
  --bg-table-row-hover: #dbeafe;

  --border-color: #cbd5e1;
  --border-light: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);

  --border-radius: 6px;
  --border-radius-lg: 8px;

  --font-primary: "Work Sans", sans-serif;
  --font-mono: "Roboto Mono", monospace;
}

* {
  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(--bg-primary);
  font-weight: 400;
}

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

/* Header */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.site-logo a {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-logo a:hover {
  color: var(--primary-light);
}

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

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: var(--font-mono);
}

.site-nav a:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

/* Hero Section */
.section.head {
  padding: 5rem 0;
  text-align: center;
  background: var(--bg-secondary);
}

.section.head h1 {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section.head p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

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

.section:nth-child(even) {
  background: var(--bg-secondary);
}

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

.section header h2 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* Casino Table */
.casino-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.casino-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-primary);
}

.casino-table th {
  background: var(--bg-table-header);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.casino-table tr:nth-child(even) {
  background: var(--bg-table-row-even);
}

.casino-table tr:nth-child(odd) {
  background: var(--bg-table-row-odd);
}

.casino-table tr:hover {
  background: var(--bg-table-row-hover);
}

.casino-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  transition: all 0.3s ease;
}

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

/* Casino Logo Cell */
.casino-logo-cell {
  width: 200px;
}

.casino-logo {
  width: 180px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

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

/* Casino Info Cell */
.casino-info-cell {
  width: 25%;
}

.casino-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.casino-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.stars {
  width: 100px;
  height: 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.stars .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.rating-text {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.feature-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
}

.feature-tag:hover {
  background: var(--primary-light);
  color: var(--text-white);
}

/* Casino Bonus Cell */
.casino-bonus-cell {
  width: 25%;
}

.bonus-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.free-spins {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.bonus-terms {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* Casino Action Cell */
.casino-action-cell {
  width: 20%;
  text-align: center;
}

.casino-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
}

.casino-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.casino-details-link {
  display: block;
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.casino-details-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

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

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

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

.accordion-question:hover {
  color: var(--primary-color);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  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: var(--text-white);
  transition: all 0.3s ease;
}

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

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

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

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

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 5rem;
}

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

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

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  font-family: var(--font-mono);
}

.footer-links a:hover {
  color: var(--primary-color);
}

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

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 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;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-item:hover,
.pagination-item.active {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .casino-table th,
  .casino-table td {
    padding: 1rem;
  }

  .casino-logo {
    width: 150px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .casino-table {
    display: block;
  }

  .casino-table thead {
    display: none;
  }

  .casino-table tbody,
  .casino-table tr,
  .casino-table td {
    display: block;
    width: 100%;
  }

  .casino-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
  }

  .casino-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    position: relative;
    padding: 1rem;
  }

  .casino-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
  }

  .casino-logo-cell {
    justify-content: center;
    text-align: center;
  }

  .casino-logo-cell::before {
    display: none;
  }

  .casino-logo {
    margin: 0 auto;
  }

  .casino-action-cell {
    justify-content: center;
    text-align: center;
  }

  .casino-action-cell::before {
    display: none;
  }

  .section.head h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .casino-features {
    justify-content: flex-end;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 1rem;
  }
}

:root {
  --bg-primary: #FAECAF;
  --bg-secondary: #FCDEA9;
  --bg-tertiary: #FCDEA9;
  --bg-table-header: #FCDEA9;
  --bg-table-row-even: #FAECAF;
  --bg-table-row-odd: #FCDEA9;
  --bg-table-row-hover: #fbd58f; /* слегка темнее для hover */
}

html, body {
height: 100%;
margin: 0;
padding: 0;
}

body {
display: flex;
flex-direction: column;
min-height: 100vh;
}

main {
flex: 1;
}