/*
Theme Name: Gaming Catalogue
Theme URI: https://example.com/gaming-catalogue
Author: Gaming Catalogue
Description: A cleaned dark purple gaming catalogue theme with portrait game cards, platform badges, featured showcase slider, and custom navigation.
Version: 2.0.1
Text Domain: gaming-catalogue
*/

:root {
  --bg-darkest: #0a0414;
  --bg-body: #110722;
  --bg-header: #14082b;
  --bg-card: #1c0e3a;
  --bg-card-hover: #26144e;
  --bg-section: #180a34;
  --border-purple: #341864;
  --border-light: #49238c;
  --purple-primary: #7c3aed;
  --purple-glow: #8b5cf6;
  --purple-deep: #5b21b6;
  --purple-pill: #6d28d9;
  --badge-red: #ef4444;
  --text-white: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    linear-gradient(90deg, rgba(8, 3, 16, 0.95) 0%, rgba(17, 7, 34, 0.85) 15%, rgba(17, 7, 34, 0.85) 85%, rgba(8, 3, 16, 0.95) 100%);
  color: var(--text-light);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Header */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 2px solid var(--border-purple);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mascot {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.logo-mascot svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.85rem;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0px #2e1065);
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.2);
}

.nav-link.active {
  background: var(--purple-pill);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.5);
}

.nav-icon {
  font-size: 1rem;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 500;
  max-height: 400px;
  overflow-y: auto;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--purple-primary);
  color: #ffffff;
}

/* Header Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.action-btn:hover {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.25);
  transform: scale(1.1);
}

/* Search Bar Popup / Inline */
.search-form-wrap {
  position: relative;
}

.search-input-header {
  background: #190b34;
  border: 1px solid var(--border-purple);
  padding: 6px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
  width: 140px;
  transition: width 0.3s ease, border-color 0.2s;
  outline: none;
}

.search-input-header:focus {
  width: 220px;
  border-color: var(--purple-glow);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 24px 0 60px;
}

/* Featured Top Cards Slider/Grid */
.featured-showcase {
  margin-bottom: 35px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background: #180936;
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-glow);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a1154 0%, #15072e 100%);
  padding: 20px;
  text-align: center;
}

.featured-card-placeholder .game-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.featured-card-placeholder .game-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b1973;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--purple-glow);
  box-shadow: 0 0 8px var(--purple-glow);
}

/* Section Box ("Recently Added") */
.content-box {
  background: var(--bg-section);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.section-pill-header {
  margin-bottom: 22px;
}

.pill-title {
  display: inline-block;
  background: var(--purple-pill);
  color: #ffffff;
  padding: 7px 22px;
  border-radius: 30px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.5);
}

/* Portrait Games Grid */
.portrait-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) {
  .portrait-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .portrait-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .portrait-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Game Card */
.portrait-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.portrait-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-glow);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.portrait-card-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portrait-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portrait-card:hover .portrait-card-media img {
  transform: scale(1.06);
}

.card-placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #26114d 0%, #13072a 100%);
  padding: 14px;
  text-align: center;
}

.card-placeholder-art .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.card-placeholder-art .placeholder-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Badges (Catalogue style!) */
.badge-platform-group {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(10, 4, 20, 0.85);
  backdrop-filter: blur(4px);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.badge-platform-group span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.badge-build-red {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--badge-red);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
  z-index: 10;
}

/* Overlay gradient at bottom of card */
.card-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10, 4, 20, 0.95) 0%, rgba(10, 4, 20, 0.7) 60%, transparent 100%);
  padding: 24px 10px 8px;
  z-index: 5;
}

.card-game-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination-wrap a,
.pagination-wrap span {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.pagination-wrap .current,
.pagination-wrap a:hover {
  background: var(--purple-primary);
  color: #fff;
  border-color: var(--purple-primary);
}

/* Single Game Page (Catalogue style) */
.single-game-container {
  background: var(--bg-section);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 30px;
}

.single-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

@media (max-width: 860px) {
  .single-hero {
    grid-template-columns: 1fr;
  }
}

.single-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-purple);
  background: #190938;
}

.single-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-details h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.meta-grid-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.meta-box-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-purple);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.meta-box-item .lbl {
  font-size: 0.72rem;
  color: #a78bfa;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-box-item .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

.btn-steamrip-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-steamrip-download:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-steamrip-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-purple);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 12px;
}

.btn-steamrip-store:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* System Requirements Box */
.steamrip-sys-req {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
}

.steamrip-sys-req h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 18px;
}

.sys-req-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .sys-req-cols {
    grid-template-columns: 1fr;
  }
}

.sys-col-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.sys-col-card h4 {
  color: var(--purple-glow);
  font-size: 1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-purple);
  padding-bottom: 6px;
}

.sys-col-card ul {
  list-style: none;
  font-size: 0.9rem;
}

.sys-col-card li {
  margin-bottom: 8px;
  color: #cbd5e1;
}

.sys-col-card strong {
  color: #ffffff;
  display: inline-block;
  min-width: 90px;
}

/* Footer */
.site-footer {
  background: var(--bg-header);
  border-top: 2px solid var(--border-purple);
  padding: 35px 0 20px;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-purple);
  font-size: 0.82rem;
}

/* Custom logo */
.custom-logo { max-height: 60px; width: auto; }
.site-logo img { max-height: 60px; width: auto; }
