:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa7bf;
  --accent: #7c5cff;
  --accent2: #a58bff;
  --radius: 14px;
  --container-w: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #10172f 0, #050816 55%, #040615 100%);
  color: #e9f0ff;
}

/* ===== Header ===== */

.design-header {
  text-align: center;
  padding: 24px 16px 4px;      /* reduced top/bottom spacing */
}

.design-header h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  color: #a58bff;
  text-shadow: 0 0 18px rgba(124, 92, 255, 0.35);
  letter-spacing: 0.4px;
}

.design-sub {
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Layout ===== */

.design-page {
  padding: 10px 0 60px;
}

.design-container {
  width: 92%;
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  align-items: stretch;             /* cards stretch to full row height */
}

/* 2 cards per row on desktop */
@media (min-width: 900px) {
  .design-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;           /* each row shares the tallest card height */
  }
}

/* ===== Design Card ===== */

.design-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.7);
  height: 100%;                     /* fill the grid row */
  overflow: hidden;
}

/* ===== Image Wrapper ===== */

.design-image-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #020617;              /* subtle frame, won’t be visible because img fills */
}

/* ⭐ Unified image size – same height & width, no black bars */
.design-image-wrap img {
  display: block;
  width: 100%;
  height: 270px;                     /* fixed height so all previews match */
  object-fit: cover;                 /* fill box, nice crop (like ADSMS container) */
  transition: transform 0.5s ease;
}

/* Hover Zoom */
.design-card:hover .design-image-wrap img {
  transform: scale(1.03);
}

/* ===== Text Section ===== */

.design-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;                          /* 🔥 let content fill available height */
}

.design-title {
  margin: 2px 0;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.design-text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Tags */

.design-tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;                 /* 🔥 push tags to the bottom of card */
}

.design-tags li {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.32);
  color: #d7cfff;
}

/* ===== Animation ===== */

.card-animated {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.card-animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Back Button ===== */

.back-btn-wrapper {
  text-align: center;
  margin-top: 34px;
}

.back-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #051029;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.25);
  transition: all 0.25s ease-in-out;
}

.back-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.35);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .design-card {
    padding: 16px;
  }

  .design-image-wrap img {
    height: 210px;
  }
}

@media (max-width: 480px) {
  .design-header h1 {
    font-size: 1.5rem;
  }

  .design-sub {
    font-size: 0.9rem;
  }

  .back-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
/* ===== View Design Button (Add This Only) ===== */

.view-btn {
  width: 100%;
  padding: 10px 14px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.45);
  color: #e8dbff;
  
  transition: all 0.25s ease;
}

.view-btn:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #051029;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.35);
}
.view-btn {
  text-decoration: none !important;
}

.view-btn:hover {
  text-decoration: none !important;
}
