/* ============================================
   MONARCH LEAK — HOMEPAGE CSS REDESIGN
   ============================================ */

/* General Body Override */
body {
  padding-top: 84px !important;
  background-color: var(--bg-base);
  color: var(--text-primary);
}

/* Main Container width and alignment (Maximized shell to 1760px) */
.container-premium, .home-container, .home-shell {
  max-width: 1760px;
  width: min(1760px, calc(100vw - 32px));
  margin: 0 auto;
  box-sizing: border-box;
}

/* Home Layout Grids */
.home-page {
  padding-bottom: 60px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Floating Top Navbar (Copia Esatta Immagine 1 - 100000x meglio) */
.navbar-custom, .navbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.navbar-custom__inner, .navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  width: min(1760px, calc(100vw - 32px));
  margin: 0 auto;
  background: rgba(11, 13, 20, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 0 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.5), 
    0 0 16px rgba(124, 58, 237, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.navbar-custom--scrolled__inner, .navbar--scrolled__inner {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 
    0 12px 36px rgba(0,0,0,0.6), 
    0 0 22px rgba(124, 58, 237, 0.25);
}

.navbar-custom__links, .navbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

/* Link Navbar con icone e design premium come da immagine 1 */
.navbar-custom__link, .navbar__link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  color: #9294a6;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-custom__link:hover, .navbar__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

/* Active Link con Bordo Viola Neon e Glow Viola */
.navbar-custom__link--active, .navbar__link--active {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.15) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.6) !important;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.3);
}

/* Login Button Premium con shimmer waves */
.navbar-login-btn {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.navbar-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: login-shimmer 6s infinite ease-in-out;
}

@keyframes login-shimmer {
  0% { left: -150%; }
  15% { left: 150%; }
  100% { left: 150%; }
}

.navbar-login-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.55), 0 4px 12px rgba(0,0,0,0.3);
}

.navbar-login-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

/* Capsula Utente Loggato (Copia Esatta Immagine 2 - 100000x meglio) */
.nav-user-capsule {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 16px 6px 8px;
  border-radius: 30px;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  background: rgba(11, 13, 20, 0.75);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  height: 38px;
  box-sizing: border-box;
}

.nav-user-capsule:hover {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 
    0 0 22px rgba(124, 58, 237, 0.35), 
    0 6px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.nav-user-capsule:active {
  transform: scale(0.98);
}

.nav-user-capsule__avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-user-capsule__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.6);
  object-fit: cover;
  box-sizing: border-box;
}

.nav-user-capsule__badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #0b0d14;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  box-sizing: border-box;
}

.nav-user-capsule__username {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.nav-user-capsule__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin-left: 2px;
}

.nav-user-capsule__arrow {
  font-size: 11px;
  color: #c084fc;
  font-weight: 900;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 0 3px rgba(124, 58, 237, 0.6));
  display: flex;
  align-items: center;
  margin-left: 4px;
}

/* Mostra il dropdown menu al click (JS toggles active) */
.dropdown-menu.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HERO SECTION (Imponente e alta come da screenshot) */
.home-hero {
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  background-color: var(--bg-base);
  background-image: 
    linear-gradient(90deg, #06070b 20%, rgba(6, 7, 11, 0.4) 45%, rgba(6, 7, 11, 0.4) 55%, rgba(6, 7, 11, 0.8) 80%, #06070b 100%),
    url('/images/hero_illustration.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  box-sizing: border-box;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 120px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.home-hero__content {
  text-align: left;
}

.home-hero__center-spacer {
  height: 100%;
  min-height: 1px;
}

.home-hero__badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 16px;
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
}

.home-hero__title {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.home-hero__title-gradient {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.home-hero__description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 32px 0;
  font-weight: 500;
}

.home-hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Stats Counter */
.home-hero__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  padding: 16px 24px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: fit-content;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(124, 58, 237, 0.05);
}

.home-hero__stat-item {
  text-align: left;
}

.home-hero__stat-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
}

.home-hero__stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.home-hero__stat-divider {
  width: 1px;
  background: var(--border-soft);
}

/* TRENDING WIDGET COMPATTO */
.home-trending {
  background: rgba(11, 13, 20, 0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
  width: 100%;
}

.home-trending__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.home-trending__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.home-trending__title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}

.home-trending__view-all {
  font-size: 0.68rem;
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(139, 92, 246, 0.05);
}

.home-trending__view-all:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #a78bfa;
  color: #ffffff;
}

.home-trending__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-trending__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
  gap: 10px;
}

.home-trending__item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Primo classificato con glow viola */
.home-trending__item--first {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.03) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.12), inset 0 0 8px rgba(124, 58, 237, 0.1);
}

.home-trending__item--first:hover {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.22);
}

/* Box per il Numero del Ranking */
.home-trending__rank-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.home-trending__rank-box--first {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(124, 58, 237, 0.15);
}

.home-trending__sparkle {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 8px;
  color: #c084fc;
  filter: drop-shadow(0 0 2px #c084fc);
}

/* Immagine Panoramica */
.home-trending__img {
  width: 60px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.home-trending__info {
  flex: 1;
  min-width: 0;
}

.home-trending__item-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.home-trending__item-badges {
  display: flex;
  gap: 5px;
  align-items: center;
}

.home-trending__badge {
  font-size: 6.5px;
  font-weight: 800;
  padding: 2px 4.5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.home-trending__badge--featured {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.home-trending__badge--working {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Pill delle Visualizzazioni a Destra */
.home-trending__views-pill {
  font-size: 0.68rem;
  color: #9ca3af;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  transition: all 0.2s;
}

.home-trending__item:hover .home-trending__views-pill {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

.home-trending__footer {
  margin-top: 12px;
  text-align: center;
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* SEARCH ROW V2 (Non invasiva, staccata e centrata - 100000x meglio) */
.home-search-row {
  margin-top: 36px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-search__field {
  display: flex;
  gap: 12px;
  background: rgba(11, 13, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 6px 12px 6px 20px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 58px;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
}

.home-search__field:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 
    0 12px 36px rgba(0,0,0,0.5), 
    0 0 24px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}

.home-search__input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}

.home-search__input:focus {
  outline: none;
}

.home-search__btn {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 10px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.home-search__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
  border-color: rgba(255,255,255,0.3);
}

.home-search__btn:active {
  transform: translateY(0) scale(0.97);
}

/* PORTAL MAIN LAYOUT GRID (Responsive & Spinta a Sinistra) */
.home-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: clamp(220px, 14vw, 300px) minmax(0, 1fr) 240px;
  gap: clamp(18px, 1.5vw, 28px);
  align-items: start;
}

.home-sidebar-left {
  width: 100%;
  min-width: 0;
}

.home-main {
  min-width: 0;
}

.home-sidebar-right {
  width: 100%;
}

/* PREMIUM CATEGORIES WIDGET (REPLICA FOTO) */
.categories-widget {
  background: rgba(11, 13, 20, 0.80);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.categories-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.categories-widget__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.categories-widget__title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.categories-widget__icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #a78bfa;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.categories-panel__title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.categories-panel__view-all {
  font-size: 12px;
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(139, 92, 246, 0.05);
}

.categories-panel__view-all svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-panel__view-all:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #a78bfa;
  color: #ffffff;
}

.categories-panel__view-all:hover svg {
  transform: translateX(3px);
}

/* Category row layout - 4 Columns Grid */
.category-row {
  min-height: 46px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 16px;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
  transition: all 0.22s ease;
  box-sizing: border-box;
}

.category-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.category-row--selected {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.03) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.12), inset 0 0 8px rgba(124, 58, 237, 0.1);
}

.category-row--selected:hover {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.22);
}

.category-item__icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Colori specifici delle icone */
.category-row:nth-child(1) .category-item__icon-box { background: rgba(124, 58, 237, 0.15); border-color: rgba(124, 58, 237, 0.3); }
.category-row:nth-child(2) .category-item__icon-box { background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.25); }
.category-row:nth-child(3) .category-item__icon-box { background: rgba(14, 165, 233, 0.12); border-color: rgba(14, 165, 233, 0.25); }
.category-row:nth-child(4) .category-item__icon-box { background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.25); }
.category-row:nth-child(5) .category-item__icon-box { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.25); }

.category-item__name {
  font-size: 0.85rem;
  font-weight: 750;
  color: #ffffff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-row--selected .category-item__name {
  color: #c084fc;
}

/* Pill del conteggio delle categorie */
.category-item__count {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.category-item__arrow {
  font-size: 10px;
  color: #6b7280;
  font-weight: 900;
  transition: transform 0.2s;
  text-align: right;
}

.category-row:hover .category-item__arrow {
  color: #ffffff;
  transform: translateX(2px);
}

.category-row--selected .category-item__arrow {
  color: #a78bfa;
}

/* COMMUNITY STATS WIDGET */
.glass-widget__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 10px;
}

.glass-widget__title {
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.glass-widget__link {
  font-size: 0.7rem;
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 700;
}

/* SECTIONS AND HEADERS */
.home-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.home-section + .home-section {
  margin-top: 44px;
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.home-section__title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-section__subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.home-section__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-section__arrow {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.home-section__arrow:hover {
  color: var(--text-primary);
}

/* RESOURCE GRID */
.featured-game-grid,
.recent-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
}

/* GAME CARD SYSTEM (V2: Altezza ridotta a 300px, Immagine 150px al 50% di altezza fissa) */
.game-card {
  display: flex;
  flex-direction: column;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0c13;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s, box-shadow 0.25s;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 16px rgba(124, 58, 237, 0.12);
}

.game-card__glow-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent));
  z-index: 10;
}

.game-card__media {
  position: relative;
  width: 100%;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  overflow: hidden;
  background: #0a0b12;
  flex-shrink: 0;
}

.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-card__img {
  transform: scale(1.03);
}

.game-card__badges-left,
.game-card__badges-right {
  position: absolute;
  top: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.game-card__badges-left {
  left: 10px;
}

.game-card__badges-right {
  right: 10px;
}

.game-card__badge {
  color: #ffffff;
  font-weight: 800;
  font-size: 8px;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 4px rgba(124, 58, 237, 0.15);
}

.game-card__badge--featured {
  background: var(--accent);
}

.game-card__badge--vip {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000000;
}

.game-card__badge--status {
  background: var(--success);
}

.game-card__badge--status-patched {
  background: var(--danger);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  justify-content: space-between;
}

.game-card__title {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}

.game-card__chip {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f92a3;
}

.game-card__chip--category {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  color: #a78bfa;
}

.game-card__chip--version {
  margin-left: auto;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
  color: #a78bfa;
  text-transform: lowercase;
}

.game-card__description {
  margin-top: 8px;
  color: #8c8e9c;
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 30px;
}

/* Divisore orizzontale grigio */
.game-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: auto;
  margin-bottom: 8px;
}

.game-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) 40px;
  gap: 8px;
  align-items: center;
}

.game-card__stat {
  display: flex;
  flex-direction: column;
}

.game-card__stat-value {
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.game-card__stat-label {
  margin-top: 3px;
  color: #5d5f70;
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Premium Download Button Circolare viola (40px x 40px) */
.game-card__download {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(109,40,217,0.95));
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  flex-shrink: 0;
  border: none;
}

.game-card__download svg {
  width: 18px;
  height: 18px;
}

.game-card__download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6), 0 0 12px rgba(124, 58, 237, 0.3);
}

.game-card__download:active {
  transform: translateY(0) scale(0.95);
}

/* Bottom Feature Strip widget */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(15, 17, 26, 0.4);
  border: 1px solid var(--border-soft);
  padding: 20px 24px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  margin-top: 60px;
}

.feature-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-strip__icon {
  font-size: 1.2rem;
  color: var(--accent-hover);
}

.feature-strip__title {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-primary);
}

.feature-strip__desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* RESPONSIVE LAYOUT CONSTRAINTS */
@media (max-width: 1200px) {
  .featured-game-grid,
  .recent-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 36px 0;
  }
  .home-hero__inner {
    grid-template-columns: 1fr 1fr;
  }
  .home-hero__center-spacer {
    display: none;
  }
}

@media (max-width: 1599px) {
  .home-layout {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 20px;
  }
}

@media (max-width: 1450px) {
  .home-layout {
    grid-template-columns: clamp(220px, 14vw, 300px) minmax(0, 1fr);
  }
  .home-layout > .home-sidebar-right {
    display: none;
  }
}

@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-layout > .home-sidebar-left {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
  }
  .home-hero__inner > div:last-child {
    display: none;
  }
  .home-search-row {
    grid-template-columns: 1fr;
  }
  .home-search__notice {
    display: none;
  }
}

@media (max-width: 576px) {
  .featured-game-grid,
  .recent-game-grid {
    grid-template-columns: 1fr;
  }
  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}
