@charset "utf-8";

/* DOS font (keep your existing file path) */
@font-face {
  font-family: 'Perfect DOS VGA 437';
  src: url('fonts/dosfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #1C003F;
  --panel: #02081F;
  --card: #120022;
  --card2: #0f021f;

  --border: #820BBB;
  --border2: #404;

  --text: #ffffff;
  --muted: #cbb7ff;

  --accent: magenta;
  --accent2: #909;
  --blue: #1694FF;

  --radius: 16px;
  --radius2: 22px;
  --shadow: 0 0 0 2px rgba(130, 11, 187, 0.2);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Perfect DOS VGA 437', sans-serif;

  /* Responsive sizing without losing your big vibe */
  font-size: clamp(16px, 2.3vw, 22px);
  line-height: 1.25;

  padding: clamp(12px, 3vw, 28px);
}

/* Header */
.header {
  max-width: 1200px;
  margin: 0 auto 16px auto;
}

.header__panel{
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.title{
  margin: 0;
  color: var(--accent);
  font-size: clamp(24px, 3.6vw, 42px);
}

.subtitle{
  margin: 8px 0 0 0;
  color: var(--muted);
  opacity: 0.95;
}

/* Layout */
.container{
  max-width: 1200px;
  margin: 0 auto;
}

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* Cards */
.card{
  grid-column: span 12;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card--wide{
  margin-top: 14px;
}

.card__head{
  padding: 12px 14px 8px 14px;
  border-bottom: 1px solid rgba(130, 11, 187, 0.35);
  text-align: center;
}

.card__title{
  margin: 0;
  color: var(--accent2);
  font-size: clamp(18px, 2.8vw, 26px);
  line-height: 1.05;
}

.card__subtitle{
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 0.95em;
}

.card__body{
  padding: 12px 14px 14px 14px;
}

/* Make “cards” go multi-column on larger screens */
@media (min-width: 720px){
  .card{ grid-column: span 6; }
  .card--wide{ grid-column: span 12; }
}
@media (min-width: 980px){
  .card{ grid-column: span 4; }
  .card--wide{ grid-column: span 12; }
}

/* Buttons */
.btn-grid{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px){
  .btn-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px){
  .btn-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Link button style (keeps your existing vibe, just modernized) */
a.btn, button.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  text-decoration: none;

  border: 3px solid var(--border2);
  border-radius: var(--radius2);

  padding: 10px 14px;
  background-color: #220044;

  color: var(--accent);
  cursor: pointer;

  transition: transform 80ms ease, background-color 80ms ease, color 80ms ease;
}

a.btn:hover, button.btn:hover{
  color: #ffffff;
  background-color: #808;
  transform: translateY(-1px);
}

.btn__label{ text-align: center; }

.btn__tag{
  font-size: 0.75em;
  padding: 2px 8px;
  border: 1px solid rgba(255, 0, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0,0,0,0.25);
}

/* Smaller buttons for the search panel */
.btn--small{
  padding: 8px 12px;
}

/* Search */
.search{
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 520px;
}

#searchInput{
  font-family: inherit;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius2);
  background-color: black;
  color: var(--blue);
  font-size: 1em;
}

#searchInput::placeholder{
  color: #5442CE;
  opacity: 1;
}

.search__buttons{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Files */
.files{
  max-width: 900px;
  margin: 0 auto;
}

.files__summary{
  cursor: pointer;
  color: var(--accent);
  list-style: none;
  user-select: none;
  text-align: center;
  padding: 10px 14px;

  border: 2px solid rgba(130, 11, 187, 0.55);
  border-radius: var(--radius2);
  background: rgba(0,0,0,0.25);
}

.files__summary::-webkit-details-marker { display: none; }

.files__list{
  margin-top: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 720px){
  .files__list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.filelink{
  display: block;
  text-decoration: none;
  border: 2px solid rgba(64, 0, 64, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(34, 0, 68, 0.55);
  color: var(--accent);
}

.filelink:hover{
  color: #fff;
  background: rgba(136, 0, 136, 0.55);
}

/* Accessibility helpers */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted{
  color: var(--muted);
  opacity: 0.95;
  text-align: center;
}

/* Focus styles */
*:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 4px var(--accent);
}
