/* Ticket Neon CSS / surfaces
 * Reusable panels, cards, forms and shared surfaces.
 * Owner: web/public/styles/components/surfaces.css. Keep modifications here, not in app/globals.css.
 */

.tn-search {
  display:grid;
  grid-template-columns:minmax(180px,1fr) 170px 180px auto;
  gap:0;
  align-items:center;
  border:1px solid #9578b6;
  border-radius:7px;
  background:linear-gradient(105deg,#403255e8,#1b1a38e8);
  padding:6px;
  box-shadow:0 5px 22px #a123dc28;
}

.tn-search :is(input,select) {
  background:transparent;
  border:0;
  border-right:1px solid #81679c;
  outline:0;
  color:white;
  min-height:44px;
  padding:6px 16px;
  width:100%;
  min-width:0;
}

.tn-search input:focus,
.tn-search select:focus {
  box-shadow:none;
  border-right-color:#ce82ff;
}

.tn-search input::placeholder {
  color:#c7bdd1;
}

.tn-feature-list {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:20px 0 34px;
}

.tn-feature {
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px 15px;
  border-right:1px solid #645072;
}

.tn-feature:last-child {
  border-right:0;
}

.tn-feature-icon {
  color:#e14af0;
  font-size:calc(1.6rem - 1px);
  min-width:30px;
}

.tn-feature b {
  display:block;
  font-size:calc(.96rem - 1px);
}

.tn-feature small {
  display:block;
  color:#aeaac1;
  margin-top:2px;
}

.tn-text-link {
  color:#f35ce2;
  font-weight:750;
  font-size:calc(.9rem - 1px);
}

.tn-card:hover {
  border-color:#f84ef0;
  transform:translateY(-2px);
}

.tn-category {
  position:absolute;
  top:12px;
  left:12px;
  border-radius:7px;
  background:#ed38b8;
  color:#fff;
  font-size:calc(.69rem - 1px);
  font-weight:800;
  letter-spacing:.05em;
  padding:5px 10px;
}

.tn-card-body p {
  font-size:calc(.84rem - 1px);
  color:#c3b9d6;
  margin-top:8px;
}

.tn-card-price {
  border-top:1px solid #6a4f84;
  margin-top:13px;
  padding-top:12px;
  font-size:calc(.88rem - 1px);
}

.tn-card-price strong {
  font-size:calc(1.07rem - 1px);
  color:#fff;
}

.tn-banner h2 {
  font-size:calc(clamp(1.3rem,2vw,1.9rem) - 1px);
  font-weight:800;
}

.tn-banner p {
  color:#dad0e7;
  margin-top:4px;
}

.tn-metric small {
  font-size:calc(.79rem - 1px);
  color:#bcabd2;
}

@media(max-width:1100px) {
.tn-search {
  grid-template-columns:1fr 150px auto;
}
}

@media(max-width:1100px) {
.tn-search select:nth-of-type(2) {
  display:none;
}
}

@media(max-width:740px) {
.tn-stage-content {
  padding:36px 20px 42px;
}
}

@media(max-width:740px) {
.tn-stage {
  min-height:300px;
}
}

@media(max-width:740px) {
.tn-search {
  display:flex;
  flex-wrap:wrap;
  border-radius:7px;
  padding:9px;
}
}

@media(max-width:740px) {
.tn-search input {
  flex:1 1 100%;
  border-right:0;
  border-bottom:1px solid #6e4c86;
}
}

@media(max-width:740px) {
.tn-search select {
  flex:1 1 40%;
  border-right:0;
}
}

@media(max-width:740px) {
.tn-feature-list {
  grid-template-columns:repeat(2,1fr);
  gap:5px;
}
}

@media(max-width:740px) {
.tn-feature {
  border:0;
}
}

@media(max-width:740px) {
.tn-cards {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
}

@media(max-width:740px) {
.tn-card-art {
  height:104px;
}
}

@media(max-width:740px) {
.tn-card-body {
  padding:11px;
}
}

@media(max-width:740px) {
.tn-card-body h3 {
  font-size:calc(.9rem - 1px);
  min-height:0;
}
}

@media(max-width:740px) {
.tn-banner {
  padding:22px;
  flex-direction:column;
  align-items:start;
}
}

@media(max-width:740px) {
.tn-metrics {
  grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:420px) {
.tn-cards {
  grid-template-columns:1fr;
}
}

@media(max-width:420px) {
.tn-card-art {
  height:145px;
}
}

.tn-stage {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:7px;
  min-height:225px;
  background:#0a0920;
}

.tn-stage:before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
 linear-gradient(90deg,#080a1dfc 0%,#100a25ec 30%,#100d2994 64%,#17112c3d 100%),
 url("https://images.pexels.com/photos/13356826/pexels-photo-13356826.jpeg?auto=compress&cs=tinysrgb&w=1800") center 45% / cover no-repeat;
  opacity:.95;
}

.tn-stage:after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:45px;
  background:linear-gradient(transparent,#0a0d23ad);
}

.tn-stage-content {
  position:relative;
  z-index:1;
  max-width:730px;
  padding:48px 38px 55px;
}

.tn-card-art:before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#210b35af,transparent 55%);
  transform:skewY(-8deg);
}

.tn-card-art[data-variant="0"] {
  background-image:linear-gradient(30deg,#4510464a,#b1179b14),url("/img/ticketneon-concert-artist.webp");
}

.tn-card-art[data-variant="1"] {
  background-image:linear-gradient(30deg,#59109f38,#e527c51a),url("https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=900&q=85");
}

.tn-card-art[data-variant="2"] {
  background-image:linear-gradient(30deg,#37138a45,#8919a719),url("https://images.pexels.com/photos/40553769/pexels-photo-40553769.jpeg?auto=compress&cs=tinysrgb&w=900");
}

.tn-card-art[data-variant="3"] {
  background-image:linear-gradient(30deg,#59105b55,#d537a21e),url("https://images.unsplash.com/photo-1478737270239-2f02b77fc618?auto=format&fit=crop&w=900&q=85");
}

.tn-card-art-mark {
  font-size:calc(3.4rem - 1px);
  filter:drop-shadow(0 0 16px #ff45c6);
  opacity:.87;
  display:none;
}

.tn-cards .tn-card-art {
  height:160px;
}

.tn-cards .tn-card {
  border-color:#8d4fa1;
}

.tn-cards .tn-card:hover {
  border-color:#e767ed;
}

.tn-cards .tn-card-body {
  padding:15px 16px;
}

.tn-cards .tn-card-body h3 {
  min-height:2.15rem;
}

@media(max-width:740px) {
.tn-cards .tn-card-art {
  height:130px;
}
}

.tn-page-hero .tn-stage-content {
  padding:28px 34px 31px;
  max-width:780px;
}

.tn-panel {
  background:linear-gradient(145deg,#211a38ed,#12142ced);
  border:1px solid #65477dba;
  border-radius:7px;
  box-shadow:0 9px 28px #0505154a;
}

.tn-panel-soft {
  background:#17152dbd;
  border:1px solid #57416f;
  border-radius:7px;
  border-color:#5b4278;
}

.tn-panel :is(h2,h3) {
  letter-spacing:-.027em;
  line-height:1.25;
}

.tn-section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:24px 0 15px;
}

.tn-section-title h2 {
  font-size:calc(clamp(1.28rem,1.8vw,1.7rem) - 1px);
  font-weight:800;
  letter-spacing:-.03em;
}

.tn-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 25px;
  margin-top:24px;
  background:radial-gradient(ellipse at 20% 0%,#9f208f67,transparent 45%),linear-gradient(115deg,#24123b,#181d47 65%,#4a1651);
  border:1px solid #aa55d3;
  border-radius:7px;
}

.tn-empty {
  padding:28px;
  text-align:center;
  background:#1b1730a8;
  border:1px dashed #744b8e;
  border-radius:7px;
  color:#ccbedc;
  min-height:0;
  line-height:1.55;
}

.tn-cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}

.tn-card {
  border-radius:7px;
  overflow:hidden;
  border:1px solid #79489a;
  background:linear-gradient(160deg,#19152e,#10152a);
  color:#fff;
  box-shadow:0 8px 32px #0006;
  min-width:0;
}

.tn-card-art {
  height:140px;
  position:relative;
  overflow:hidden;
  background-color:#220f40;
  background-image:radial-gradient(ellipse at 75% 35%,#fe47b890,transparent 37%),radial-gradient(ellipse at 25% 70%,#8550ff,transparent 55%),linear-gradient(45deg,#0a142f,#43155c);
  display:flex;
  align-items:center;
  justify-content:center;
  background-size:cover;
  background-position:center;
}

.tn-card-body {
  padding:14px;
}

.tn-card-body h3 {
  font-weight:800;
  font-size:calc(1rem - 1px);
  min-height:0;
  line-height:1.22;
}

.tn-metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.tn-metric {
  padding:17px;
  border:1px solid #875097;
  border-radius:7px;
  background:linear-gradient(145deg,#271837d9,#13172c);
}

.tn-metric strong {
  font-size:calc(1.55rem - 1px);
  display:block;
  margin-top:6px;
}

@media(max-width:1100px) {
.tn-cards {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
}

@media(max-width:850px) {
.tn-cards {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
}

@media(max-width:560px) {
.tn-page-hero .tn-stage-content {
  padding:23px 20px 25px;
}
}

@media(max-width:560px) {
.tn-cards {
  grid-template-columns:1fr;
}
}

@media(max-width:560px) {
.tn-card-art {
  height:175px;
}
}

@media(max-width:560px) {
.tn-panel.p-7,
.tn-panel.p-6 {
  padding:19px;
}
}

@media(max-width:560px) {
.tn-banner {
  padding:20px;
  gap:13px;
}
}

@media(max-width:560px) {
.tn-section-title {
  align-items:start;
  flex-wrap:wrap;
}
}

@media(prefers-reduced-motion:reduce) {
.tn-panel,
.tn-card {
  transition:none;
}
}

.tn-readonly-input {
  background:#131123!important;
  border-style:dashed!important;
  opacity:1!important;
  color:#c4b8d4!important;
  cursor:not-allowed!important;
}

.tn-card-meta {
  display:flex;
  align-items:center;
  gap:8px;
}

.tn-card-meta svg {
  flex-shrink:0;
  color:#ed76e4;
}

.tn-favorite-card {
  position:relative;
  min-width:0;
}
.tn-favorite-card > a {
  display:block;
  height:100%;
}
.tn-favorite-button {
  position:absolute;
  z-index:3;
  top:8px;
  right:8px;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:#121020b8;
  color:white;
  cursor:pointer;
}
.tn-favorite-button[aria-pressed="true"] svg {
  fill:#ff394f;
  stroke:#ff394f;
}
.tn-favorite-button:focus-visible {
  outline:2px solid white;
  outline-offset:2px;
}
.tn-favorite-error {
  position:absolute;
  z-index:4;
  top:54px;
  right:8px;
  padding:4px 8px;
  color:white;
  background:#231624;
}
.tn-card-poster {
  width:100%;
  height:100%;
  object-fit:cover;
}

.tn-favorite-dialog {
  position:fixed;
  inset:0;
  margin:auto;
  width:min(26rem, calc(100% - 2rem));
  padding:1.5rem;
  color:inherit;
  background:#19152e;
}
.tn-favorite-dialog::backdrop { background:#080514b8; }
.tn-favorite-dialog h2 { font-size:1.25rem; font-weight:700; }
.tn-favorite-dialog p { margin-block:.65rem 1.25rem; }
.tn-favorite-dialog > div { display:flex; flex-wrap:wrap; gap:.75rem; }


/* Shared single-calendar event date-range control.
 * The calendar is portaled to <body> to avoid clipping in the homepage hero. */
.tn-date-range {
  display:flex;
  align-items:center;
  gap:4px;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:49px;
  border:1px solid #795c99;
  border-radius:7px;
  background:#19142ee6;
  color:#f9edff;
}
.tn-date-range:focus-within {
  border-color:#e877ec;
  box-shadow:0 0 0 3px #e84be823;
}
.tn-date-range-trigger {
  display:flex;
  flex:1 1 auto;
  align-items:center;
  gap:10px;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:47px;
  padding:8px 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:inherit;
  font-family:inherit;
  cursor:pointer;
  text-align:left;
}
.tn-date-range-trigger:focus-visible,
.tn-date-range-clear:focus-visible {
  outline:2px solid #e877ec;
  outline-offset:2px;
}
.tn-date-range-trigger svg {
  flex:0 0 auto;
  color:#e7c4ff;
}
.tn-date-range-value {
  flex:1;
  overflow:hidden;
  min-width:0;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:13px;
  font-weight:650;
}
.tn-date-range-placeholder {color:#d1c2e3;}
.tn-date-range-caret {font-size:19px;color:#e4c0fa;line-height:1;transform:translateY(-2px);}
.tn-date-range-clear {
  flex:0 0 28px;
  display:grid;
  place-items:center;
  width:28px;
  height:32px;
  margin-right:5px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#ecc8ff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.tn-date-range-clear:hover {background:#81439455;color:#fff;}

.tn-date-picker-panel {
  position:fixed;
  z-index:120;
  box-sizing:border-box;
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  padding:11px;
  border:1px solid #ab74cf;
  border-radius:8px;
  background:#19132e;
  box-shadow:0 13px 32px #050312c9,0 0 0 1px #d888ea1c;
  color:#f8edff;
  color-scheme:dark;
}
.tn-date-picker-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:5px;
}
.tn-date-picker-top h3 {
  margin:0;
  font-size:13px;
  font-weight:800;
  letter-spacing:-.02em;
}
.tn-date-picker-top p {
  min-height:14px;
  max-width:240px;
  margin:1px 0 0;
  color:#cbb8db;
  font-size:10px;
  line-height:1.25;
}
.tn-date-picker-close {
  flex:0 0 23px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#dfb8f1;
  font-size:19px;
  cursor:pointer;
}
.tn-date-picker-month {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin:5px 0 4px;
}
.tn-date-picker-month strong {font-size:13px;font-weight:800;}
.tn-date-picker-month button {
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border:1px solid #77518e;
  border-radius:7px;
  background:#302042;
  color:#f5e6ff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.tn-date-picker-month button:hover {background:#563068;border-color:#ca79dd;}
.tn-date-picker-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:2px;
}
.tn-date-picker-weekday {
  display:grid;
  place-items:center;
  min-height:21px;
  color:#c5a6db;
  font-size:11px;
  font-weight:750;
}
.tn-date-picker-day {
  display:grid;
  place-items:center;
  min-width:0;
  height:31px;
  min-height:31px;
  padding:0;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#f8edff;
  font-family:inherit;
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
.tn-date-picker-day:hover {border-color:#bd79e6;background:#49305c;}
.tn-date-picker-day.is-between {background:#603e7b99;color:#fff;}
.tn-date-picker-day.is-selected {
  background:#d34bda;
  color:#150d24;
  border-color:#f797e9;
  font-weight:850;
}
.tn-date-picker-day.is-today:not(.is-selected) {border-color:#9071b5;}
.tn-date-picker-panel button:focus-visible {
  outline:2px solid #ffb6f2;
  outline-offset:2px;
}
.tn-date-picker-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #704d8c;
}
.tn-date-picker-footer > span {
  flex:1 1 120px;
  color:#e5d4ee;
  font-size:10px;
  line-height:1.45;
}
.tn-date-picker-actions {display:flex;align-items:center;gap:5px;}
.tn-date-picker-actions button {
  padding:6px 9px;
  border:1px solid #9565b3;
  border-radius:6px;
  background:#312044;
  color:#fff;
  font-weight:750;
  font-size:10px;
  cursor:pointer;
}
.tn-date-picker-actions button:last-child {
  border-color:#d85de3;
  background:#873391;
}
.tn-date-picker-actions button:hover {filter:brightness(1.2);}
@media(max-width:390px) {
  .tn-date-picker-panel {padding:9px;}
  .tn-date-picker-day {height:31px;min-height:31px;}
}


/* Shared motion layer for summary cards on Account Overview, My Tickets and
   Organizer Studio. The page styles own each card's original gradient/colour. */
:where(.tn-dashboard-stat, .tn-ticket-stat, .tn-studio-stat) {
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
:where(.tn-dashboard-stat, .tn-ticket-stat, .tn-studio-stat)::after {
  content:"";
  position:absolute;
  inset:-224px;
  z-index:0;
  pointer-events:none;
  background:url("/img/ticketneon-paper-grain.svg?v=20261121-fibers") 0 0 / 224px 160px repeat;
  animation:tn-paper-drift 9s linear infinite;
  will-change:transform;
}
:where(.tn-dashboard-stat, .tn-ticket-stat, .tn-studio-stat) > * {
  position:relative;
  z-index:1;
}
@media (prefers-reduced-motion:reduce) {
  :where(.tn-dashboard-stat, .tn-ticket-stat, .tn-studio-stat)::after {
    animation:none;
    transform:none;
    will-change:auto;
  }
}
