/* ========================================
   K-Lite Codec Pack — Download Page Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #222;
  background: #FFFFE9;
  line-height: 1.6;
}

a { color: #003399; text-decoration: none; }
a:hover { color: #993300; }

img { max-width: 100%; height: auto; display: block; }

h1 { font-size: 22px; color: #993300; font-weight: 600; margin-bottom: 12px; }
h2 { font-size: 16px; color: #006633; font-weight: 700; margin: 8px 0 4px; }
h3 { font-size: 14px; font-weight: 700; margin: 12px 0 4px; }
h4 { font-size: 13px; color: #CC3300; margin: 12px 0 6px; }
h5 { font-size: 11px; color: #888; margin: 0 0 10px; }
p  { margin-bottom: 10px; }
ul { padding-left: 22px; margin-bottom: 10px; }
li { line-height: 1.6; }

/* --- Layout --- */
.wrapper {
  max-width: 990px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #888;
}

/* --- Top Bar --- */
.topbar {
  display: flex;
  align-items: center;
  background: #FFD886;
  border-bottom: 1px solid #bbb;
}

.topbar__logo {
  width: 186px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.topbar__logo img {
  width: 64px;
  height: 64px;
}

.topbar__header {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.topbar__header img {
  max-width: 404px;
  height: auto;
}

/* --- Main Grid --- */
.main {
  display: flex;
}

/* --- Sidebar --- */
.sidebar {
  width: 186px;
  flex-shrink: 0;
  background: #FFD886;
  border-right: 1px solid #bbb;
  padding: 6px 4px;
}

.sidebar__group {
  margin-bottom: 12px;
}

.sidebar__title {
  font-size: 12px;
  font-weight: 700;
  color: #993300;
  background: #FDFDCC;
  border: 1px solid #000;
  padding: 4px 6px;
}

.sidebar__link {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5588CC;
  background: #FDFDCC;
  border: 1px solid #000;
  border-top: none;
  padding: 4px 6px 4px 14px;
  border-left: 2px solid #FFD886;
  transition: all 0.15s;
}

.sidebar__link:hover {
  background: #F9F9F9;
  border-left-color: #666;
  color: #993300;
}

/* --- Content --- */
.content {
  flex: 1;
  background: #F9F9F9;
  padding: 16px 18px 24px;
  border-bottom: 1px solid #bbb;
}

.content h1:first-child {
  margin-top: 0;
}

/* --- Variant Table --- */
.variants {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
}

.variants tr {
  border-bottom: 1px solid #ddd;
}

.variants td {
  vertical-align: top;
  padding: 14px 12px;
}

.variants td:first-child {
  width: 130px;
  font-size: 16px;
  font-weight: 700;
  color: #006633;
}

.variants td:last-child {
  width: 170px;
  text-align: center;
  vertical-align: middle;
}

.variants tr:nth-child(even) td {
  background: #EEEEEE;
}

.variants ul {
  margin-bottom: 0;
}

/* --- Download Button --- */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #FFD886 0%, #FFC107 100%);
  color: #5D4037;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0.01em;
}

.btn-download:hover {
  background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transform: translateY(-1px);
  color: #3E2723;
}

.btn-download:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.btn-download__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Download icon (SVG arrow-down in circle) */
.btn-download__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Small variant buttons */
.btn-download--sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 6px;
}

/* Variant info links */
.variant-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.variant-links a {
  font-size: 12px;
  color: #003399;
}

.variant-links a:hover {
  color: #993300;
  text-decoration: underline;
}

/* --- Highlight box --- */
.highlight-box {
  background: #FFF8E1;
  border: 1px solid #FFD886;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 13px;
}

.highlight-box strong {
  color: #993300;
}

/* --- Changelog --- */
.changelog {
  margin: 10px 0;
}

.changelog li {
  font-size: 13px;
  margin-bottom: 2px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 10px;
  font-size: 10px;
  color: #555;
  background: #FFD886;
}

.footer a {
  font-size: 10px;
  color: #333399;
}

.footer a:hover {
  color: #CC0000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #bbb;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
  }

  .sidebar__group {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
  }

  .variants td:first-child {
    width: auto;
    font-size: 14px;
  }

  .variants td:last-child {
    width: auto;
  }
}