/* ================================================
   WEBSITE SHOWCASE — matches tomasomarketing.net
   ================================================ */

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ──────────────────────────────────────── */

.ws-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s;
}

.ws-card:hover { border-color: rgba(255,255,255,0.2); }

.ws-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.7s, transform 0.7s;
}

.ws-card:hover > img { opacity: 1; transform: scale(1.05); }

.ws-card-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.ws-badge {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #00000B, rgba(0,0,11,0.4) 50%, transparent);
  opacity: 0.9;
  z-index: 5;
  transition: opacity 0.3s;
}

.ws-card:hover .ws-card-gradient { opacity: 0.75; }

.ws-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 10;
  transform: translateY(4px);
  transition: transform 0.5s;
}

.ws-card:hover .ws-card-bottom { transform: translateY(0); }

.ws-card-type {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ws-card-client {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ws-card-bottom h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

/* ── Modal ─────────────────────────────────────── */

.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ws-modal.open { opacity: 1; visibility: visible; }

.ws-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,11,0.95);
  backdrop-filter: blur(20px);
}

.ws-modal-box {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 90vh;
  background: #0a0a0a;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s;
}

.ws-modal.open .ws-modal-box { transform: scale(1) translateY(0); }

.ws-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.ws-modal-close:hover { background: rgba(255,255,255,0.1); }

/* ── Media side ────────────────────────────────── */

.ws-modal-media {
  width: 60%;
  height: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.ws-media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.ws-media-slide.active { opacity: 1; z-index: 1; }

.ws-media-slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.ws-media-yt {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.ws-media-yt > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
}

.ws-media-prev,
.ws-media-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.ws-modal-media:hover .ws-media-prev,
.ws-modal-media:hover .ws-media-next { opacity: 1; }

.ws-media-prev { left: 16px; }
.ws-media-next { right: 16px; }

.ws-media-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.ws-dot.active { background: #fff; width: 24px; }

/* ── Content side ──────────────────────────────── */

.ws-modal-content {
  width: 40%;
  padding: 48px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ws-modal-client {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.ws-modal-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 0 0 24px;
}

.ws-modal-desc {
  font-size: 1.05rem;
  color: rgba(245,245,245,0.9);
  line-height: 1.7;
  margin: 0 0 32px;
}

.ws-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.ws-spec-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
}

.ws-spec-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ws-spec-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.4;
}

.ws-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-scope-tags span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  color: rgba(255,255,255,0.7);
}

.ws-thumbs { margin-bottom: 32px; }

.ws-thumbs h4 {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin: 0 0 16px;
}

.ws-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ws-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: border-color 0.3s;
  padding: 0;
  background: #111;
}

.ws-thumb.active { border-color: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.ws-thumb:hover { border-color: rgba(255,255,255,0.3); }

.ws-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-thumb-yt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.ws-modal-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ws-modal-cta a {
  display: flex;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: filter 0.3s;
}

.ws-modal-cta a:hover { filter: brightness(1.2); }

/* ── Responsive ────────────────────────────────── */

@media (max-width: 1024px) {
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-modal-box { flex-direction: column; height: 95vh; }
  .ws-modal-media { width: 100%; height: 40vh; }
  .ws-modal-content { width: 100%; padding: 24px; }
  .ws-modal-title { font-size: 1.8rem; }
  .ws-specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ws-grid { grid-template-columns: 1fr; gap: 16px; }
  .ws-modal-content { padding: 20px; }
  .ws-modal-title { font-size: 1.5rem; }
  .ws-thumbs-grid { grid-template-columns: repeat(3, 1fr); }
}
