/**
 * Coastline DC — Premium media placeholders
 * Architectural-grade stand-ins until project photography ships.
 */

.media-ph {
  position: relative;
  overflow: hidden;
}

.media-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgb(0 0 0 / 0.18), transparent 55%),
    linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

.media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.media-ph__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  text-align: center;
}

.media-ph__tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-family-body);
  font-size: 0.625rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(0 0 0 / 0.2);
  color: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(8px);
}

.media-ph__name {
  font-family: var(--font-family-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
  text-transform: none;
  max-width: 14rem;
}

/* Tone variants */

.media-ph[data-tone="coast"] {
  background:
    linear-gradient(155deg, #060d18 0%, #0f2d38 35%, #1a4a5c 60%, #142336 100%);
  color: rgb(255 255 255 / 0.88);
}

.media-ph[data-tone="coast"]::before {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgb(201 169 126 / 0.08), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgb(0 0 0 / 0.18), transparent 55%),
    linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.22) 100%);
}

.media-ph[data-tone="sand"] {
  background:
    linear-gradient(150deg, #d4cec3 0%, #e8e4dc 30%, #f5f2ed 55%, #c5dce8 100%);
  color: var(--primitive-navy-800);
}

.media-ph[data-tone="sand"] .media-ph__tag {
  border-color: rgb(10 22 40 / 0.12);
  background: rgb(255 255 255 / 0.45);
  color: var(--primitive-stone-600);
}

.media-ph[data-tone="earth"] {
  background:
    linear-gradient(145deg, #3d3a36 0%, #5c574f 30%, #8a857d 55%, #d4cec3 100%);
  color: var(--primitive-sand-50);
}

.media-ph[data-tone="slate"] {
  background:
    linear-gradient(160deg, #2a2825 0%, #3d3a36 40%, #5c574f 70%, #8a857d 100%);
  color: var(--primitive-sand-100);
}

.media-ph[data-tone="ocean"] {
  background:
    linear-gradient(155deg, #0a1628 0%, #1e3348 40%, #2d6b7e 70%, #1a4a5c 100%);
  color: rgb(255 255 255 / 0.9);
}

/* Size modifiers */

.media-ph--cinematic .media-ph__name {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  max-width: 16rem;
}

.media-ph--division .media-ph__name {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.media-ph--project .media-ph__name {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  max-width: 12rem;
}

.media-ph--proof .media-ph__name {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}
