
:root {
  --bg-color: #050505;
  --surface: #0f0f11;
  --surface-hover: #16161a;
  --text-main: #ffffff;
  --text-muted: #8a8a93;
  --accent-1: #af0000;
  --accent-2: rgb(4, 0, 255);
  --font-main: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  position: fixed; top: 0; width: 100%;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100;
}
.nav-content {
  max-width: 1200px; margin: 0 auto; padding: 1.2rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; }
.brand-dot { color: var(--accent-1); }
.nav-links a {
  color: var(--text-muted); text-decoration: none; margin-left: 2rem;
  font-weight: 600; font-size: 0.95rem; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.back-btn { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.2s;}
.back-btn:hover { color: var(--text-main); }

/* Hero */
.hero {
  position: relative; padding: 12rem 2rem 6rem;
  text-align: center; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(112,0,255,0.15) 0%, rgba(255,0,127,0.05) 40%, transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.badge {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 50px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px;}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; max-width: 600px; margin: 0 auto; }

/* Grid & Cards */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; }
.section-header .line { height: 1px; flex-grow: 1; background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }

.davv-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.davv-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px; padding: 2px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
}
.davv-card:hover { transform: translateY(-8px); background: var(--surface-hover); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.davv-card:hover::before { opacity: 1; }

.card-banner { width: 100%; height: 200px; overflow: hidden; position: relative;}
.card-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.davv-card:hover .card-banner img { transform: scale(1.05); }

.card-body { padding: 1.5rem; }
.card-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; font-weight: 600;}

/* Details Page */
.details-page { padding-top: 8rem; max-width: 900px;}
.rom-presentation { margin-bottom: 4rem; }
.rom-banner-large { width: 100%; border-radius: 24px; overflow: hidden; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.3);}
.rom-banner-large img { width: 100%; display: block; }
.rom-title-large { font-size: 3.5rem; font-weight: 900; line-height: 1; margin-bottom: 1rem; letter-spacing: -1px;}
.rom-desc-large { font-size: 1.2rem; color: var(--text-muted); }

/* Release Items */
.releases-list { display: flex; flex-direction: column; gap: 1.5rem; }
.release-item { background: var(--surface); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; transition: background 0.3s;}
.release-item:hover { background: var(--surface-hover); }
.rel-info h4 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 1rem;}
.latest-tag { font-size: 0.7rem; background: var(--accent-1); color: white; padding: 0.2rem 0.6rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800;}
.rel-date { font-size: 0.9rem; color: var(--text-muted); font-weight: 500;}
.rel-actions { display: flex; gap: 1rem; flex-wrap: wrap;}

/* Buttons */
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; font-size: 0.9rem; font-family: inherit;}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-primary { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); border: none; color: white; padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-decoration: none; font-size: 0.9rem; font-family: inherit; box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3); display: flex; align-items: center; gap: 0.5rem;}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 0, 127, 0.5); }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 1; transition: opacity 0.3s; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content { background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; width: 90%; max-width: 800px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(0); transition: transform 0.3s; }
.modal-overlay.hidden .modal-content { transform: translateY(20px); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: white; }
.modal-body { padding: 1.5rem; overflow-y: auto; font-size: 0.95rem; color: var(--text-muted); }
.modal-body a { color: var(--accent-1); }
.modal-body ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.modal-body p { margin-bottom: 1rem; }
.modal-body h4 { color: white; margin: 1.5rem 0 0.5rem; }

footer { text-align: center; padding: 3rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem;}
