/* ============================================================
   GP iPad Portfolio Showcase — shared stylesheet
   Used by both the WordPress plugin and the standalone
   HTML embed. Brand colors and Maven Pro font throughout.
============================================================= */

.gp-ipad-portfolio {
  --cream:  #FFF6DF;
  --gold:   #F2BE6C;
  --amber:  #CD8800;
  --umber:  #5E3A00;

  position: relative;
  width: 100%;
  background: transparent;
  font-family: 'Maven Pro', sans-serif;
  box-sizing: border-box;
  padding: 1.5rem 0;
}
.gp-ipad-portfolio *,
.gp-ipad-portfolio *::before,
.gp-ipad-portfolio *::after {
  box-sizing: inherit;
}

.gp-ipad-portfolio .gpip-stage {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
  outline: none;
}

/* ---------- story-style progress bar (signature interaction) ---------- */
.gp-ipad-portfolio .gpip-storybar {
  display: flex;
  gap: clamp(4px, 1vw, 8px);
  margin-bottom: clamp(14px, 2.2vw, 22px);
}
.gp-ipad-portfolio .gpip-seg {
  flex: 1 1 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(94, 58, 0, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
}
.gp-ipad-portfolio .gpip-seg-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--amber);
  border-radius: 999px;
}

/* ---------- device row ---------- */
.gp-ipad-portfolio .gpip-device-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 24px);
}

.gp-ipad-portfolio .gpip-arrow {
  flex: 0 0 auto;
  width: clamp(42px, 6vw, 60px);
  height: clamp(42px, 6vw, 60px);
  border-radius: 50%;
  border: 1.5px solid rgba(94, 58, 0, 0.22);
  background: rgba(255, 246, 223, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.gp-ipad-portfolio .gpip-arrow svg {
  width: 42%;
  height: 42%;
  stroke: var(--umber);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gp-ipad-portfolio .gpip-arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .gp-ipad-portfolio .gpip-arrow:hover { background: var(--amber); border-color: var(--amber); transform: scale(1.06); }
  .gp-ipad-portfolio .gpip-arrow:hover svg { stroke: var(--cream); }
}

/* ---------- the device ---------- */
.gp-ipad-portfolio .gpip-device {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 1.6vw, 20px);
  border-radius: clamp(20px, 3vw, 34px);
  background: linear-gradient(160deg, #241a10, #0e0a06);
  box-shadow:
    0 30px 60px -20px rgba(20, 12, 4, 0.55),
    0 8px 20px -6px rgba(20, 12, 4, 0.35);
  position: relative;
}
.gp-ipad-portfolio .gpip-camera {
  position: absolute;
  top: clamp(4px, 0.9vw, 9px);
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.gp-ipad-portfolio .gpip-screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(10px, 1.6vw, 20px);
  overflow: hidden;
  background: #050403;
  position: relative;
}
.gp-ipad-portfolio .gpip-screen.is-clickable {
  cursor: pointer;
}

.gp-ipad-portfolio .gpip-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  display: block;
  transition: opacity 0.6s ease;
  will-change: transform, opacity;
}
.gp-ipad-portfolio .gpip-layer.is-active {
  opacity: 1;
  z-index: 2;
}

.gp-ipad-portfolio .gpip-visit {
  position: absolute;
  right: clamp(10px, 1.6vw, 18px);
  bottom: clamp(10px, 1.6vw, 18px);
  z-index: 4;
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 246, 223, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--umber);
  font-weight: 800;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease;
}
.gp-ipad-portfolio .gpip-visit.is-shown { display: inline-flex; }
.gp-ipad-portfolio .gpip-visit svg {
  width: 14px; height: 14px;
  stroke: var(--umber);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .gp-ipad-portfolio .gpip-visit:hover { background: var(--amber); color: var(--cream); transform: translateY(-2px); }
  .gp-ipad-portfolio .gpip-visit:hover svg { stroke: var(--cream); }
}

/* ---------- caption ---------- */
.gp-ipad-portfolio .gpip-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(16px, 2.6vw, 26px);
  flex-wrap: wrap;
  text-align: center;
}
.gp-ipad-portfolio .gpip-caption-title {
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--umber);
  line-height: 1.15;
}
.gp-ipad-portfolio .gpip-caption-count {
  font-weight: 700;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--amber);
  text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .gp-ipad-portfolio .gpip-device-row { gap: 8px; }
  .gp-ipad-portfolio .gpip-arrow { width: 38px; height: 38px; }
  .gp-ipad-portfolio .gpip-storybar { margin-bottom: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gp-ipad-portfolio .gpip-layer { transition: opacity 0.15s linear !important; }
}
