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

:root {
  --table-primary: #1e3a8a;
  --table-secondary: #3b82f6;
  --table-accent: #60a5fa;
  --table-light: #dbeafe;
  --table-pale: #f0f9ff;
  --table-white: #ffffff;
  --table-gray: #f8fafc;
  --table-dark: #1e293b;
  --table-red: #dc2626;
  --table-green: #16a34a;

  --shadow-table: 0 4px 20px rgba(30, 58, 138, 0.1);
  --shadow-light: 0 2px 10px rgba(30, 58, 138, 0.05);
  --shadow-strong: 0 8px 30px rgba(30, 58, 138, 0.15);

  --font-primary: "Source Sans Pro", sans-serif;
  --font-secondary: "Lora", 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(--table-dark);
  background: var(--table-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* Header */
.site-header {
  background: var(--table-white);
  box-shadow: var(--shadow-light);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.site-logo img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  border: 2px solid var(--table-primary);
}

.site-name {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--table-primary);
  text-decoration: none;
}

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

.site-nav a {
  color: var(--table-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 0.25rem;
}

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

/* Hero Section */
.section.head {
  padding: 6rem 0;
  text-align: center;
  background: var(--table-white);
  border-bottom: 3px solid var(--table-primary);
}

.section.head h1 {
  font-family: var(--font-secondary);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--table-primary);
}

.section.head p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--table-dark);
  opacity: 0.8;
}

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

.section:nth-child(even) {
  background: var(--table-white);
}

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

.section header h2 {
  font-family: var(--font-secondary);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--table-primary);
  margin-bottom: 1rem;
}

.section header p {
  font-size: 1.1rem;
  color: var(--table-dark);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Table Layout Controls */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--table-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.toggle-btn {
  background: var(--table-light);
  color: var(--table-primary);
  border: 2px solid var(--table-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.toggle-btn.active,
.toggle-btn:hover {
  background: var(--table-primary);
  color: var(--table-white);
}

.table-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--table-light);
  border-radius: 8px;
  background: var(--table-white);
  color: var(--table-dark);
  font-weight: 600;
}

/* Casino Table Layout */
.casino-table-container {
  background: var(--table-white);
  border-radius: 15px;
  box-shadow: var(--shadow-table);
  overflow: hidden;
  margin-bottom: 2rem;
}

.casino-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.casino-table thead {
  background: var(--table-primary);
  color: var(--table-white);
}

.casino-table th {
  padding: 1.5rem 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.casino-table th:last-child {
  border-right: none;
}

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

.casino-table tbody tr:hover {
  background: var(--table-pale);
}

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

.casino-table td {
  padding: 1.5rem 1rem;
  vertical-align: middle;
  border-right: 1px solid var(--table-light);
}

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

/* Table Cell Styles */
.casino-logo-cell {
  width: 200px;
}

.casino-logo-table {
  width: 180px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid var(--table-light);
  transition: all 0.3s ease;
}

.casino-logo-table:hover {
  border-color: var(--table-primary);
  transform: scale(1.05);
}

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

.casino-name-cell {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--table-primary);
  font-size: 1.1rem;
}

.rating-cell {
  width: 150px;
}

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

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

.rating-table .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--table-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.rating-table .text {
  color: var(--table-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.bonus-cell {
  width: 180px;
  text-align: center;
}

.bonus-amount-table {
  font-weight: 700;
  color: var(--table-primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.free-spins-table {
  font-size: 0.85rem;
  color: var(--table-dark);
  opacity: 0.8;
}

.features-cell {
  width: 200px;
}

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

.feature-tag-table {
  background: var(--table-light);
  color: var(--table-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.action-cell {
  width: 150px;
  text-align: center;
}

.casino-button-table {
  display: inline-block;
  background: var(--table-primary);
  color: var(--table-white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.casino-button-table:hover {
  background: var(--table-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Badge Styles */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-hot {
  background: var(--table-red);
  color: var(--table-white);
}

.badge-new {
  background: var(--table-green);
  color: var(--table-white);
}

.badge-featured {
  background: var(--table-accent);
  color: var(--table-white);
}

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

.casino-item {
  width: calc(33.333% - 1.5rem);
  min-width: 320px;
  background: var(--table-white);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.casino-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: var(--table-primary);
}

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

.faq-item {
  background: var(--table-white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid transparent;
}

.faq-item:hover {
  border-color: var(--table-primary);
}

.accordion-question {
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--table-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(--table-pale);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  background: var(--table-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--table-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(--table-red);
}

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

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

/* Footer */
.footer {
  background: var(--table-primary);
  color: var(--table-white);
  padding: 3rem 0 1.5rem;
}

.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.7;
  opacity: 0.9;
}

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

.footer-links a {
  color: var(--table-white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.fade-in {
  opacity: 0;
  animation: fadeInTable 0.5s ease forwards;
}

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

/* Text Content */
.text-content {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--table-white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  line-height: 1.8;
}

.text-content h3 {
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--table-primary);
  margin: 2rem 0 1rem;
}

.text-content p {
  margin-bottom: 1.5rem;
  color: var(--table-dark);
}

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

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