body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  color: #C67B5C;
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5em;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-style: italic;
}

.meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  font-size: 0.9em;
  color: #666;
}

.last-updated {
  font-weight: 500;
}

.record-count {
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9em;
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #e9ecef;
}

/* Prevent date column from wrapping */
td:first-child {
  white-space: nowrap;
}

/* Make website links clickable */
.website-link {
  color: #C67B5C;
  text-decoration: none;
  font-size: 1.2em;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.website-link:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

/* Tooltip for full URL on hover */
.website-link::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  max-width: 300px;
  word-break: break-all;
}

.website-link:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Arrow pointing down from tooltip */
.website-link::before {
  content: '';
  position: absolute;
  bottom: 92%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1001;
}

.website-link:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  .meta-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  /* Responsive table */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
    position: relative;
  }
  
  /* Add scroll hint on mobile */
  .table-container::after {
    content: "→ Swipe to see more columns";
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(198, 123, 92, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    pointer-events: none;
    opacity: 0.8;
    animation: fadeOut 3s ease-in-out 2s forwards;
  }
  
  @keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
  }
  
  table {
    font-size: 0.8em;
    min-width: 400px; /* Reduced since we have fewer columns */
  }
  
  td {
    padding: 6px 4px;
    white-space: nowrap;
  }
  
  /* Make certain columns more compact on mobile */
  td:first-child { /* WHEN */
    font-size: 0.7em;
    padding: 6px 2px;
    white-space: nowrap; /* Ensure dates never wrap */
  }
  
  td:nth-child(2) { /* TYPE */
    font-size: 0.7em;
    padding: 6px 2px;
  }
  
  /* Title column can wrap on mobile since it has sub-content */
  td:nth-child(3) { /* TITLE */
    white-space: normal;
    min-width: 150px;
  }
  
  /* Adjust tooltip for mobile */
  .website-link::after {
    font-size: 0.7em;
    padding: 6px 8px;
    max-width: 200px;
  }
  
  /* Make symbol legend responsive on mobile */
  .symbol-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .symbol-item {
    font-size: 0.8em;
  }
  
  /* Mobile adjustments for title column */
  .title-sub {
    font-size: 0.75em;
    flex-direction: column;
    gap: 2px;
  }
  
  .website-link-inline, .location-inline {
    font-size: 0.9em;
  }
}

.footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  color: #666;
  font-size: 0.9em;
}

.legend {
  text-align: center;
  margin: 20px 0 30px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  color: #666;
  font-size: 0.9em;
  border-left: 4px solid #C67B5C;
}

.symbol-legend {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #C67B5C;
}

.symbol-legend h3 {
  margin: 0 0 15px 0;
  color: #C67B5C;
  font-size: 1.1em;
  text-align: center;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  font-size: 0.9em;
}

.symbol-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.symbol-emoji {
  font-size: 1.2em;
  margin-right: 10px;
  min-width: 25px;
}

.symbol-text {
  color: #666;
}

.title-date {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}
/* Title column with sub-information */
.title-main {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.title-sub {
  font-size: 0.85em;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.website-link-inline {
  color: #C67B5C;
  text-decoration: none;
  font-weight: 500;
}

.website-link-inline:hover {
  text-decoration: underline;
}

.location-inline {
  color: #666;
}

/* Year divider styling */
.year-divider {
  background: none !important;
}

.year-divider.first-year {
  border-top: none;
}

.year-header {
  background: linear-gradient(135deg, #C67B5C, #D4906F) !important;
  color: white !important;
  font-weight: bold;
  text-align: center;
  padding: 12px 8px;
  font-size: 1.1em;
  border-top: 3px solid #C67B5C;
}

.year-divider:not(.first-year) .year-header {
  border-top: 3px solid #C67B5C;
}
