/* Senumy Members product cards */
:root {
  --text: #050505;
  --muted: #65676b;
}

.ea-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ea-card {
  --card-color: #6b7280;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 214px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e8eaef;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(22, 24, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ea-card--gold,
.ea-card--volt,
.ea-card--teal,
.ea-card--indigo,
.ea-card--rose,
.ea-card--violet,
.ea-card--amber,
.ea-card--mint,
.ea-card--sky {
  --card-color: #6b7280;
}

.ea-card--gold {
  overflow: hidden;
  border-color: #ead7a6;
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  transform-style: preserve-3d;
  box-shadow: 0 7px 0 #bd8d2d, 0 13px 24px rgba(94, 61, 7, .2), inset 0 1px 0 #fff;
}

.ea-card--gold:hover {
  border-color: #d5ad52;
  box-shadow: 0 8px 0 #9b6b12, 0 22px 38px rgba(133, 87, 9, .28), inset 0 1px 0 #fff;
}

.ea-card--gold::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d5ad52, transparent);
  content: "";
}

.ea-card--gold .ea-card__glow {
  display: block;
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.ea-card--gold .ea-card__glow::after {
  position: absolute;
  z-index: 5;
  top: -40%;
  bottom: -40%;
  left: -85%;
  width: 42%;
  background: linear-gradient(105deg, transparent 5%, rgba(255, 255, 255, .42) 48%, transparent 90%);
  content: "";
  pointer-events: none;
  transform: rotate(12deg);
  transition: left .65s ease;
}

.ea-card--gold:hover .ea-card__glow::after {
  left: 145%;
}

.ea-card--gold .ea-card__media,
.ea-card--gold .ea-card__body {
  position: relative;
  z-index: 1;
}

.ea-card--gold .ea-card__media {
  background: linear-gradient(180deg, #fffdf7, #fff8e7);
}

.ea-card--gold .member-card-description {
  color: #80682f;
}

.ea-card--gold .member-card-actions .member-button {
  border-color: #b7831d;
  background: linear-gradient(135deg, #d9b35a, #a87515);
  color: #fffdf7;
  box-shadow: 0 5px 12px rgba(167, 117, 21, 0.2);
}

.ea-card:hover,
.ea-card:focus-within,
.ea-card.is-ripped {
  z-index: 4;
  overflow: visible;
  transform: translateY(-4px);
  border-color: #d7dbe3;
  box-shadow: 0 12px 24px rgba(22, 24, 42, 0.08);
  color: inherit;
}

.ea-card__glow {
  display: none;
}

.ea-card__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 14px 6px;
  background: #ffffff;
}

.ea-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 16px;
}

.ea-card .member-card-meta {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0;
  margin: 2px 0 0;
  overflow: hidden;
}

.ea-card .member-card-meta .member-meta-badge {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ea-card .member-card-meta .member-updated {
  flex: 0 0 auto;
}

.ea-card .member-card-description,
.ios-theme-card .member-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.ea-card__download-zone {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ea-box-wrap {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.ea-box-brand-logo {
  position: absolute;
  z-index: 4;
  top: 77%;
  left: calc(100% + 7px);
  width: 75px;
  height: auto;
  max-height: 31.25px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ea-rip__pane--left {
  overflow: visible;
  z-index: 3;
}

.ea-rip__pane--right {
  z-index: 2;
}

.ea-rip__pane--right .ea-box-brand-logo {
  left: 7px;
}


.ea-card:hover .ea-rip__sheet,
.ea-card:focus-within .ea-rip__sheet,
.ea-card.is-ripped .ea-rip__sheet {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.2s ease 0.12s, transform 0.35s ease 0.08s, visibility 0s linear 0.08s;
}

.ea-card:hover .ea-rip__pane--left,
.ea-card:focus-within .ea-rip__pane--left,
.ea-card.is-ripped .ea-rip__pane--left {
  --rip-clip: polygon(0 0, 100% 0, 88% 12.5%, 100% 25%, 88% 37.5%, 100% 50%, 88% 62.5%, 100% 75%, 88% 87.5%, 100% 100%, 0 100%);
  transform: translate3d(-68%, 0, 0);
}

.ea-card:hover .ea-rip__pane--right,
.ea-card:focus-within .ea-rip__pane--right,
.ea-card.is-ripped .ea-rip__pane--right {
  --rip-clip: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 87.5%, 0 75%, 12% 62.5%, 0 50%, 12% 37.5%, 0 25%, 12% 12.5%);
  transform: translate3d(68%, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .ea-rip__pane,
  .ea-rip__sheet,
  .ea-card:hover .ea-rip__sheet,
  .ea-card:focus-within .ea-rip__sheet,
  .ea-card.is-ripped .ea-rip__sheet {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .ea-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ea-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .ea-card-grid {
    grid-template-columns: 1fr;
  }
}
