/* Pure-CSS device chrome for showing client work "on hardware" instead of a flat rectangle. */

.device-frame {
  position: relative;
  border-radius: 14px 14px 4px 4px;
  background: #1c1c1e;
  padding: 10px 10px 0;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
}

.device-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 10px;
}

.device-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.device-frame__dot--red { background: #ff5f57; }
.device-frame__dot--yellow { background: #febc2e; }
.device-frame__dot--green { background: #28c840; }

.device-frame__url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 14px;
  border-radius: 20px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-frame__screen {
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 10;
  border-radius: 6px 6px 0 0;
}

.device-frame__screen--auto {
  aspect-ratio: auto;
}

.device-frame__screen img,
.device-frame__screen iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: none;
  display: block;
}

.device-frame__base {
  height: 14px;
  background: linear-gradient(#2c2c2e, #101010);
  border-radius: 0 0 10px 10px;
  position: relative;
}

.device-frame__base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  background: #3a3a3c;
  border-radius: 0 0 6px 6px;
}

/* Compact variant for grid thumbnails — same chrome, tighter proportions */
.device-frame--compact {
  border-radius: 10px 10px 3px 3px;
  padding: 7px 7px 0;
}

.device-frame--compact .device-frame__bar {
  gap: 4px;
  padding: 0 3px 7px;
}

.device-frame--compact .device-frame__dot {
  width: 6px;
  height: 6px;
}

.device-frame--compact .device-frame__url {
  font-size: 0.6rem;
  padding: 2px 10px;
  margin-left: 6px;
}

.device-frame--compact .device-frame__base {
  height: 9px;
  border-radius: 0 0 7px 7px;
}

.device-frame--compact .device-frame__base::after {
  width: 46px;
  height: 3px;
}

/* Phone variant — vertical frame with a notch, for future app/mobile-screen showcases */
.device-frame--phone {
  width: min(220px, 60%);
  border-radius: 32px;
  padding: 12px;
  background: #1c1c1e;
}

.device-frame--phone .device-frame__bar { display: none; }

.device-frame--phone .device-frame__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
}

.device-frame--phone .device-frame__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.device-frame--phone .device-frame__base { display: none; }

@media (max-width: 600px) {
  .device-frame { padding: 8px 8px 0; }
  .device-frame__url { font-size: 0.62rem; }
}
