/* wavepurple -- "amp" skin styling (TEST).  Load AFTER style.css and vu-meter.css.
   Everything is scoped to .radio-skin[data-skin="amp"], so no other skin is affected. */

/* aluminium round buttons with dark icons */
.radio-skin[data-skin="amp"] .radio-btn circle {
  fill: url(#ampBrass);
  stroke: #2f3136;
  stroke-width: 1.6;
}
.radio-skin[data-skin="amp"] .radio-btn:hover circle,
.radio-skin[data-skin="amp"] .radio-btn:focus-visible circle {
  stroke: #e8563f;
}
.radio-skin[data-skin="amp"] .radio-btn:active circle { filter: brightness(0.88); }

.radio-skin[data-skin="amp"] .radio-btn-icon {
  fill: none;
  stroke: #1d1e21;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.radio-skin[data-skin="amp"] .radio-btn-icon.amp-fill { fill: #1d1e21; stroke: none; }

/* ON AIR light: red idle, green and pulsing while a station plays (same as the default skin) */
.radio-skin[data-skin="amp"] [data-role="power-led"] { fill: #e74c3c; transition: fill .2s ease; }
.radio-skin[data-skin="amp"] [data-role="power-led"].is-live { fill: #2ecc71; animation: ledPulse 1.4s ease-in-out infinite; }

/* labels on the dark deck */
.radio-skin[data-skin="amp"] .knob-label { fill: #cfcfd4; }
.radio-skin[data-skin="amp"] .power-label { fill: #9a9aa2; }

/* default skin: brand + model line are engraved (graphite, light edge added by skin-amp.js) */
.radio-skin[data-skin="metallic"] .cabinet-brand { fill: #3c3e44; }
.radio-skin[data-skin="metallic"] .deco-label { fill: #4a4c52; opacity: .85; }

/* phones keep their own vertical skin; the amp skin is desktop only */
@media (max-width: 899px) {
  .radio-skin[data-skin="amp"] { display: none !important; }
}

/* ------------------------------------------------------------------
   Phones: a style toggle in the mobile skin, plus the "modern" look.
   body.wp-modern is set by skin-guard-test.js. Only colours/backgrounds
   are overridden, never sizes or layout, so the phone layout is unchanged.
   ------------------------------------------------------------------ */
@media (max-width: 899px) {
  body.wp-modern .v-skin {
    background-color: #141417 !important;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.3px) !important;
    background-size: 4px 4px !important;
    border-color: #050506 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.45) !important;
  }
  /* modern: lettering raised out of the leather (dark edge below, faint light edge above) */
  body.wp-modern .v-brand { color: #e6e8ec !important; font-style: italic; font-weight: 600;
    text-shadow: 0 -1px 0 rgba(255,255,255,.22), 0 1px 0 rgba(0,0,0,.85); }
  body.wp-modern .v-grille {
    background-color: #141416 !important;
    background-image:
      repeating-linear-gradient(90deg, transparent 0 4px, rgba(0,0,0,.55) 4px 6px),
      repeating-linear-gradient(0deg, #55555a 0 1.6px, #141416 1.6px 4px) !important;
    box-shadow: inset 0 3px 10px rgba(0,0,0,.7), inset 0 -2px 6px rgba(0,0,0,.5), 0 2px 0 #a3a7af !important;
    border-color: #050506 !important;
  }
  body.wp-modern .v-display,
  body.wp-modern .v-meter {
    background: linear-gradient(#1b1b1f, #09090b) !important;
    border-color: rgba(190,194,202,.6) !important;
  }
  body.wp-modern .v-btn,
  body.wp-modern .v-knob {
    background: radial-gradient(circle at 35% 30%, #ffffff, #c4c8cf 55%, #5c6068) !important;
    border-color: #2f3136 !important;
    color: #1d1e21 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.55) !important;
  }
  body.wp-modern .v-btn-label { color: #cfcfd4 !important; }
}

/* ------------------------------------------------------------------
   Phones: engraved brand on the classic skin + the Classic | Modern switch
   ------------------------------------------------------------------ */
.wp-style-switch { display: none; }
@media (max-width: 899px) {
  body:not(.wp-modern) .v-brand { color: #3c3e44; font-weight: 700;
    text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 -1px 0 rgba(0,0,0,.28); }

  /* classic phone card: same hint of depth (lighter top edge, faint shade at the bottom) */
  body:not(.wp-modern) .v-skin {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 10px 12px -8px rgba(255,255,255,.4),
                inset 0 -10px 12px -8px rgba(0,0,0,.28), 0 18px 30px -10px rgba(0,0,0,.55);
  }

  .wp-style-switch { display: inline-flex; align-items: stretch; gap: 2px; padding: 2px; border-radius: 9px;
    background: #26282c; border: 1px solid #121315;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.35); }
  .wp-style-switch button { position: relative; appearance: none; -webkit-appearance: none; border: 0; margin: 0;
    height: 24px; padding: 0 10px; border-radius: 7px; background: transparent; color: #aeb2ba; cursor: pointer;
    font: 700 10px/1 'Space Mono', monospace; letter-spacing: .06em; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent; }
  /* invisible padding so each half is a full-size tap target */
  .wp-style-switch button::before { content: ""; position: absolute; top: -9px; bottom: -9px; left: -3px; right: -3px; }
  .wp-style-switch button[aria-pressed="true"] { color: #1d1e21;
    background: linear-gradient(#f4f5f7, #b9bdc4 55%, #8e929a);
    box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8); }
  .wp-style-switch button:focus-visible { outline: 2px solid #e8563f; outline-offset: 1px; }
}

/* ------------------------------------------------------------------
   Station logo (square, bevelled) and the flag on the LED
   ------------------------------------------------------------------ */
.wp-led-flag { pointer-events: none; }
@media (max-width: 899px) {
  .v-skin .v-meter { position: relative; }
  .wp-v-logo { position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 3px; box-sizing: border-box;
    border-radius: 8px; background: linear-gradient(135deg, #fafafb, #b5b8be 48%, #5d6068);
    box-shadow: 0 2px 4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(0,0,0,.3);
    opacity: 0; visibility: hidden; transform: scale(.92); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; pointer-events: none; }
  .wp-v-logo.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
  .wp-v-logo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #0c0d0f; border-radius: 5px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,.7), inset -1px -1px 0 rgba(255,255,255,.22); }
  /* room for the logo on narrow phones: the meter gives up a little width only while a logo shows */
  .v-skin .v-meter.wp-vlogo-on .vu-mount { max-width: calc(100% - 104px); }

  .v-led-box.wp-has-flag { display: flex; align-items: center; gap: 8px; }
  .v-led-box.wp-has-flag #mobileSkinLed { flex: 1 1 auto; min-width: 0; }
  .wp-v-flag { flex: 0 0 auto; width: 24px; height: 16px; display: block; border-radius: 2px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
  .wp-v-flag svg { display: block; width: 100%; height: 100%; }
}
