/* Website Showcase — adapted for light theme */
.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ws-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.ws-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.ws-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.ws-card:hover > img {
  transform: scale(1.05);
}

.ws-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.ws-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ws-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 11, 0.85) 0%, rgba(0, 0, 11, 0.3) 40%, transparent 100%);
  pointer-events: none;
}

.ws-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s ease;
}
.ws-card:hover .ws-card-bottom { transform: translateY(0); }
.ws-card-type {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.ws-card-client {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.ws-card-bottom h3 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

/* Modal */
.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ws-modal.open { display: flex; }

.ws-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.ws-modal-box {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.ws-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.ws-modal-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Media side */
.ws-modal-media {
  width: 60%;
  background: #111;
  position: relative;
  min-height: 400px;
}
.ws-media-viewer { position: relative; width: 100%; height: 100%; }
.ws-media-slide {
  display: none;
  position: absolute;
  inset: 0;
}
.ws-media-slide.active { display: block; }
.ws-media-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}
.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;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.ws-media-prev,
.ws-media-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  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: 12px; }
.ws-media-next { right: 12px; }

.ws-media-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}
.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.ws-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* Content side */
.ws-modal-content {
  width: 40%;
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}
.ws-modal-client {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 12px;
}
.ws-modal-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--tp-text-primary, #1A1A2E);
  margin-bottom: 16px;
  line-height: 1.1;
}
.ws-modal-desc {
  font-size: 16px;
  color: var(--tp-text-secondary, #4B5563);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ws-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.ws-spec-card {
  background: var(--tp-bg-secondary, #F5F7FA);
  border: 1px solid var(--tp-border, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  padding: 14px;
}
.ws-spec-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ws-spec-card p {
  font-size: 13px;
  color: var(--tp-text-secondary, #4B5563);
  line-height: 1.5;
}

.ws-thumbs { margin-bottom: 24px; }
.ws-thumbs h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-text-muted, #9CA3AF);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.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 transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  background: var(--tp-bg-secondary, #F5F7FA);
}
.ws-thumb.active { border-color: var(--tp-gold, #C9A84C); }
.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: #222;
}

.ws-modal-cta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--tp-border, rgba(0, 0, 0, 0.08));
}
.ws-modal-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: opacity 0.3s;
}
.ws-modal-cta a:hover { opacity: 0.85; color: #fff; }

@media (max-width: 1024px) {
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ws-modal-box { flex-direction: column; max-height: 95vh; }
  .ws-modal-media { width: 100%; min-height: 250px; max-height: 40vh; }
  .ws-modal-content { width: 100%; max-height: 55vh; padding: 24px; }
  .ws-specs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ws-grid { grid-template-columns: 1fr; }
}
