/* ====== RESET / BASE ====== */
* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #0c1016, #0a0f14 80%);
  color: #dbe9ff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ====== ACCENTS ====== */
:root {
  --accent: #00bfff;
  --accent-glow: 0 0 12px #00bfff66;
  --bg-dark: #0e141b;
  --bg-panel: #151b23;
  --border: #1f2b38;
}

/* ====== GLOBAL LINK / TEXT ====== */
a { color: var(--accent); text-decoration: none; transition: 0.25s ease; }
a:hover { color: #5fd6ff; text-shadow: 0 0 10px #00bfff99; }
p { line-height: 1.6; }
h2, h3, h4, h5 { font-weight: 600; color: #e7f5ff; }

/* ====== HEADER ====== */
.topbar {
  background: rgba(15, 20, 27, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 50px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 50;
  animation: fadeDown 0.6s ease;
}
.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 15px #00bfff, 0 0 30px #0077aa;
  letter-spacing: 0.5px;
}
.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  color: #dcefff;
  position: relative;
  padding-bottom: 3px;
}
.topbar nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  transition: width 0.3s ease;
}
.topbar nav a:hover:after { width: 100%; }

/* ====== PAGE WRAPPERS ====== */
.wrap-80-20, .form-page {
  flex: 1;
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 30px;
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: fadeUp 0.8s ease;
}
@media (max-width: 1100px) {
  .wrap-80-20, .form-page { grid-template-columns: 1fr; }
}

/* ====== SEARCH BAR ====== */
.searchbar {
  margin: 0 0 25px;
  display: flex;
  justify-content: center;
}
.searchbar input {
  width: 100%;
  max-width: 900px;
  background: #121a24;
  border: 1px solid #243447;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: #eaf3ff;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
  transition: 0.3s ease;
}
.searchbar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px #00bfff55;
}

/* ====== MODS LIST ====== */
.mods-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mod-panel {
  background: var(--bg-panel);
  border: 1px solid #1b2735;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  padding: 18px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.mod-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px #00bfff33;
}
.thumb {
  flex: 0 0 260px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.thumb img {
  width: 260px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s ease;
}
.thumb img:hover { transform: scale(1.05); }
.info h3 a { color: var(--accent); }
.desc { color: #9fb5cc; margin: 8px 0; }
.meta { color: #a4bdd8; font-size: 0.92rem; display: flex; gap: 10px; }
.tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.tag {
  background: #0e1d2a;
  border: 1px solid #00bfff55;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 0.85rem;
  color: #9be1ff;
  transition: 0.2s ease;
}
.tag:hover {
  background: #00bfff33;
  color: #fff;
  box-shadow: 0 0 10px #00bfff66;
}
.empty {
  text-align: center;
  padding: 40px;
  background: #101820;
  border: 1px dashed #28405a;
  border-radius: 12px;
  color: #8da3bb;
}

/* ====== SIDEBAR ====== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebox {
  background: #141c26;
  border: 1px solid #1e2d3d;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: 0.25s ease;
}
.sidebox:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px #00bfff22;
}
.sidebox h4 {
  color: var(--accent);
  border-bottom: 1px solid #213043;
  padding-bottom: 6px;
  margin: 0 0 12px;
}
.sidebox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebox li {
  margin: 8px 0;
}
.sidebox li a {
  display: flex;
  justify-content: space-between;
  color: #d7e6f5;
  transition: 0.2s;
}
.sidebox li a:hover { color: var(--accent); }

/* ====== FORMS ====== */
.form-card {
  background: var(--bg-panel);
  border: 1px solid #1b2735;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  padding: 25px 20px;
  transition: 0.3s;
}
.form-card h2 { color: var(--accent); margin-top: 0; }
label { font-weight: 500; color: #cde8ff; display: block; margin: 8px 0 4px; }
input[type=text], input[type=password], input[type=email],
select, textarea {
  width: 100%;
  background: #121a24;
  border: 1px solid #263646;
  border-radius: 8px;
  color: #e9f4ff;
  padding: 12px;
  font-size: 15px;
  transition: 0.25s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px #00bfff66;
}
textarea { resize: vertical; min-height: 130px; }

/* ====== BUTTONS ====== */
.btn, button, input[type=submit] {
  background: linear-gradient(135deg, #00bfff, #0094cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 0 12px #00bfff55;
}
.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px #00bfff99;
  background: linear-gradient(135deg, #00c8ff, #00a6dd);
}

/* ====== FOOTER ====== */
footer {
  background: #0f141b;
  border-top: 1px solid #142131;
  padding-top: 40px;
  color: #9fb1c4;
}
.footer-content {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 24px;
}
footer h5 {
  color: var(--accent);
  margin: 0 0 10px;
}
footer a:hover {
  text-shadow: 0 0 10px #00bfff99;
}
.copy {
  text-align: center;
  color: #6b7a8c;
  padding: 20px 0 25px;
  border-top: 1px solid #15202b;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
