﻿/* assets/css/pages/resources.css
   Resources - Portfolio-consistent (Cards + Modal + Workflow)
*/

:root{
  --rs5-ink: rgba(244,246,250,.92);
  --rs5-muted: rgba(244,246,250,.66);

  --rs5-glass: rgba(255,255,255,.08);
  --rs5-glass2: rgba(255,255,255,.06);
  --rs5-line: rgba(255,255,255,.12);
  --rs5-line2: rgba(255,255,255,.18);

  --rs5-amber:#d18a3d;
  --rs5-blue: #4f7dff;

  --rs5-soft: 0 14px 38px rgba(0,0,0,.35);
  --rs5-shadow: 0 26px 90px rgba(0,0,0,.45);
}

.gs-container{
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.gs-rs5{
  padding-top: 110px;
  padding-bottom: 80px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: transparent;
  --rs5-cols: minmax(64px, 10%) minmax(0, 1.6fr) minmax(110px, .6fr) minmax(110px, .6fr) minmax(200px, .9fr);
}

/* reveal */
.gs-reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.gs-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* header */
.gs-rs5-head{ padding-bottom: 10px; }

.gs-rs5-heroCopy{
  position: relative;
}

.gs-rs5-heroCopy::before{
  content: "";
  position: absolute;
  top: 8px;
  left: -18px;
  width: min(520px, 90%);
  height: 120px;
  background: radial-gradient(circle at 20% 50%, rgba(209,138,61,.22), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(79,125,255,.18), transparent 65%);
  filter: blur(10px);
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}

.gs-rs5-heroCopy::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(209,138,61,.7), rgba(79,125,255,.35), transparent);
  opacity: .9;
}

.gs-rs5-heroCopy > *{ position: relative; z-index: 1; }

.gs-rs5-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  width: fit-content;
  margin-bottom: 12px;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .92;
}
.gs-rs5-pill__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(209,138,61,.95);
  box-shadow: 0 0 18px rgba(209,138,61,.35);
}

.gs-rs5-title{
  margin: 0 0 10px;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  min-height: 2.2em;
}

.gs-rs5-type{
  display: inline-block;
  min-width: 10ch;
  background: linear-gradient(100deg, rgba(246,198,118,1), rgba(125,150,255,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-bottom: .08em;
}

.gs-rs5-type::after{
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 6px;
  background: rgba(246,198,118,.9);
  animation: gs-rs5-caret 1s steps(2, end) infinite;
  transform: translateY(2px);
}

@keyframes gs-rs5-caret{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}

.gs-rs5-sub{
  margin: 0;
  max-width: 78ch;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 16.5px;
  line-height: 1.75;
  opacity: .9;
}

.gs-rs5-heroNote{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .02em;
  opacity: .7;
}

@media (max-width: 620px){
  .gs-rs5-heroCopy::before{ left: -8px; }
  .gs-rs5-title{ min-height: 2.8em; }
}

/* controls */
.gs-rs5-controls{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
@media (min-width: 900px){
  .gs-rs5-controls{
    grid-template-columns: 1fr 360px;
    grid-template-areas:
      "tabs  tabs"
      "search search";
  }
  .gs-rs5-tabs{ grid-area: tabs; }
  .gs-rs5-search{ grid-area: search; }
}

/* tabs */
.gs-rs5-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.gs-rs5-tab{
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .02em;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  color: inherit;
}
.gs-rs5-tab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}
.gs-rs5-tab.is-active{
  background: rgba(209,138,61,.20);
  border-color: rgba(209,138,61,.40);
}

/* search */
.gs-rs5-search{
  position: relative;
  width: 100%;
  border-radius: 18px;
  padding: 4px;
  background: rgba(10,12,18,.35);
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.gs-rs5-search:focus-within{
  border-color: rgba(209,138,61,.55);
  background: rgba(10,12,18,.45);
  box-shadow: 0 0 0 4px rgba(209,138,61,.12);
}
.gs-rs5-search__icon{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 0;
  opacity: .85;
  pointer-events: none;
}
.gs-rs5-search__icon::before{
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(244,246,250,.85);
  border-radius: 999px;
  display: block;
  transform: translateX(-1px);
}
.gs-rs5-search__icon::after{
  content: "";
  width: 8px;
  height: 2px;
  background: rgba(244,246,250,.85);
  display: block;
  transform: translate(6px, -1px) rotate(45deg);
  border-radius: 2px;
}
.gs-rs5-input{
  width: 100%;
  border-radius: 16px;
  padding: 12px 48px 12px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.gs-rs5-input::placeholder{ color: rgba(244,246,250,.55); }

/* workflow */
.gs-rs5-flow{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
}
@media (max-width: 1100px){
  .gs-rs5-flow{
    grid-template-columns: repeat(3, 1fr);
  }
}
/* =========================================
   Hide workflow tiles on smaller screens
   (keeps the page clean on mobile)
========================================= */
@media (max-width: 900px){
  .gs-rs5-flow{
    display: none !important;
  }
}
@media (max-width: 900px){
  #gsResStageReset{
    display: none !important;
  }
}

@media (max-width: 620px){
  .gs-rs5-flow{
    grid-template-columns: 1fr;
  }
}
.gs-rs5-flowCard{
  text-align: left;
  border: 0;
  cursor: pointer;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  display: grid;
  gap: 10px;
}
.gs-rs5-flowCard:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
}
.gs-rs5-flowCard.is-active{
  background: rgba(209,138,61,.16);
  border-color: rgba(209,138,61,.34);
}
.gs-rs5-flowCard__img{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  aspect-ratio: 16/9;
}
.gs-rs5-flowCard__img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gs-rs5-flowCard__h{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gs-rs5-flowCard__p{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  opacity: .86;
  line-height: 1.55;
  font-size: 13.5px;
}

.gs-rs5-flowReset{
  grid-column: 1 / -1;
  margin-top: 2px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: inherit;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .01em;
}

/* list */
.gs-rs5-gridSec{ margin-top: 16px; }

.gs-rs5-listHead{
  display: grid;
  grid-template-columns: var(--rs5-cols);
  gap: 12px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  opacity: .72;
  align-items: center;
  justify-items: start;
}
.gs-rs5-listHead__actions{ text-align: right; }

.gs-rs5-list{
  display: grid;
  gap: 0;
}

@media (max-width: 980px){
  .gs-rs5{ padding-top: 96px; }
  .gs-rs5-listHead{
    grid-template-columns: var(--rs5-cols);
  }
}
@media (max-width: 900px){
  .gs-rs5-listHead{ display: none; }
}

/* card */
.gs-rs5-card{
  position: relative;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: var(--rs5-cols);
  grid-template-areas: "preview resource format size actions";
  align-items: center;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  transition: background .2s ease, border-color .2s ease;
}
.gs-rs5-card:hover{
  transform: none;
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
}

.gs-rs5-card__sheen{
  display: none;
}
.gs-rs5-card__rim{
  display: none;
}

.gs-rs5-cell{
  min-width: 0;
}
.gs-rs5-cell--thumb{
  grid-area: preview;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-rs5-cell--main{
  grid-area: resource;
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.gs-rs5-cell--format,
.gs-rs5-cell--size{
  grid-area: format;
  justify-self: start;
  text-align: left;
}
.gs-rs5-cell--size{
  grid-area: size;
}
.gs-rs5-cell--actions{
  grid-area: actions;
  justify-self: end;
  text-align: right;
}

.gs-rs5-thumb{
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}
.gs-rs5-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.001);
}

.gs-rs5-card__top{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gs-rs5-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.gs-rs5-chip__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
}

.gs-rs5-flag,
.gs-rs5-format{
  font-size: 12px;
  opacity: .9;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

/* clamp title (2 lines) + desc (3 lines) */
.gs-rs5-card__h{
  position: relative;
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gs-rs5-card__p{
  position: relative;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.65;
  opacity: .88;
  overflow-wrap: anywhere;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gs-rs5-colLabel{
  display: none;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .6;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.gs-rs5-meta{
  opacity: .9;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 12.5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  width: auto;
}

.gs-rs5-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.gs-rs5-dl,
.gs-rs5-qv{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.gs-rs5-dl{
  background: rgba(209,138,61,.12);
  border: 1px solid rgba(209,138,61,.28);
}
.gs-rs5-dl:hover{
  transform: none;
  background: rgba(209,138,61,.18);
  border-color: rgba(209,138,61,.38);
}
.gs-rs5-qv{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: none;
}
.gs-rs5-qv:hover{
  transform: none;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

@media (max-width: 900px){
  .gs-rs5-card{
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "preview resource"
      "format format"
      "size size"
      "actions actions";
    align-items: start;
  }
  .gs-rs5-cell--thumb{
    align-items: flex-start;
  }
  .gs-rs5-cell--format,
  .gs-rs5-cell--size,
  .gs-rs5-cell--actions{
    grid-column: 1 / -1;
  }
  .gs-rs5-cell--actions{
    justify-self: start;
  }
  .gs-rs5-cell--format,
  .gs-rs5-cell--size{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .gs-rs5-colLabel{
    display: inline-block;
  }
  .gs-rs5-actions{
    justify-content: flex-start;
  }
}

@media (max-width: 620px){
  .gs-rs5-card{ padding: 14px 0; }
}

/* empty */
.gs-rs5-empty{ margin-top: 14px; }
.gs-rs5-empty__glass{
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  text-align: center;
}
.gs-rs5-btn{
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: inherit;
  cursor: pointer;
  font-weight: 900;
}

/* modal - above everything */
.gs-rs5-modal[hidden]{ display:none !important; }
.gs-rs5-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.gs-rs5-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}
.gs-rs5-modal__panel{
  position: relative;
  width: min(1120px, calc(100% - 22px));
  margin: clamp(44px, 6vh, 76px) auto 0;
  border-radius: 24px;
  padding: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  box-shadow: var(--rs5-shadow);
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.gs-rs5-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.gs-rs5-modal__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.gs-rs5-modal__grid{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 14px;
}
@media (max-width: 980px){
  .gs-rs5-modal__grid{
    grid-template-columns: 1fr;
  }
}

/* viewer */
.gs-rs5-modal__viewer{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,18,.35);
}
.gs-rs5-modal__iframe{
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  display: none;
}
@media (max-width: 980px){
  .gs-rs5-modal__iframe{ height: min(60vh, 560px); }
}
@media (max-width: 620px){
  .gs-rs5-modal__iframe{ height: 52vh; }
}
.gs-rs5-modal__fallback{
  padding: 18px;
  display: none;
}
.gs-rs5-modal__fbTitle{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}
.gs-rs5-modal__fbText{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  opacity: .86;
  line-height: 1.6;
}

/* side */
.gs-rs5-modal__side{
  padding: 6px 2px;
}
.gs-rs5-modal__tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(209,138,61,.14);
  border: 1px solid rgba(209,138,61,.30);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  width: fit-content;
}
.gs-rs5-modal__title{
  margin: 10px 0 8px;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.gs-rs5-modal__desc{
  margin: 0 0 12px;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.7;
  opacity: .90;
}
.gs-rs5-modal__metaRow{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 12px;
}
.gs-rs5-modal__meta{
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.gs-rs5-modal__label{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  opacity: .78;
  font-size: 12px;
  letter-spacing: .02em;
}
.gs-rs5-modal__value{
  margin-top: 4px;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 800;
}
.gs-rs5-dl--modal{
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
}
.gs-rs5-modal__hint{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  opacity: .86;
  line-height: 1.6;
}

