/*
 * screens.css — Discover · Works · Your Room · states · modals
 * Ported from docs/mockups/premium/light/{discover,works,saved}.html.
 */

/* ============================ DISCOVER ============================ */

/* TODAY hero carousel — full-bleed swipe cards */
.hero-carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hcard {
  flex: 0 0 calc(100% - 48px); scroll-snap-align: center; border-radius: 30px; overflow: hidden;
  position: relative; height: 330px; text-decoration: none; color: inherit; cursor: pointer;
  box-shadow: 0 18px 40px -22px rgba(91, 33, 182, .4), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.hcard .scene { position: absolute; inset: 0; }
.hcard .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 10, 40, .28) 62%, rgba(15, 8, 32, .82) 100%); }
.hcard .ov { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.hcard .lbl {
  display: inline-block; background: rgba(255, 252, 245, .85); backdrop-filter: blur(8px);
  border: 1px solid var(--lime-deep); color: #7c3aed; font-family: var(--grotesk); font-size: 10px;
  font-weight: 700; letter-spacing: .2em; padding: 5px 12px; border-radius: 999px;
}
.hcard .htitle { font-family: var(--serif); font-size: 30px; font-weight: 380; line-height: 1.05; letter-spacing: -.015em; color: #fff; margin-top: 12px; text-shadow: 0 2px 18px rgba(20, 10, 40, .55); }
.hcard .href { font-family: var(--grotesk); font-size: 11px; letter-spacing: .16em; font-weight: 600; color: rgba(255, 255, 255, .92); margin-top: 9px; text-shadow: 0 1px 10px rgba(20, 10, 40, .5); }
.dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0 0; }
.dots .d { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-2); transition: all .4s var(--ease); }
.dots .d.on { background: var(--violet); width: 22px; border-radius: 999px; }

/* WORKS preview — 2-column masonry on Discover */
.works { columns: 2; column-gap: 13px; padding: 2px 24px 0; }
.wtile { display: block; break-inside: avoid; margin-bottom: 13px; border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 12px 28px -18px rgba(91, 33, 182, .45), inset 0 0 0 1px rgba(255, 255, 255, .45); transition: transform .5s var(--ease); }
.wtile:active { transform: scale(.97); }
.wimg { width: 100%; display: block; }
.wimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(30, 16, 60, .3)); }

/* ============================ WORKS / ROOM shared top bar + toggle ============================ */
.top { position: relative; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 26px 22px 6px; }
.back-btn {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); text-decoration: none; background: var(--surface); border: 1px solid var(--hair);
  box-shadow: 0 4px 12px -6px rgba(91, 33, 182, .3); transition: transform .3s var(--ease);
}
.back-btn:active { transform: scale(.92); }
.back-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.top h1 { flex: 1; font-family: var(--serif); font-size: 27px; font-weight: 360; letter-spacing: -.02em; color: var(--ink); }

.toggle { flex: 0 0 auto; display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(139, 92, 246, .07); border: 1px solid var(--hair); }
.toggle button { width: 38px; height: 32px; border: none; cursor: pointer; background: transparent; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); transition: all .4s var(--ease); }
.toggle button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.toggle button.on { background: var(--lime); color: #23163f; box-shadow: 0 6px 16px -6px rgba(223, 255, 50, .7); }

/* ============================ WORK BROWSER (Works + Room) ============================ */
/* GRID view — 2-col masonry image tiles */
.wb-grid { columns: 2; column-gap: 11px; padding: 10px 18px 0; }
.wb[data-mode="list"] .wb-grid { display: none; }
.gtile { display: block; break-inside: avoid; margin-bottom: 11px; border-radius: 15px; overflow: hidden; position: relative; box-shadow: 0 12px 26px -18px rgba(91, 33, 182, .45), inset 0 0 0 1px rgba(255, 255, 255, .45); transition: transform .5s var(--ease); text-decoration: none; }
.gtile:active { transform: scale(.97); }
.gimg { width: 100%; display: block; }
.gimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(30, 16, 60, .28)); }
.gtile .gcap { position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 2; }
.gtile .gct { font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 1.1; color: #fff; text-shadow: 0 1px 10px rgba(20, 10, 40, .6); }
.gtile .gcr { font-family: var(--grotesk); font-size: 9.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .85); margin-top: 3px; text-transform: uppercase; }

/* LIST view — search + rows + alphabet index */
.wb-list { display: none; padding: 6px 0 0; }
.wb[data-mode="list"] .wb-list { display: block; }
.search { margin: 4px 22px 6px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 6px 18px -12px rgba(91, 33, 182, .3); }
.search svg { width: 17px; height: 17px; stroke: var(--ink-dim); fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.search input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 13.5px; color: var(--ink); letter-spacing: .01em; }
.search input::placeholder { color: var(--ink-dim); }
.rows { padding: 0 22px; }
.lrow { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--hair); cursor: pointer; text-decoration: none; color: inherit; }
.lrow:last-child { border-bottom: none; }
.lrow .lth { flex: 0 0 50px; height: 58px; border-radius: 9px; position: relative; box-shadow: 0 6px 16px -8px rgba(91, 33, 182, .45), inset 0 0 0 1px rgba(255, 255, 255, .4); }
.lrow .linfo { flex: 1; min-width: 0; }
.lrow .lt { font-family: var(--serif); font-size: 15.5px; font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .la { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); margin-top: 3px; letter-spacing: .01em; }
.lrow .ly { font-family: var(--grotesk); font-size: 11px; color: var(--violet-dark); margin-top: 2px; letter-spacing: .04em; }
.list-empty { padding: 30px 24px; text-align: center; color: var(--ink-dim); font-family: var(--serif); font-style: italic; font-size: 15px; display: none; }

/* ============================ YOUR ROOM ============================ */
.gauge-shell { margin: 22px 24px 4px; padding: 5px; border-radius: 28px; background: linear-gradient(150deg, rgba(139, 92, 246, .14), rgba(196, 230, 25, .1)); border: 1px solid var(--hair-2); }
.gauge { position: relative; border-radius: 23px; padding: 18px 20px; overflow: hidden; background: linear-gradient(150deg, #f3edfd, #fbf8f2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9); }
.gauge::before { content: ""; position: absolute; right: -32px; top: -32px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 230, 25, .3), transparent 70%); }
.gauge .gtop { display: flex; justify-content: space-between; align-items: baseline; }
.gauge .gt { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--ink); }
.gauge .gcount { font-family: var(--grotesk); font-size: 13px; font-weight: 700; color: var(--lime-deep); }
.gauge .gp { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.gauge .bar { height: 7px; border-radius: 4px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.gauge .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--lime)); transition: width .8s var(--ease); }

.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 12px; }
.toolbar h2 { font-family: var(--serif); font-size: 20px; font-weight: 380; letter-spacing: -.01em; color: var(--ink); }

/* Room grid cards */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 24px; }
.wb[data-mode="list"] .room-grid { display: none; }
.card-shell { position: relative; padding: 5px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 12px 28px -20px rgba(91, 33, 182, .4); transition: transform .5s var(--ease), opacity .4s var(--ease); }
.card-shell:active { transform: scale(.97); }
.card { border-radius: 17px; overflow: hidden; background: var(--bg-2); position: relative; display: block; text-decoration: none; }
.card .art { height: 130px; position: relative; }
.card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(40, 20, 80, .6)); }
/* heart lives on the shell (outside the link) — a tap opens the remove modal, never navigates */
.card-shell .heart { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 253, 249, .85); backdrop-filter: blur(6px); border: 1px solid var(--violet-light); display: flex; align-items: center; justify-content: center; z-index: 4; cursor: pointer; }
.card-shell .heart svg { width: 14px; height: 14px; fill: var(--violet); stroke: var(--violet); }
.card .cap { padding: 11px 12px 13px; }
.card .cap .ct { font-family: var(--serif); font-size: 15px; font-weight: 400; line-height: 1.14; color: var(--ink); }
.card .cap .cr { font-family: var(--grotesk); font-size: 10.5px; color: var(--violet-dark); margin-top: 5px; letter-spacing: .04em; }

/* Room list rows */
.room-list { display: none; padding: 0 24px; flex-direction: column; }
.wb[data-mode="list"] .room-list { display: flex; }
.list-shell { padding: 5px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 12px 28px -22px rgba(91, 33, 182, .4); }
.rrow { display: flex; align-items: center; gap: 13px; padding: 11px 13px 11px 5px; border-radius: 15px; position: relative; transition: transform .5s var(--ease), opacity .4s var(--ease); text-decoration: none; color: inherit; }
.rrow:active { transform: scale(.985); }
.rrow + .rrow { border-top: 1px solid var(--hair); }
.rrow .thumb { width: 54px; height: 54px; border-radius: 13px; flex-shrink: 0; position: relative; overflow: hidden; box-shadow: 0 6px 14px -8px rgba(91, 33, 182, .5); }
.rrow .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(40, 20, 80, .45)); }
.rrow .meta { flex: 1; min-width: 0; }
.rrow .meta .rt { font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.12; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .meta .rr { font-family: var(--grotesk); font-size: 10px; color: var(--violet-dark); margin-top: 5px; letter-spacing: .06em; text-transform: uppercase; }
.rrow .rheart { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: rgba(196, 230, 25, .14); border: 1px solid var(--violet-light); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rrow .rheart svg { width: 15px; height: 15px; fill: var(--violet); stroke: var(--violet); }
.card-shell.removing, .rrow.removing { opacity: 0; transform: scale(.9); }

/* Empty state */
.empty { text-align: center; padding: 60px 32px; }
.empty .eico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, .08); border: 1px solid var(--hair-2); }
.empty .eico svg { width: 30px; height: 30px; stroke: var(--violet-dark); fill: none; stroke-width: 1.4; }
.empty h3 { font-family: var(--serif); font-size: 22px; font-weight: 380; color: var(--ink); }
.empty p { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; max-width: 280px; margin-left: auto; margin-right: auto; }
.empty .cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; background: var(--violet); color: #fff; font-family: var(--grotesk); font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(139, 92, 246, .6); }

/* ============================ delete-confirm modal ============================ */
.confirm { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 30px; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.confirm.open { opacity: 1; pointer-events: auto; }
.cbackdrop { position: absolute; inset: 0; background: rgba(91, 33, 182, .22); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cdialog { position: relative; width: 100%; max-width: 300px; background: var(--surface); border-radius: 26px; padding: 26px 24px 20px; text-align: center; border: 1px solid var(--hair); box-shadow: 0 30px 70px -20px rgba(91, 33, 182, .5), inset 0 1px 1px rgba(255, 255, 255, .9); transform: scale(.92); transition: transform .4s var(--ease); }
.confirm.open .cdialog { transform: scale(1); }
.cdialog .cic { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, .1); border: 1px solid var(--hair-2); }
.cdialog .cic svg { width: 25px; height: 25px; stroke: var(--violet-dark); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cdialog h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; }
.cdialog .cname { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-dim); margin-top: 8px; }
.cbtns { display: flex; gap: 10px; margin-top: 22px; }
.cbtn { flex: 1; border: none; cursor: pointer; padding: 13px 0; border-radius: 14px; font-family: var(--grotesk); font-size: 14px; font-weight: 600; transition: transform .3s var(--ease); }
.cbtn:active { transform: scale(.96); }
.cbtn.cancel { background: rgba(139, 92, 246, .08); border: 1px solid var(--hair); color: var(--ink-soft); }
.cbtn.remove { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -8px rgba(139, 92, 246, .6); }
