/* ==========================================================================
   HostCS.ro — Cards (games, features, packages, testimonials)
   ========================================================================== */

/* ---------- Why-choose cards (homepage) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 28px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.why-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.why-card h3 {
  font-size: 17px;
  text-transform: uppercase;
}

.why-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

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

/* ---------- Game picker cards (homepage) ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(3.5px);
  transform: scale(1.06);
  transition: transform 0.6s ease;
  z-index: 0;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.game-card.cs16 { background-color: var(--game-cs16-2); background-position: 82% center; }
.game-card.cs16::before { background-position: 82% center; }
.game-card.cs2  { background-color: var(--game-cs2-2); }
.game-card.csgo { background-color: var(--game-csgo-2); }

.game-card.cs16::after { background: linear-gradient(0deg, rgba(8,8,9,0.97) 15%, rgba(8,8,9,0.45) 68%), linear-gradient(160deg, var(--game-cs16-2), transparent 60%); }
.game-card.cs2::after  { background: linear-gradient(0deg, rgba(8,8,9,0.97) 15%, rgba(8,8,9,0.45) 68%), linear-gradient(160deg, var(--game-cs2-2), transparent 60%); }
.game-card.csgo::after { background: linear-gradient(0deg, rgba(8,8,9,0.97) 15%, rgba(8,8,9,0.45) 68%), linear-gradient(160deg, var(--game-csgo-2), transparent 60%); }

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.game-card:hover::before { transform: scale(1.12); }

.game-card > * { position: relative; z-index: 2; }

.game-card .tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(10, 10, 12, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  margin-bottom: auto;
}

.game-card h3 {
  font-size: 26px;
  text-transform: uppercase;
  margin-top: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.game-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.game-card .game-card-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #f0f0f3;
  font-size: 13.5px;
  line-height: 1.45;
}

.game-card-benefit svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent);
}

.game-card-benefit strong { color: #fff; }

.game-card .cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--accent);
}

.game-card .cta svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.game-card:hover .cta svg { transform: translateX(4px); }

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

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), background 0.25s ease, color 0.25s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.1) rotate(-4deg);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.feature-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Package cards ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.package-card.is-featured {
  border-color: var(--accent);
  animation: glow-pulse 3.2s ease-in-out infinite;
}

.package-banner {
  position: relative;
  height: 108px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 14px 20px;
}

.package-banner.cs16 { background-image: linear-gradient(135deg, var(--game-cs16-2), var(--game-cs16)); }
.package-banner.cs2  { background-image: linear-gradient(135deg, var(--game-cs2-2), var(--game-cs2)); }
.package-banner.csgo { background-image: linear-gradient(135deg, var(--game-csgo-2), var(--game-csgo)); }

.package-banner::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(3.5px);
  transform: scale(1.06);
  z-index: 0;
}

.package-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,0.85) 100%);
}

.package-banner .badge {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 5px 10px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  animation: badge-pulse 2.4s ease-out infinite;
}

.package-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.package-name {
  font-size: 19px;
  text-transform: uppercase;
}

.package-price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.package-price .amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.package-price .period {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* Spec rows — icon chip + label/value, one per line */
.package-specs {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--border);
}

.package-specs li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.spec-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.package-card:hover .spec-icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.08);
}

.spec-icon svg { width: 18px; height: 18px; }

.spec-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.spec-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-features {
  margin-top: 16px;
  flex: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 6px 0;
}

.package-features li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--success);
}

.package-body .btn { margin-top: 22px; }

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

/* ---------- Spec strip ---------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-strip div {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
}

.spec-strip div:last-child { border-right: none; }

.spec-strip .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--accent);
}

.spec-strip h4 {
  font-size: 15px;
  text-transform: uppercase;
}

.spec-strip p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip div { border-bottom: 1px solid var(--border); }
}
