/* ==========================================================================
   VICE LAYER — qbcore_vi_mining (Vice Mine)
   The Vue app paints flat greys inline (rgb 27/33/39) and uses an "apple"
   font family. This layer maps the family to GTA Art Deco and turns the
   frames into night plates with lilac surfaces, pill controls and
   cream / peach type. Loaded after the bundle CSS.
   ========================================================================== */
@font-face { font-family: apple; src: url("fonts/GTAArtDeco-Regular.ttf") format("truetype"); font-weight: 1 299; font-style: normal; }
@font-face { font-family: apple; src: url("fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 300 1000; font-style: normal; }
@font-face { font-family: apple; src: url("fonts/GTAArtDeco-Regular.ttf") format("truetype"); font-weight: 1 299; font-style: italic; }
@font-face { font-family: apple; src: url("fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 300 1000; font-style: italic; }

body { letter-spacing: var(--v-track); -webkit-font-smoothing: antialiased; }

/* ---------- frames (computer + lobby) ------------------------------------ */
#app .layout {
  position: relative;
  border-radius: var(--v-r-feature);
  background: var(--v-glow-top), var(--v-grad-night);
  box-shadow: var(--v-shadow);
  overflow: hidden;
}
#app .layout::after {
  content: ""; position: absolute; left: 32px; top: 0; width: 64px; height: 3px; z-index: 3;
  border-radius: 0 0 3px 3px; background: var(--v-sunset-line); pointer-events: none;
}
/* frame-level panels melt into the plate */
#app .layout > [style*="background-color: rgb(33, 33, 36)"],
#app .layout > [style*="background-color: rgb(27, 27, 30)"] { background-color: transparent !important; }
/* sidebar rail + header divider */
#app .layout > [style*="grid"][style*="justify-items: center"] { border-right: 1px solid var(--v-line); }
#app .layout > :nth-child(2) { border-bottom: 1px solid var(--v-line); }
#app .layout > :nth-child(1) { border-bottom: 1px solid var(--v-line); }

/* nested tiles -> lilac surface, media radius */
#app .layout > * [style*="background-color: rgb(33, 33, 36)"],
#app .layout > * [style*="background-color: rgb(27, 27, 30)"] {
  background-color: var(--v-s1) !important;
  border-radius: var(--v-r-media) !important;
}
/* controls (inputs, buttons, chips) -> pills */
#app [style*="background-color: rgb(39, 39, 42)"] {
  background-color: rgba(229, 221, 255, 0.08) !important;
  border-radius: var(--v-r-pill) !important;
  transition: background-color var(--v-med) var(--v-ease) !important;
}
#app .container.container:not(.disabled):hover,
#app .container.container:not(.disabled).active { background-color: rgba(229, 221, 255, 0.16) !important; }
#app .layout > *:hover { background-color: transparent !important; }

/* ---------- type ----------------------------------------------------------- */
/* page title in the header ("Mine" / "Vice Mine") */
#app .layout .text[style*="font-size: 1vw"][style*="font-weight: 500"] {
  font-size: 1.55vw !important; line-height: 0.95; text-transform: uppercase; letter-spacing: 0;
  color: var(--v-cream) !important;
}
#app .layout .text[style*="font-size: 1vw"][style*="font-weight: 500"] + .text { color: var(--v-pink) !important; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.55vw !important; font-weight: 500 !important; }
/* section headers: title + description already exist -> eyebrow + subtitle */
#app .avatar section > .text:first-child {
  color: var(--v-peach) !important; text-transform: uppercase; letter-spacing: var(--v-track-wide);
  font-size: 0.6vw !important; font-weight: 500 !important;
}
#app .avatar section > .text:nth-child(2) { color: var(--v-lilac-soft) !important; font-size: 0.66vw !important; margin-top: 2px; }
#app .avatar > i { color: var(--v-pink) !important; }
/* info tiles */
#app .info .stick { left: calc(50% - 1.7vw); width: 3.4vw; height: 3px; border-radius: 0 0 3px 3px; background: var(--v-sunset-line); }
#app .info > .text:first-child { color: var(--v-peach) !important; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.55vw !important; font-weight: 500 !important; }
#app .info > .text:nth-child(2) { color: var(--v-lilac-soft) !important; opacity: 0.85; }
#app .info > .text[style*="font-weight: 500"] { color: var(--v-cream) !important; font-size: 0.95vw !important; }
#app input { font-family: var(--v-font) !important; color: var(--v-cream) !important; }

/* palette props */
#app .text[color=greyish], #app i[color=greyish] { color: var(--v-lilac-soft) !important; }
#app .text[color=softwhite], #app i[color=softwhite] { color: var(--v-lilac) !important; }
#app .text[color=red], #app .text[color=softred], #app i[color=red], #app i[color=softred] { color: var(--v-pink) !important; }
#app .text[color=lightgreen], #app i[color=lightgreen] { color: var(--v-lime) !important; }
#app i[color=yellow] { color: var(--v-gold) !important; }
#app .text[color=white] { color: #fff !important; }

/* checkboxes (permissions) */
#app input[type=checkbox] { border-radius: 6px !important; background-color: rgba(229, 221, 255, 0.1); }
#app input[type=checkbox]:not(:disabled):checked {
  background-color: var(--v-cream) !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230f0c1a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>') !important;
}

/* ---------- in-mine info HUD ------------------------------------------- */
#app .view [style*="rgba(33, 33, 36, 0.95)"] {
  position: relative;
  background: var(--v-glow-top), var(--v-grad-night) !important;
  border-radius: var(--v-r-md) !important;
  box-shadow: 0 20px 50px rgba(7, 7, 15, 0.45);
  overflow: hidden;
}
#app .view [style*="rgba(33, 33, 36, 0.95)"]::before {
  content: ""; position: absolute; left: 16px; top: 0; width: 48px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--v-sunset-line);
}
#app .view .text[style*="font-weight: 500"] { color: var(--v-cream) !important; }
#app .view .entry > .text:first-child { color: var(--v-peach) !important; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.5vw !important; font-weight: 500 !important; }
#app .view [style*="background-color: rgb(39, 39, 42)"] { border-radius: 50% !important; }

/* tooltips + scrollbars */
.v-popper--theme-tooltip .v-popper__inner { background: rgba(12, 13, 27, 0.95) !important; color: var(--v-lilac) !important; border-radius: var(--v-r-pill) !important; font-family: var(--v-font); }
.v-popper--theme-tooltip .v-popper__arrow-outer { border-color: rgba(12, 13, 27, 0.95) !important; }
::-webkit-scrollbar-thumb { background-color: rgba(229, 221, 255, 0.16) !important; }
::-webkit-scrollbar-track { background: transparent !important; }

/* frame panels never take the hover tint */
#app .layout > .container.container:not(.disabled):hover { background-color: transparent !important; }
/* purchase = the one CTA pill */
#app .route-finalize > div > .container.centered[style*="rgb(39, 39, 42)"] {
  min-height: 2.4vw; background-color: var(--v-cta) !important; box-shadow: var(--v-glow-cta-sm);
}
#app .route-finalize > div > .container.centered[style*="rgb(39, 39, 42)"]:hover { background-color: #ffe1ea !important; box-shadow: var(--v-glow-cta); }
#app .route-finalize > div > .container.centered[style*="rgb(39, 39, 42)"] .text { color: var(--v-cta-ink) !important; font-size: 0.75vw !important; }
/* shop "add to cart" pills: peach chip */
#app .route-entities .container.centered[style*="rgb(39, 39, 42)"] { background-color: var(--v-peach) !important; }
#app .route-entities .container.centered[style*="rgb(39, 39, 42)"] .text { color: var(--v-chip-ink) !important; }
#app .route-entities .container.centered[style*="rgb(39, 39, 42)"]:hover { background-color: #ffe2c4 !important; }

/* ---------- ultrawide ------------------------------------------------------
   Everything here is sized in vw, so 720p…4K already keep 1080p proportions.
   On 21:9 screens vw is ~1.33× too large for the height: scale the app back to
   16:9 proportions (the frame keeps its % size of the screen height). */
@media (min-aspect-ratio: 21/10) { body > #app { zoom: 0.75; } }
@media (min-aspect-ratio: 32/10) { body > #app { zoom: 0.5625; } }
