/* VersTracker 1998 Stylesheet */
/* Modern CSS for authentic 1998 look with cross-browser consistency */

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

html, body {
  margin: 0;
  padding: 0;
}

/* ========== BASE STYLES ========== */
body {
  background-color: #FFFFFF;
  color: #000000;
  font-family: -apple-system, Geneva, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 0;
}

/* Links */
a {
  color: #0000EE;
  text-decoration: underline;
}

a:visited {
  color: #551A8B;
}

a:hover {
  text-decoration: underline;
}

/* ========== LAYOUT ========== */
.vt-container {
  width: 800px;
  margin: 0 auto;
}

/* ========== MAIN TABLE ========== */
.vt-main-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
  background-color: #F3F3E1;
}

.vt-main-table td {
  padding: 4px 6px;
  border: 1px solid #000000;
  vertical-align: top;
}

/* ========== HEADER ========== */
.vt-header {
  background-color: #6699CC;
  padding: 8px 6px;
}

.vt-header-title {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
  margin: 0;
  display: inline;
}

.vt-header-legend {
  font-size: 10px;
  margin-left: 10px;
}

.vt-legend-letter {
  color: #CC0000;
  font-weight: bold;
}

.vt-header-search {
  text-align: left;
  font-size: 10px;
  margin-top: 6px;
}

.vt-search-form input[type="text"] {
  font-size: 11px;
  padding: 2px 4px;
  width: 180px;
}

.vt-search-form button {
  font-size: 11px;
  padding: 2px 6px;
  margin-left: 2px;
}

.vt-search-status {
  margin-top: 3px;
  font-size: 10px;
  color: #000000;
}

/* ========== DATE SEPARATOR ========== */
.vt-date-separator {
  background-color: #D9D9BF;
  padding: 3px 6px;
}

.vt-date-separator-text {
  font-size: 10px;
}

/* ========== FILTER ROW ========== */
.vt-filter-row {
  background-color: #D9D9BF;
  padding: 4px 6px;
}

.vt-filter-form {
  font-size: 10px;
  margin: 0;
  padding: 0;
}

.vt-filter-form select,
.vt-filter-form input[type="submit"] {
  font-size: 11px;
  font-family: -apple-system, Geneva, Arial, sans-serif;
}

.vt-filter-form label {
  font-weight: bold;
  margin-right: 3px;
}

/* ========== SOFTWARE ROWS ========== */
.vt-software-row td {
  padding: 5px 6px;
  background-color: #FFFFFF;
}

.vt-software-name {
  font-weight: bold;
  font-size: 13px;
}

.vt-software-name-updated {
  color: #000066;
}

.vt-software-desc {
  font-size: 12px;
  font-weight: normal;
}

.vt-software-stars {
  font-size: 10px;
  color: #666666;
}

.vt-version-link {
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
}

.vt-type-badge {
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  width: 55px;
}

.vt-type-badge a {
  position: relative;
  padding-left: 8px;
  padding-right: 4px;
  display: inline-block;
}

.vt-type-badge a.vt-new::before {
  content: "*";
  position: absolute;
  left: 0;
}

.vt-type-indicator {
  font-size: 10px;
  color: #666666;
}

/* ========== POPULAR UPDATES ========== */
.vt-popular-header {
  background-color: #E8E8D0;
  padding: 6px 8px;
  font-size: 11px;
  border-bottom: 1px solid #CCCCCC;
}

.vt-popular-row {
  background-color: #F5F5E8;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vt-popular-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #FFFFFF;
  border: 1px solid #CCCCCC;
  padding: 4px 8px;
  font-size: 11px;
  text-decoration: none;
  color: #000066;
}

.vt-popular-item:hover {
  background-color: #E8F4E8;
  border-color: #339933;
}

.vt-popular-name {
  font-weight: bold;
}

.vt-popular-stars {
  color: #666666;
  font-size: 10px;
}

/* ========== PAGINATION ========== */
.vt-pagination {
  background-color: #D9D9BF;
  padding: 6px;
  text-align: center;
  font-size: 10px;
}

.vt-pagination-disabled {
  color: #999999;
}

/* ========== FOOTER ========== */
.vt-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 10px;
  color: #666666;
}

/* ========== PACKAGE DETAIL PAGE ========== */
.vt-detail-header {
  background-color: #6699CC;
  padding: 10px 6px;
}

.vt-detail-title {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
}

.vt-detail-back {
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.vt-detail-back a {
  color: #FFFFFF;
}

.vt-detail-row {
  background-color: #FFFFFF;
  padding: 6px;
}

.vt-detail-row-alt {
  background-color: #F3F3E6;
}

.vt-detail-row-separator {
  background-color: #D9D9BF;
}

.vt-detail-label {
  font-weight: bold;
  font-size: 12px;
}

.vt-detail-text {
  font-size: 12px;
}

.vt-detail-text-small {
  font-size: 10px;
}

.vt-detail-code {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  background-color: #F7F7F7;
  padding: 2px 4px;
}

.vt-detail-caveats {
  background-color: #FFFFCC;
}

.vt-detail-pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  margin: 5px 0;
  line-height: 1.3;
}

/* Version History Table */
.vt-version-table {
  width: 100%;
  border-collapse: collapse;
}

.vt-version-table thead tr {
  background-color: #D9D9BF;
}

.vt-version-table th {
  text-align: left;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: bold;
  border-bottom: 1px solid #000000;
}

.vt-version-table td {
  padding: 4px 6px;
  font-size: 10px;
  border-bottom: 1px solid #DDDDDD;
}

.vt-version-table .version-num {
  font-weight: bold;
}

.vt-version-table .commit-sha {
  font-family: "Courier New", Courier, monospace;
}

/* ========== FORM ELEMENTS ========== */
input[type="text"],
input[type="submit"],
select,
button {
  font-family: -apple-system, Geneva, Arial, sans-serif;
}

input[type="checkbox"] {
  margin: 0 3px 0 6px;
}

/* ========== UTILITY CLASSES ========== */
.vt-bold {
  font-weight: bold;
}

.vt-italic {
  font-style: italic;
}

.vt-muted {
  color: #666666;
}

.vt-small {
  font-size: 10px;
}

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

/* ========== TAGS ========== */
.vt-tag {
  display: inline-block;
  background-color: #E0E0E0;
  border: 1px solid #999999;
  padding: 1px 6px;
  margin: 1px 3px 1px 0;
  font-size: 10px;
  font-family: -apple-system, Geneva, Arial, sans-serif;
}

/* ========== FEATURE LISTS ========== */
.vt-feature-list {
  margin: 6px 0 2px 0;
  padding-left: 6px;
  font-size: 11px;
  line-height: 1.5;
  list-style-position: inside;
}

.vt-feature-list li {
  margin: 3px 0;
}

/* ========== PROGRESSIVE DISCLOSURE ========== */
.vt-disclosure {
  margin: 0;
}

.vt-disclosure-summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 0;
  list-style: none;
  user-select: none;
}

.vt-disclosure-summary::-webkit-details-marker {
  display: none;
}

.vt-disclosure-summary::before {
  content: "[+] ";
  font-family: "Courier New", Courier, monospace;
  color: #666666;
}

.vt-disclosure[open] .vt-disclosure-summary::before {
  content: "[-] ";
}

.vt-disclosure-summary:hover {
  color: #0000EE;
}

.vt-disclosure-content {
  padding: 8px 0 4px 18px;
  font-size: 11px;
  line-height: 1.5;
}

.vt-disclosure-content p {
  margin: 0 0 8px 0;
}

.vt-disclosure-content ul {
  margin: 4px 0;
  padding-left: 20px;
}

.vt-disclosure-content li {
  margin: 3px 0;
}

/* ========== BROWSE PAGES ========== */
.vt-tag-cloud {
  line-height: 2;
}

.vt-tag-count {
  font-size: 9px;
  color: #666666;
}

.vt-stars {
  font-size: 9px;
  color: #666666;
  margin-left: 4px;
}

.vt-stars::before {
  content: "\2605 ";
}

.vt-software-version {
  font-size: 11px;
  white-space: nowrap;
}

.vt-col-name,
.vt-col-desc,
.vt-col-version {
  background-color: #D9D9BF;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: bold;
  text-align: left;
  border: 1px solid #000000;
}

.vt-col-version {
  width: 80px;
}

.vt-main-table th {
  background-color: #D9D9BF;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: bold;
  text-align: left;
  border: 1px solid #000000;
}

/* ========== STAR/FAVORITE BUTTONS ========== */
.vt-star-btn {
  display: inline-block;
  font-size: 11px;
  margin-left: 4px;
  cursor: pointer;
}

.vt-star-btn a {
  text-decoration: none;
  color: #999999;
}

.vt-star-btn a:hover {
  color: #CC9900;
}

.vt-star-btn.vt-starred a {
  color: #CC9900;
  text-decoration: none;
}

.vt-detail-star {
  display: inline-block;
  margin-left: 10px;
  font-size: 14px;
}

.vt-detail-star a {
  text-decoration: none;
  color: #666666;
}

.vt-detail-star a:hover,
.vt-detail-star.vt-starred a {
  color: #CC9900;
}

.vt-starred-empty {
  text-align: center;
  padding: 20px;
  color: #666666;
}
