/* ── HEXACORE — cards.css (Premium 2026) ── */

/* ── PACK GRID ── */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 32px;
}

/* ── PACK CARD ── */
.pc {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 22px; overflow: hidden; cursor: pointer;
  transition: all 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  position: relative;
  /* mouse glow */
  --mouse-x: -50%; --mouse-y: -50%;
}
/* Iridescent glow spotlight on hover */
.pc::before {
  content: '';
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: radial-gradient(
    circle 280px at var(--mouse-x) var(--mouse-y),
    rgba(167,139,250,0.10) 0%, transparent 75%
  );
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.pc:hover::before { opacity: 1; }
.pc:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(139,92,246,0.45);
  box-shadow:
    0 24px 60px rgba(139,92,246,0.22),
    0 0 0 1px rgba(139,92,246,0.3) inset;
  z-index: 2;
}

/* ── HOT/NEW BADGE ── */
.pc-hot-badge {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
  animation: badgePulse 2s ease-in-out infinite;
}
.pc-hot-badge.hot { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }
.pc-hot-badge.new { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.pc-hot-badge.feat {
  background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3);
}
@keyframes badgePulse { 0%,100%{opacity:1;} 50%{opacity:0.7;} }

/* ── THUMBNAIL ── */
.pc-thumb {
  width: 100%; aspect-ratio: 16/9;
  position: relative; overflow: hidden; background: #0a0615;
  flex-shrink: 0;
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.pc:hover .pc-thumb img { transform: scale(1.07); }
/* Category colour overlay on empty thumbs */
.pc-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background-size: cover;
}

/* ── CARD BODY ── */
.pc-body {
  padding: 18px 20px 20px;
  flex: 1; display: flex; flex-direction: column;
  position: relative; z-index: 2;
}
.pc-sw {
  font-size: 0.67rem; font-weight: 800; color: var(--p3);
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 8px;
}
.pc-name {
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -0.01em;
}
.pc-uploader {
  font-size: 0.82rem; color: var(--t2);
  margin-top: auto; display: flex; align-items: center; gap: 5px;
}
.pc-uploader span { color: var(--p3); font-weight: 600; }
.pc-uploader span:hover { text-decoration: underline; color: var(--p4); }
.pc-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem; color: var(--t3); font-weight: 700;
}
.pc-meta span:last-child { color: var(--p3); letter-spacing: -0.01em; }

/* ── FEATURED CARD ── */
.feat-container { margin-bottom: 64px; }
.feat-card {
  display: flex; flex-direction: row;
  background: var(--card2);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 28px; overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
/* Full card mouse glow */
.feat-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(
    circle 400px at var(--mouse-x, -50%) var(--mouse-y, -50%),
    rgba(139,92,246,0.14) 0%, transparent 75%
  );
  opacity: 0; transition: opacity 0.5s;
}
.feat-card:hover::after { opacity: 1; }

/* Top iridescent line on featured card */
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.7), rgba(232,121,249,0.5), rgba(34,211,238,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmerLine 4s linear infinite; z-index: 2;
}

.feat-thumb { flex: 0 0 480px; max-width: 48%; height: 340px; background: #0a0615; overflow: hidden; position: relative; }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.feat-card:hover .feat-thumb img { transform: scale(1.05); }
.feat-content { flex: 1; padding: 44px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.feat-lbl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(245,158,11,0.12); color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3); border-radius: 50px;
  font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px; width: fit-content;
}
.feat-card h2 {
  font-family: 'Inter', sans-serif; font-size: 2.2rem; font-weight: 900;
  letter-spacing: -0.04em; margin-bottom: 16px; line-height: 1.15;
}
.feat-card p {
  color: var(--t2); font-size: 1.05rem; line-height: 1.65; margin-bottom: 36px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feat-btns { display: flex; gap: 14px; position: relative; z-index: 2; }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px 16px; border-radius: 22px;
  backdrop-filter: blur(12px);
}
.search-box { flex: 1; position: relative; min-width: 180px; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--t3); font-size: 0.9rem;
}
.search-box input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 11px 14px 11px 42px; border-radius: 14px; font-size: 0.92rem;
  transition: 0.2s; color: var(--t1);
}
.search-box input:focus {
  border-color: rgba(139,92,246,0.4);
  background: rgba(139,92,246,0.06);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
  outline: none;
}
.chips-container { flex: 2; overflow: hidden; }
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; padding: 9px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px; font-size: 0.84rem; font-weight: 700; color: var(--t2);
  cursor: pointer; transition: 0.2s; letter-spacing: -0.01em;
}
.chip:hover { background: rgba(255,255,255,0.07); color: var(--t1); border-color: rgba(255,255,255,0.1); }
.chip.on {
  background: linear-gradient(135deg, var(--p1), #9333ea);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}
.sort-box select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 11px 16px; border-radius: 14px; font-size: 0.88rem;
  cursor: pointer; color: var(--t1); transition: 0.2s;
}
.sort-box select:focus { border-color: rgba(139,92,246,0.4); outline: none; }

/* ── GRID SECTION LABEL ── */

.section-hd { text-align: center; margin-bottom: 60px; }
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  letter-spacing: -0.04em; margin-bottom: 16px;
}
.section-sub { color: var(--t2); font-size: 1.1rem; max-width: 580px; margin: 0 auto; line-height: 1.65; }

/* ── RESOURCE DETAIL ── */

.res-header {
  position: relative; padding: 100px 0 70px; min-height: 440px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.res-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, rgba(2,0,10,0.55) 60%, rgba(2,0,10,0.3) 100%);
}
.res-header-content { position: relative; z-index: 2; max-width: 820px; }
.res-badge {
  display: inline-block; padding: 5px 14px;
  background: linear-gradient(135deg, var(--p1), var(--pm));
  border-radius: 7px; font-size: 0.68rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.res-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1.05; margin-bottom: 16px;
}
.res-meta { color: var(--t2); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.5; }
.res-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.res-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; margin-top: 44px; }
.res-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 36px; }
.res-tab {
  background: none; padding: 16px 20px; font-size: 1rem; font-weight: 700;
  color: var(--t3); cursor: pointer; position: relative; transition: 0.2s; border-radius: 10px 10px 0 0;
}
.res-tab:hover { color: var(--t2); background: rgba(255,255,255,0.03); }
.res-tab.on { color: var(--t1); }
.res-tab.on::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--pm));
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 10px rgba(139,92,246,0.5);
}
.res-tab-content { display: none; }
.res-tab-content.on { display: block; animation: fadeIn 0.35s ease; }
.res-desc { font-size: 1.05rem; line-height: 1.85; color: var(--t2); white-space: pre-wrap; margin-bottom: 44px; }
.res-features h3 { font-size: 1.3rem; margin-bottom: 22px; font-weight: 800; letter-spacing: -0.03em; }
.kf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kf-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px; border-radius: 14px; font-weight: 600; font-size: 0.93rem;
  display: flex; align-items: center; gap: 12px; transition: 0.2s;
}
.kf-item:hover { background: rgba(139,92,246,0.07); border-color: rgba(139,92,246,0.2); }
.kf-item::before { content: '✦'; color: var(--p2); font-size: 0.8rem; flex-shrink: 0; }

.files-list { display: flex; flex-direction: column; gap: 10px; }
.f-row {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px 20px; border-radius: 15px;
  display: flex; align-items: center; justify-content: space-between;
  transition: 0.2s;
}
.f-row:hover { background: rgba(139,92,246,0.06); border-color: rgba(139,92,246,0.2); }
.f-info { display: flex; align-items: center; gap: 14px; }
.f-ext {
  padding: 4px 9px; background: rgba(139,92,246,0.12); border-radius: 7px;
  font-size: 0.67rem; font-weight: 900; color: var(--p3); letter-spacing: 0.06em;
}
.f-nm { font-weight: 600; font-size: 0.92rem; }

/* Resource Sidebar */
.side-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px; padding: 24px; margin-bottom: 22px;
}
.stats-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.side-stat { display: flex; flex-direction: column; }
.side-stat-val {
  font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f8f6ff, #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.side-stat-lbl { font-size: 0.62rem; color: var(--t3); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.uploader-card h4 { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t3); margin-bottom: 18px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 100px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-icon { font-size: 3.5rem; filter: drop-shadow(0 0 20px rgba(139,92,246,0.3)); }
.empty-state p { color: var(--t3); font-size: 1.05rem; font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) { .packs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) {
  .feat-card { flex-direction: column; }
  .feat-thumb { flex: none; width: 100%; max-width: 100%; height: 260px; }
  .feat-content { padding: 32px 28px; }
  .feat-card h2 { font-size: 1.9rem; }
  .res-layout { grid-template-columns: 1fr; }
  .kf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .packs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .chips-container { order: 3; }
  .res-actions { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .packs-grid { grid-template-columns: 1fr; }
  .feat-btns { flex-direction: column; }
}
