/* ============================================
   CapybaraMP.com — circa 2004
   "It really whips the llama's bass"
   ============================================ */

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

body {
  background: #1a1a1a url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAKElEQVQImWNgYGD4z8DAwMDIAAH/GRj+MzAxQABIBMJhYICKMEBEAGl0BAUbOoMgAAAAAElFTkSuQmCC') repeat;
  font-family: Verdana, Tahoma, Geneva, Arial, sans-serif;
  font-size: 11px;
  color: #ccc;
  min-height: 100vh;
}

a {
  color: #ffcc00;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

img {
  border: 0;
}

/* ---- HEADER ---- */

.header {
  background: #0d0d0d;
  border-bottom: 2px solid #333;
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 780px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.logo-text {
  font-family: "Arial Black", Impact, Verdana, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: -1px;
  text-shadow: 2px 2px 0 #000;
}

.logo-text span {
  color: #ff6600;
}

.header-links {
  font-size: 10px;
  display: flex;
  gap: 10px;
}

.header-links a {
  color: #999;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.header-links a:hover {
  color: #ffcc00;
}

/* ---- NAV BAR ---- */

.navbar {
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  border-top: 1px solid #555;
  border-bottom: 1px solid #000;
}

.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0;
}

.nav-inner a {
  display: block;
  padding: 6px 14px;
  color: #ccc;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid #333;
  text-decoration: none;
}

.nav-inner a:first-child {
  border-left: 1px solid #333;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: #ffcc00;
  color: #000;
}

/* ---- DIRT STRIPE ---- */

.dirt-stripe {
  height: 6px;
  background: linear-gradient(90deg,
    #2a1f0f 0%, #3d2b10 15%, #2a1f0f 30%,
    #3d2b10 45%, #2a1f0f 60%, #3d2b10 75%,
    #2a1f0f 100%);
  border-bottom: 1px solid #111;
}

/* ---- MAIN LAYOUT ---- */

.main {
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 0;
}

/* ---- HERO / DOWNLOAD SECTION ---- */

.hero {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-left {
  flex: 1;
  background: #111;
  border: 1px solid #333;
  padding: 16px;
}

.hero-title {
  font-family: "Arial Black", Impact, Verdana, sans-serif;
  font-size: 18px;
  color: #ffcc00;
  margin-bottom: 4px;
}

.hero-version {
  font-size: 10px;
  color: #999;
  margin-bottom: 12px;
}

.hero-desc {
  line-height: 1.6;
  margin-bottom: 16px;
  color: #bbb;
}

.hero-bullets {
  margin-bottom: 16px;
}

.hero-bullets li {
  list-style: none;
  padding: 2px 0;
  color: #ddd;
}

.hero-bullets li::before {
  content: "• ";
  color: #ffcc00;
  font-weight: bold;
}

.download-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-block;
  background: linear-gradient(180deg, #ffdd33 0%, #cc9900 100%);
  color: #000 !important;
  font-weight: bold;
  font-size: 11px;
  padding: 6px 16px;
  border: 1px solid #997700;
  text-decoration: none !important;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.dl-btn:hover {
  background: linear-gradient(180deg, #ffee66 0%, #ddaa00 100%);
}

.dl-btn.secondary {
  background: linear-gradient(180deg, #555 0%, #333 100%);
  color: #ccc !important;
  border-color: #222;
  text-shadow: none;
}

.dl-btn.secondary:hover {
  background: linear-gradient(180deg, #666 0%, #444 100%);
}

.dl-size {
  font-size: 9px;
  color: #666;
  font-weight: normal;
}

.hero-right {
  width: 300px;
  flex-shrink: 0;
}

.hero-screenshot {
  background: #111;
  border: 1px solid #333;
  padding: 8px;
  text-align: center;
}

.hero-screenshot .screenshot-frame {
  background: #000;
  border: 2px inset #444;
  padding: 4px;
  display: inline-block;
}

.hero-screenshot .screenshot-frame img {
  display: block;
  max-width: 100%;
  image-rendering: auto;
}

.hero-screenshot .caption {
  font-size: 9px;
  color: #666;
  margin-top: 6px;
  font-style: italic;
}

/* ---- SECTION HEADER ---- */

.section-header {
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
  border: 1px solid #444;
  border-bottom: none;
  padding: 4px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  font-size: 11px;
  font-weight: bold;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header a {
  font-size: 9px;
  color: #999;
}

/* ---- CONTENT PANELS ---- */

.panels {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.panel {
  flex: 1;
  min-width: 0;
}

.panel-body {
  background: #111;
  border: 1px solid #333;
  padding: 10px;
  font-size: 11px;
  line-height: 1.6;
}

/* ---- FEATURES TABLE ---- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.feature-icon {
  color: #ffcc00;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.feature-text {
  color: #bbb;
}

.feature-text strong {
  color: #ddd;
}

/* ---- THEMES SHOWCASE ---- */

.themes-list {
  display: flex;
  gap: 10px;
}

.theme-card {
  text-align: center;
  flex: 1;
}

.theme-card .thumb {
  background: #000;
  border: 2px inset #444;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  font-size: 9px;
  color: #555;
  overflow: hidden;
}

.theme-card .thumb-colors {
  display: flex;
  width: 100%;
  height: 100%;
}

.theme-card .thumb-colors div {
  flex: 1;
}

.theme-card .name {
  font-weight: bold;
  color: #ddd;
  font-size: 10px;
}

.theme-card .author {
  color: #777;
  font-size: 9px;
}

.stars {
  color: #ffcc00;
  font-size: 10px;
  letter-spacing: -1px;
}

.stars .empty {
  color: #444;
}

.downloads-count {
  font-size: 9px;
  color: #777;
}

/* ---- NEWS SECTION ---- */

.news-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #222;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-date {
  font-size: 9px;
  color: #777;
  text-transform: uppercase;
}

.news-title {
  font-weight: bold;
  color: #ffcc00;
  font-size: 12px;
  margin: 2px 0;
}

.news-body {
  color: #aaa;
  line-height: 1.6;
}

.news-body a {
  color: #ff9900;
}

/* ---- SIDEBAR ---- */

.content-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
}

.sidebar-box {
  background: #111;
  border: 1px solid #333;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 10px;
  line-height: 1.6;
}

.sidebar-box h3 {
  font-size: 10px;
  color: #ffcc00;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #333;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box li {
  padding: 2px 0;
}

.sidebar-box li::before {
  content: "» ";
  color: #ffcc00;
}

.system-reqs {
  color: #888;
}

.system-reqs dt {
  color: #aaa;
  font-weight: bold;
}

.system-reqs dd {
  margin-bottom: 4px;
  margin-left: 8px;
}

/* ---- MARQUEE ---- */

.ticker {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 4px 10px;
  margin-bottom: 12px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  color: #ffcc00;
}

.ticker-content {
  display: inline-block;
  animation: ticker 25s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ---- FOOTER ---- */

.footer-dirt {
  height: 6px;
  background: linear-gradient(90deg,
    #2a1f0f 0%, #3d2b10 20%, #2a1f0f 40%,
    #3d2b10 60%, #2a1f0f 80%, #3d2b10 100%);
  border-top: 1px solid #111;
}

.footer {
  background: #0d0d0d;
  border-top: 2px solid #333;
  padding: 12px 0;
  text-align: center;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #777;
  font-size: 10px;
  margin: 0 6px;
}

.footer-links a:hover {
  color: #ffcc00;
}

.footer-links .sep {
  color: #333;
}

.footer-copy {
  font-size: 9px;
  color: #555;
  margin-bottom: 8px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.badge {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 3px 8px;
  font-size: 8px;
  color: #666;
  font-family: "Courier New", monospace;
}

.badge .count {
  color: #ffcc00;
  font-weight: bold;
}

.hit-counter {
  font-family: "Courier New", monospace;
  background: #000;
  color: #0f0;
  padding: 2px 6px;
  border: 1px inset #333;
  font-size: 10px;
  letter-spacing: 2px;
}

/* ---- AD BANNER ---- */

.ad-banner {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 4px;
  text-align: center;
  margin-bottom: 12px;
}

.ad-banner .ad-placeholder {
  background: linear-gradient(135deg, #1a1a0a, #0a1a0a);
  border: 1px dashed #333;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 10px;
  font-style: italic;
}

/* ---- MISC ---- */

.blink {
  animation: blink 1.2s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.new-badge {
  background: #ff0000;
  color: #fff;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 4px;
  vertical-align: super;
  text-transform: uppercase;
}

hr.pointed {
  border: 0;
  height: 1px;
  background: #333;
  margin: 8px 0;
}

/* ---- RESPONSIVE (it's 2004, what's responsive?) ---- */
/* ok fine, just a little */
@media (max-width: 800px) {
  .hero {
    flex-direction: column;
  }
  .hero-right {
    width: 100%;
  }
  .content-row {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .panels {
    flex-direction: column;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .main {
    padding: 12px 8px;
  }
}
