/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.brand {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.brand:hover {
  color: #34495e;
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: #2c3e50;
  outline: 2px solid #2c3e50;
  outline-offset: 4px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid #333;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  border-radius: 4px;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #f0f0f0;
  outline: 2px solid #2c3e50;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 400px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  nav a {
    display: block;
    padding: 15px 20px;
  }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff;
  min-height: calc(100vh - 300px);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

h2 {
  font-size: 22px;
  line-height: 1.4;
  color: #2c3e50;
  margin: 40px 0 20px 0;
  font-weight: bold;
  text-align: center;
}

p {
  margin-bottom: 16px;
  color: #444;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 30px;
  color: #444;
}

ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

main ul {
  list-style-type: disc;
}

main ol {
  list-style-type: decimal;
}

/* ========================================
   TOOL SECTION
   ======================================== */

.tool-helper-text {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin: 20px 0;
  padding: 12px 16px;
  background: #f9f9f9;
  border-left: 3px solid #2c3e50;
  border-radius: 4px;
}

.tool-section {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 30px;
  margin: 30px 0;
}

@media (max-width: 820px) {
  .tool-section {
    padding: 20px 15px;
  }

  .search-box {
    font-size: 14px;
  }

  .filter-pills {
    gap: 8px;
  }

  .filter-pill {
    padding: 8px 16px;
    font-size: 12px;
  }
}

.tool-controls {
  margin-bottom: 25px;
}

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: Verdana, sans-serif;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin: 0 auto 20px auto;
  display: block;
}

.search-box:focus {
  outline: none;
  border-color: #2c3e50;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.filter-pill {
  background: #fff;
  border: 2px solid #ddd;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: Verdana, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.3px;
}

.filter-pill:hover,
.filter-pill:focus {
  background: #f0f0f0;
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}

.filter-pill.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sort-controls label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.sort-select {
  padding: 10px 14px;
  font-size: 14px;
  font-family: Verdana, sans-serif;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: #2c3e50;
}

.results-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 600;
}

/* ========================================
   TABLES - DESKTOP
   ======================================== */

.registry-table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.registry-table thead {
  background: #2c3e50;
  color: #fff;
}

.registry-table th {
  padding: 14px 10px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

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

.registry-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  contain: layout style;
}

.registry-table tbody tr:hover {
  background: #f9f9f9;
  will-change: background-color;
}

.registry-table td {
  padding: 14px 10px;
  vertical-align: top;
  color: #444;
}

.registry-table a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
}

.registry-table a:hover,
.registry-table a:focus {
  text-decoration: underline;
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}

.registry-table .tag {
  display: inline-block;
  background: #e8f4f8;
  color: #2c3e50;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin: 2px;
  font-weight: 600;
}

/* ========================================
   TABLES - MOBILE RESPONSIVE (CARD LAYOUT)
   ======================================== */

@media (max-width: 820px) {
  .registry-table-container {
    overflow-x: visible;
  }

  .registry-table thead {
    display: none;
  }

  .registry-table tbody {
    display: block;
  }

  .registry-table tbody tr.mobile-card {
    display: block;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    padding: 0;
    contain: layout style paint;
  }

  .registry-table tbody tr.mobile-card:hover {
    background: #fff;
  }

  .registry-table tbody tr.mobile-card td {
    display: block;
    padding: 0;
    border: none;
  }

  .card-content {
    padding: 16px;
    contain: layout style;
  }

  .card-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
  }

  .card-casino-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
  }

  .card-casino-name:hover {
    text-decoration: underline;
  }

  .card-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
  }

  .card-field:last-child {
    border-bottom: none;
  }

  .card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2c3e50;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    min-width: 140px;
  }

  .card-value {
    font-size: 13px;
    color: #444;
    text-align: right;
    flex: 1;
  }

  .card-value .tag {
    display: inline-block;
    margin: 2px;
  }
}

/* ========================================
   SECONDARY COMPLIANCE TABLE
   ======================================== */

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  margin: 20px 0;
}

.compliance-table thead {
  background: #34495e;
  color: #fff;
}

.compliance-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.compliance-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  contain: layout style;
}

.compliance-table tbody tr:hover {
  background: #f9f9f9;
  will-change: background-color;
}

.compliance-table td {
  padding: 14px 12px;
  color: #444;
}

@media (max-width: 820px) {
  .compliance-table thead {
    display: none;
  }

  .compliance-table tbody {
    display: block;
  }

  .compliance-table tbody tr.mobile-card {
    display: block;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    padding: 0;
    contain: layout style paint;
  }

  .compliance-table tbody tr.mobile-card:hover {
    background: #fff;
  }

  .compliance-table tbody tr.mobile-card td {
    display: block;
    padding: 0;
    border: none;
  }
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-section {
  margin: 30px 0;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #fff;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #fafafa;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: Verdana, sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2c3e50;
  transition: background 0.2s ease;
}

.faq-question:hover,
.faq-question:focus {
  background: #f0f0f0;
  outline: 2px solid #2c3e50;
  outline-offset: -2px;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  transition: transform 0.2s;
  will-change: transform;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  will-change: max-height;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer-content {
  padding: 16px 20px;
  color: #444;
  line-height: 1.7;
}

/* ========================================
   AUTHOR BOX
   ======================================== */

.author-box {
  background: #f9f9f9;
  border-left: 4px solid #2c3e50;
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 4px;
}

.author-box h2 {
  margin-top: 0;
  font-size: 18px;
}

.author-box p {
  margin-bottom: 0;
  color: #555;
}

/* ========================================
   FORM STYLES
   ======================================== */

.contact-form {
  max-width: 600px;
  margin: 30px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-family: Verdana, sans-serif;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c3e50;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: Verdana, sans-serif;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.submit-btn:hover,
.submit-btn:focus {
  background: #34495e;
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 40px 20px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  justify-content: center;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.footer-compliance {
  text-align: center;
  font-size: 12px;
  color: #bdc3c7;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-copyright a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.content-section {
  margin: 30px 0;
}

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

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}
