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

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
background: linear-gradient(135deg, #0275d9 0%, #004988 100%);

}

/* Header and Navigation */
header {
position: fixed;
top: 0;
width: 100%;
background: #0275d9;
backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
height: 85px; 
}

nav {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem; 
height: 100%; 
display: flex;
align-items: center;
}

a {
color: #ff8800; 
text-decoration: none;
font-weight:600;
}

a:hover {
color: #ffffff;
}

.footer {
width: 100%;
padding: 0.3rem 1rem;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.7);
text-align: center;
z-index: 10;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
width: 100%;
}

.logo-container {
display: flex;
align-items: center;
padding-top: 10px;
}

.logo {
max-width: 200px;
height: auto;
}

.nav-menu {
display: flex;
list-style: none;
align-items: center;
align-items: stretch; 
height: 100%; 
}

.nav-menu a {
color: #ffffff;
text-decoration: none;
font-weight: 500;
font-size: 1rem;
padding: 0 1rem; 
margin: 0; 
height: 100%; 
display: flex; 
align-items: center; 
transition: background 0.3s ease;
line-height: 1.2; 
}
.nav-menu a.selected {
background: #005eaf;
}

.nav-menu a:hover {
background: rgba(255, 255, 255, 0.2);
}

.nav-menu a.premium {
background: #ff8800;
}

.nav-menu a.premium:hover {
background: #ffa339;
}

/* Hamburger Menu */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 5px;
}

.hamburger span {
width: 25px;
height: 3px;
background: #ffffff;
border-radius: 3px;
transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}

.lists {
min-height: 97vh;
padding: 0rem 2rem 2rem;
flex-direction: column;
align-items: center;
color: #ffffff;
max-width: 75%;
margin: 0 auto;
font-size: large;
line-height: 1.5;
}

img {
max-width: 100%;
padding: 10px;
}

summary {
cursor: pointer; 
font-weight: 600;
margin-left: 0;
padding-left: 0;
margin-bottom: 0.5rem;
}

details:open > summary {
color: #ff8800;
}

.files-list {
margin-left: 2.5rem;
padding-left: 1rem;
}
.files-list li {
margin-bottom: 0.5rem;
}
.files-list a {
color: #ffffff;
}
.files-list a:hover {
color: #ff8800;
}
.files-list .sub-item {
padding-left: 20px;
list-style-type: none;
}

/* Main Content */
.content {
min-height: 97vh;
padding: 6rem 2rem 2rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 75%;
margin: 0 auto;
}

.content h1 {
font-size: 3em;
margin-bottom: 1rem;
color: #ffffff;
text-shadow: 0 2px 3px rgba(0, 0, 0, 1);
}

.content h2 {
font-size: 2.4em;
margin-bottom: 0.75rem;
color: #ffffff;
font-weight: 600;
}

.content h3 {
font-size: 1.8em;
margin-bottom: 0.5rem;
color: #ffffff;
font-weight: 500;
}

.content h1 span,
.content h2 span,
.content h3 span {
font-weight: 700;
}

.content p {
font-size: large;
line-height: 1.5;
color: rgba(255, 255, 255, 0.9);
text-align: justify;
}

.bg-home h1,
.bg-home h1,
.bg-home h2,
.bg-home h3,
.bg-home p {
color: #ffffff;
text-align: center;
}

h1[id], h2[id] {
scroll-margin-top: 100px;
}

/* Mobile Menu */
@media screen and (max-width: 1150px) {
.hamburger {
display: flex;
}

.nav-menu {
position: fixed;
top: -800%;
left: 0;
flex-direction: column;
background: #0275d9;
width: 100%;
height: auto;
text-align: center;
transition: top 0.3s ease;
padding: 2rem 0;
gap: 0;
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
}

.nav-menu.active {
top: 85px;
}

.nav-menu li {
width: 100%;
padding: 1rem 0;
}

.nav-menu a {
width: 100%;
}
.nav-menu a.premium {
background: none;
color: #ff8800;
font-weight: 600;
}
.nav-menu a.selected {
background: none;
color: #005eaf;
font-weight: 600;
}

.lists {
max-width: 90%;
}
.content {
max-width: 90%;
}
}

@media screen and (max-width: 600px) {
img {
margin: auto;
}
.content {
max-width: 100%;
}
.content h1 {
font-size: 2em;
}

.content h2 {
font-size: 1.7em;
}

.content h3 {
font-size: 1.4em;
}

.content p {
font-size: small;;
}
.lists {
max-width: 100%;
font-size: small;
}
.files-list {
font-size: small;
margin-left: 1rem;
padding-left: 1rem;
}
}

/* ── Missing on Arena – card gallery ─────────────────────────────────── */
/* ── Controls bar ───────────────────────────────────────── */
.controls {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem 0; margin-bottom: 1.5rem;
}
.search-wrap {
  position: relative; flex: 1; min-width: 200px; max-width: 400px;
}
.search-wrap input {
  width: 100%;
  padding: 8px 34px 8px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px; color: #fff; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-wrap input:focus {
  border-color: #ff8800; background: rgba(255,255,255,0.22);
}
.search-icon {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5); pointer-events: none;
}
.sort-wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: rgba(255,255,255,0.8);
}
.sort-wrap select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px; color: #fff; padding: 7px 12px;
  font-size: 0.88rem; outline: none; cursor: pointer;
}
.sort-wrap select option { background: #004988; color: #fff; }
.count-badge {
  margin-left: auto; background: #ff8800; color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

/* ── Card grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card-item:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  border-color: #ff8800;
  position: relative;
  z-index: 10;
}
.card-img-wrap {
  width: 100%; aspect-ratio: 63 / 88;
  background: rgba(0,0,0,0.3); overflow: hidden; position: relative;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.3s;
  padding: 0;
}
.card-img-wrap img.loaded { opacity: 1; }
.card-img-wrap.pending::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(0,73,136,0.6) 25%, rgba(2,117,217,0.4) 50%, rgba(0,73,136,0.6) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.card-img-wrap.img-done::after { display: none; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.card-body {
  padding: 8px 10px 10px;
  display: flex; flex-direction: column; gap: 3px; flex: 1;
  background: rgba(0,0,0,0.25);
}
.card-name {
  font-size: 0.83rem; font-weight: 600;
  color: #fff; line-height: 1.3; word-break: break-word;
}
.card-stat-line {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55); margin-top: 1px;
}
.empty-state {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px; color: rgba(255,255,255,0.4);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 10px; }

@media (max-width: 600px) {
  .card-grid {
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
  gap: 8px;
}
.card-item:hover {
  transform: translateY(-2px) scale(1.04);
}
}