/* ===============================
   VoltNexis FileHost — GTA VC Mods Hub
   Crimson–Teal Aurora UI
   styles.css
================================= */

:root {
  --bg: #0b0f14;
  --card: rgba(20, 28, 35, 0.8);
  --glass: rgba(255, 255, 255, 0.05);

  --text: #f3f4f6;
  --muted: #9ca3af;

  --brand: #06d6a0;
  --brand2: #ef4444;
  --success: #14ffb4;

  --radius: 22px;
  --shadow: 0 0 40px rgba(6, 214, 160, 0.15);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, rgba(239, 68, 68, 0.15), transparent 55%),
              radial-gradient(circle at right, rgba(6, 214, 160, 0.15), transparent 60%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1250px;
  margin: auto;
  padding: 18px;
}

/* ===============================
   HEADER
================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(12, 18, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.site-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
}

.header-link {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: var(--brand);
  transition: 0.25s;
}

.header-link:hover {
  background: rgba(6, 214, 160, 0.25);
}

.shot-more {
  position: relative;
}

.shot-more span {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   HERO
================================= */

.hero {
  padding: 55px 0 25px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 12px;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Controls */
.controls {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search,
.filter {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 28, 35, 0.8);
  color: var(--text);
  outline: none;
  font-size: 1rem;
  transition: 0.25s;
}

.search:focus,
.filter:focus {
  border-color: rgba(6, 214, 160, 0.55);
  box-shadow: var(--shadow);
}

/* ===============================
   SECTIONS
================================= */

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ===============================
   FEATURED MOD
================================= */

.featured-card {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(
    140deg,
    rgba(6, 214, 160, 0.15),
    rgba(239, 68, 68, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

/* ===============================
   MOD GRID
================================= */

.mods-grid {
  display: grid;
  gap: 18px;
}

/* Desktop */
@media (min-width: 900px) {
  .mods-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile = 2 per row */
@media (max-width: 600px) {
  .mods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mod Card */
.mod-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.28s;
  cursor: pointer;
}

.mod-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: var(--shadow);
}

.mod-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.mod-body {
  padding: 15px;
  display: grid;
  gap: 8px;
}

.mod-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.mod-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.creator-row img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.mod-cover-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

/* Hover Title */
.mod-hover-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
}

.mod-cover-wrap:hover .mod-hover-title {
  opacity: 1;
  transform: translateY(0);
}

/* Verified Badge */
.verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand2);
  color: white;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 800;
}

/* ===============================
   MOD DETAIL PAGE
================================= */

.mod-detail-card {
  margin-top: 25px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mod-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.mod-cover {
  width: 100%;
  border-radius: var(--radius);
  max-height: 340px;
  object-fit: cover;
}

.mod-info h1 {
  font-size: 2rem;
  font-weight: 900;
}

.mod-desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

/* Creator Box */
.creator-box {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.creator-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
}

.creator-name {
  font-weight: 800;
}

.creator-link {
  font-size: 0.9rem;
  color: var(--brand);
}

/* Buttons */
.download-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  flex: 1;
  min-width: 180px;
  padding: 14px;
  border-radius: 16px;
  font-weight: 900;
  text-align: center;
  transition: 0.25s;
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  color: #0b0f14;
}

.btn.primary:hover {
  transform: scale(1.03);
}

.btn.secondary {
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: var(--brand);
}

/* Screenshots */
.screenshots-section {
  margin-top: 28px;
}

.screenshots-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.screenshot {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Livery Preview */
.livery-preview-box {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.livery-preview {
  margin-top: 12px;
  max-width: 420px;
  width: 100%;
  border-radius: 18px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 35px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* Responsive Fix */
@media (max-width: 880px) {
  .mod-hero {
    grid-template-columns: 1fr;
  }
}

/* More Button */
.more-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

/* Mobile Screenshots: 2 per row */
@media (max-width: 600px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Overlays & Viewer */
.shot-more {
  position: relative;
  cursor: pointer;
}

.shot-more span {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  border-radius: 14px;
}

.viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.viewer-box img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 18px;
}

/* Gallery */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  overflow-y: auto;
}

.gallery-box {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 14px;
  cursor: pointer;
}

.close-btn {
  margin-top: 20px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

/* Upload Form */
.upload-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.upload-form input,
.upload-form textarea {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(20,28,35,0.7);
  color: white;
  font-size: 1rem;
  outline: none;
}

.upload-form textarea {
  min-height: 110px;
  resize: vertical;
}