/* ==========================================================================
   Mods Page Styles - GBA-Gen1Recomp
   ========================================================================== */





/* Mods Page Header Section */
.mods-hero-section {
  padding: 1rem 0 2rem;
}
.mods-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-mint);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.mods-pill-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-mint);
}
.mods-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.mods-subtitle {
  font-size: 1.05rem;
  color: #9ca3af;
  max-width: 760px;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.mods-updated-date {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Advertisement Banners */
.ad-banner-horizontal {
  width: 100%;
  background: linear-gradient(90deg, #131a15 0%, #17221b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ad-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.2rem;
}
.ad-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ad-brand-logo {
  background: #ffda00;
  color: #000;
  font-weight: 900;
  font-style: italic;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.ad-text-main {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}
.ad-text-sub {
  color: #facc15;
  font-size: 0.9rem;
  font-weight: 600;
}
.ad-btn {
  background: #ff0043;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, background-color 0.15s;
}
.ad-btn:hover {
  background: #e6003c;
  transform: scale(1.02);
}

/* Sidebar & Popular Grid Layout */
.popular-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .popular-layout-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar-ad {
    display: none;
  }
}

.popular-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.popular-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.popular-h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.2rem 0;
}
.popular-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 540px;
  line-height: 1.45;
}
.browse-all-btn {
  background: #172019;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.browse-all-btn:hover {
  background: #202d23;
  border-color: var(--accent-mint);
  color: #ffffff;
}

/* Sidebar Ad */
.sidebar-ad {
  background: linear-gradient(180deg, #111813 0%, #0d120e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  position: sticky;
  top: 90px;
  text-align: center;
}
.sidebar-ad-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.sidebar-ad-brand span {
  color: #0088ff;
}
.sidebar-ad-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.sidebar-ad-img {
  width: 100%;
  max-width: 180px;
  margin: 0.75rem auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.sidebar-ad-btn {
  display: block;
  width: 100%;
  background: #0088ff;
  color: #ffffff;
  padding: 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s;
}
.sidebar-ad-btn:hover {
  background: #0077e6;
}

/* Featured Card #1 (VoxelMod) */
.featured-mod-card {
  background: linear-gradient(180deg, #121c15 0%, #0c130e 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.mod-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.badge-num {
  background: #17241a;
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--accent-mint);
  font-weight: 800;
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-tag-visuals, .badge-tag-graphics-ui {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-tag-quality-of-life {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-tag-gameplay {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-tag-randomizer {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-tag-difficulty {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-tag-quests-content {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.badge-tag-translation {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-tag-tools-online {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.badge-tag-experimental {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.mod-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem;
}
.mod-author {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.mod-desc {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Features List */
.mod-features-block {
  margin: 0.85rem 0;
}
.mod-features-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.mod-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mod-features-list li {
  font-size: 0.85rem;
  color: #e5e7eb;
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.4;
}
.mod-features-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.6rem;
  color: var(--accent-mint);
}

/* Callout Boxes inside cards */
.mod-callout-box {
  background: rgba(18, 24, 20, 0.8);
  border-left: 3px solid;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.45;
}
.mod-callout-compat {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.06);
  color: #fef08a;
}
.mod-callout-install {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
  color: #bbf7d0;
}
.mod-callout-box strong {
  font-weight: 700;
}

/* Buttons in Cards */
.mod-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.mod-btn {
  background: #17212b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.mod-btn:hover {
  background: #1e2d3d;
  border-color: #60a5fa;
  color: #ffffff;
}

/* Main Grid for Cards 2-10 & Directory Cards */
.mods-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .mods-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .mods-popular-grid {
    grid-template-columns: 1fr;
  }
}

.mod-card {
  background: #111713;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mod-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Full Directory Section */
.directory-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.directory-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.directory-header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Search & Filter Controls Bar */
.directory-controls-bar {
  background: #101612;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.controls-inputs-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}
.control-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.control-field label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.control-input, .control-select {
  background: #090e0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s;
}
.control-input:focus, .control-select:focus {
  border-color: var(--accent-mint);
}
.count-text {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 500;
  align-self: flex-end;
  padding-bottom: 0.4rem;
  white-space: nowrap;
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}
@media (max-width: 1024px) {
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
}
