/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  min-height: 100vh;
}

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

.content-container {
  max-width: 64rem;
  margin: 0 auto;
}

/* Header Styles */
.header {
  background-color: #122a3c;
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.header-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.intro-section {
  text-align: center;
  margin-bottom: 2rem;
}

.intro-text {
  color: #6b7280;
  font-size: 1rem;
}

/* Latest Release Section */
.latest-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-new {
  background-color: #dcfce7;
  color: #166534;
}

.badge-latest {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Release Cards */
.release-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.release-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-icon {
  font-size: 1.25rem;
}

.version-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.release-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.card-content {
  padding: 1.5rem;
  padding-top: 1rem;
}

/* ---------- Highlights typography & spacing ---------- */
.highlights-section h4 {
  margin: 0 0 .5rem;
}

.highlights-rich {
  line-height: 1.45;
  font-size: 0.95rem;
}

.highlights-rich p {
  margin: .25rem 0 .4rem;
}

.highlights-rich ul,
.highlights-rich ol {
  padding-left: 1.25rem;   /* indent bullets nicely */
  margin: .25rem 0 .6rem;
}

.highlights-rich li {
  margin: .15rem 0;
}

.highlights-rich hr {
  border: none;
  border-top: 1px solid #e5e7eb; /* light separator */
  margin: .6rem 0;
}

/* ---------- Collapsible behavior ---------- */
.highlights-rich.is-collapsed {
  --collapse-height: 240px;   /* tweak if you want less/more initially */
  max-height: var(--collapse-height);
  overflow: hidden;
  position: relative;
}

.highlights-rich.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  /* match your card bg; if not white, set accordingly */
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
}

/* Button styling (use your existing button classes if you have them) */
.show-more-btn {
  margin-top: .5rem;
  font-size: .85rem;
  background: transparent;
  border: none;
  color: #2563eb;       /* primary-ish */
  cursor: pointer;
  padding: 0;
}

.show-more-btn:hover {
  text-decoration: underline;
}


/* Download Buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #aa322e;
  color: white;
  border-color: #aa322e;
}

.btn-primary:hover {
  background-color: #8b2a26;
  border-color: #8b2a26;
}

.btn-outline {
  background-color: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.download-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
}

/* Previous Versions Section */
.previous-section {
  margin-top: 2rem;
}

.collapsible-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.2s ease;
}

.collapsible-btn:hover {
  background-color: #f9fafb;
}

.chevron-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.chevron-icon.rotated {
  transform: rotate(180deg);
}

.collapsible-content {
  display: none;
  margin-top: 1rem;
}

.collapsible-content.open {
  display: block;
}

/* Footer */
.footer {
  background-color: #f9fafb;
  margin-top: 4rem;
  padding: 2rem 0;
}

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

.support-info {
  margin-bottom: 1rem;
}

.support-info p {
  font-size: 0.875rem;
  color: #6b7280;
}

.support-link {
  color: #3b82f6;
  text-decoration: none;
}

.support-link:hover {
  text-decoration: underline;
}

.copyright {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.copyright p {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .header-text h1 {
    font-size: 1.25rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
