/* =====================================================================
   Extem — themes showcase (preview tiles only; wiring comes later).
   Pure-CSS art per tile, theme-aware text. Loads after why.css.
   ===================================================================== */

.showcase {
  padding: 90px 7% 110px;
  text-align: center;
}

.showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0b2c46;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .showcase-title {
  color: #e8e8f2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
[dir="rtl"] .showcase-title {
  font-family: "Tajawal", "Montserrat", sans-serif;
  letter-spacing: 0;
}

.showcase-sub {
  margin-top: 12px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
}
.showcase-sub em {
  font-style: italic;
  font-weight: 700;
  color: var(--primary);
}

.theme-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.theme-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(6, 60, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: not-allowed;
  font: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .theme-pick {
  background: rgba(17, 22, 40, 0.55);
  border-color: rgba(140, 170, 230, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.theme-pick:hover {
  transform: translateY(-4px);
}

.theme-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}

/* Ocean — blue water + sun + glass card */
.art-ocean {
  background: linear-gradient(160deg, #0a4d7a 0%, #1899d6 55%, #7fd4f2 100%);
}
.art-ocean::before {
  content: "";
  position: absolute;
  top: 12%;
  inset-inline-end: 14%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf2 0%, rgba(255, 248, 214, 0) 70%);
}
.art-ocean .art-card {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 44%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* Simple — ivory, one hairline, one mark */
.art-simple {
  background: #f7f5ef;
}
.art-simple::before {
  content: "";
  position: absolute;
  top: 44%;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 2px;
  background: #1c1c28;
}
.art-simple::after {
  content: "";
  position: absolute;
  bottom: 22%;
  left: 18%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1c1c28;
}

/* 3D — dark stage, tilted slab, floor shadow */
.art-t3d {
  background: linear-gradient(150deg, #141428 0%, #26264e 100%);
}
.art-t3d::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 56%;
  height: 52%;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5f9e 0%, #7a5cff 60%, #38d6f5 100%);
  transform: perspective(300px) rotateY(-18deg) rotateX(8deg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}
.art-t3d::after {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 60%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
}

/* Corporate — paper, navy masthead, ruled rows */
.art-corp {
  background:
    repeating-linear-gradient(180deg, transparent 0 10px, #c6cfda 10px 12px) 0 40% / 100% 48% no-repeat,
    #eef1f6;
}
.art-corp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24%;
  background: #0b2c46;
}
.art-corp::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 12%;
  width: 34%;
  height: 10px;
  border-radius: 5px;
  background: #0b2c46;
}

/* Dashboard — dark desk, sidebar, bar chart */
.art-dash {
  background: linear-gradient(90deg, #14141f 0 26%, #23233a 26% 100%);
}
.art-dash::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 52%;
  height: 44%;
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, #38d6f5 0 8px, transparent 8px 15px);
  opacity: 0.9;
}
.art-dash::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 10%;
  width: 52%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}
[dir="rtl"] .art-dash::before,
[dir="rtl"] .art-dash::after {
  right: auto;
  left: 10%;
}

.theme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 2px;
}
.theme-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
[data-theme="dark"] .theme-name {
  color: var(--text-primary);
}
[dir="rtl"] .theme-name {
  font-family: "Tajawal", "Montserrat", sans-serif;
}
.theme-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  color: #1aa3d6;
  background: rgba(56, 214, 245, 0.14);
  border: 1px solid rgba(56, 214, 245, 0.35);
}
[data-theme="dark"] .theme-soon {
  color: #8ab4f8;
  background: rgba(138, 180, 248, 0.12);
  border-color: rgba(138, 180, 248, 0.3);
}

@media (max-width: 560px) {
  .showcase {
    padding: 70px 7% 90px;
  }
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-pick:hover {
    transform: none;
  }
}
