/* GivingTuesday Las Vegas — the organization's campaign page, /dashboard/givingtuesday/.
   A dark campaign hero (live countdown + today's countdown graphic), then goal, this
   week's toolkit step, the community, the countdown graphics to post, and sharing. */

.gtd { --gtd-navy: #384e87; --gtd-plum: #541d66; --gtd-cyan: #54c8e8; --gtd-orange: #ff7f40; --gtd-gold: #ffd166; }

/* ---- hero ---- */
.gtd-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; align-items: center;
  padding: 32px; margin-bottom: 20px; border-radius: 18px; color: #fff;
  background:
    radial-gradient(520px 320px at 8% 0%, rgba(84, 200, 232, .30), transparent 65%),
    radial-gradient(480px 300px at 100% 100%, rgba(255, 127, 64, .28), transparent 65%),
    linear-gradient(135deg, #2b1235 0%, #541d66 45%, #384e87 100%);
  box-shadow: 0 18px 50px rgba(43, 18, 53, .28);
}
.gtd-hero::before {            /* drifting confetti dots */
  content: ""; position: absolute; inset: -40px; z-index: -1; opacity: .35;
  background-image:
    radial-gradient(circle, rgba(255, 209, 102, .9) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(84, 200, 232, .9) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255, 127, 64, .8) 1px, transparent 1.5px);
  background-size: 90px 90px, 130px 130px, 70px 70px;
  background-position: 0 0, 40px 60px, 20px 30px;
  animation: gtd-drift 40s linear infinite;
}
@keyframes gtd-drift { to { transform: translate(90px, 130px); } }

.gtd-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gtd-cyan); }
.gtd-eyebrow .gtd-pill { letter-spacing: .04em; }
.gtd-pill { display: inline-block; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; }
.gtd-pill--ok { background: #1f9d55; }
.gtd-hero h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.gtd-hero h2 em { font-style: normal; background: linear-gradient(90deg, var(--gtd-gold), var(--gtd-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gtd-lede { margin: 0 0 22px; max-width: 560px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.gtd-lede a { color: #fff; }

.gtd-clock { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.gtd-clock__unit { min-width: 76px; padding: 10px 12px 8px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.gtd-clock__unit b { display: block; font-size: 34px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.gtd-clock__unit span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.gtd-clock__unit--days { background: linear-gradient(135deg, var(--gtd-orange), #e0532a); border-color: transparent; box-shadow: 0 8px 22px rgba(255, 127, 64, .35); }
.gtd-clock__live { font-size: 28px; font-weight: 800; color: var(--gtd-gold); }

.gtd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gtd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; transition: transform .15s ease, background .15s ease; }
.gtd-btn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.gtd-btn--go { border-color: transparent; color: #2b1235; background: linear-gradient(90deg, var(--gtd-gold), var(--gtd-orange)); box-shadow: 0 8px 22px rgba(255, 127, 64, .35); }
.gtd-btn--go:hover { background: linear-gradient(90deg, #ffe08a, #ff9560); }
.gtd-btn[disabled] { opacity: .6; cursor: default; transform: none; }

.gtd-today { position: relative; display: block; justify-self: end; width: 100%; max-width: 320px; }
.gtd-today__card { display: block; border-radius: 16px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 20px 50px rgba(10, 4, 18, .5); transition: transform .25s ease; }
.gtd-today__card:hover, .gtd-today__card:focus-visible { transform: rotate(0) scale(1.02); }
.gtd-today__card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; background: #2d2435; }
.gtd-rubot { position: absolute; z-index: 2; right: -14px; bottom: -22px; width: 84px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); animation: gtd-bob 3.2s ease-in-out infinite; }
@keyframes gtd-bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* ---- tiles ---- */
.gtd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.gtd-grid--one { grid-template-columns: 1fr !important; }
.gtd-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px; border-radius: 14px; background: var(--cg-surface); border: 1px solid var(--cg-border); box-shadow: var(--cg-shadow); }
.gtd-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 14px 14px 0 0; background: var(--gtd-accent, var(--gtd-plum)); }
.gtd-tile--goal { --gtd-accent: linear-gradient(90deg, var(--gtd-orange), var(--gtd-gold)); }
.gtd-tile--week { --gtd-accent: linear-gradient(90deg, var(--gtd-plum), #963d97); }
.gtd-tile--city { --gtd-accent: linear-gradient(90deg, var(--gtd-navy), var(--gtd-cyan)); }
.gtd-tile h3 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cg-text-muted); }
.gtd-tile__foot { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; }

.gtd-goal { display: flex; align-items: center; gap: 16px; }
.gtd-ring { flex: 0 0 104px; width: 104px; height: 104px; }
.gtd-ring circle { fill: none; stroke-width: 10; }
.gtd-ring .gtd-ring__bg { stroke: var(--cg-surface-2); stroke: color-mix(in srgb, var(--cg-border) 70%, transparent); }
.gtd-ring .gtd-ring__fg { stroke: url(#gtd-ring-grad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.gtd-ring text { font-size: 22px; font-weight: 800; fill: var(--cg-text); dominant-baseline: central; text-anchor: middle; }
.gtd-big { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--cg-text); }
.gtd-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--cg-text-muted); }
.gtd-minis { display: flex; gap: 18px; margin-top: 14px; }
.gtd-minis b { display: block; font-size: 18px; color: var(--cg-text); }
.gtd-minis span { font-size: 12px; color: var(--cg-text-muted); }

.gtd-week__title { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: var(--cg-text); }
.gtd-week__when { margin: 0 0 10px; font-size: 13px; color: var(--cg-text-muted); }
.gtd-week ul { margin: 0; padding: 0; list-style: none; }
.gtd-week li { position: relative; padding: 0 0 8px 22px; font-size: 14px; line-height: 1.45; color: var(--cg-text); }
.gtd-week li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #963d97; }

.gtd-rank { display: flex; align-items: baseline; gap: 6px; }
.gtd-rank b { font-size: 30px; font-weight: 800; color: var(--cg-text); }

/* ---- countdown graphics ---- */
.gtd-section { margin-bottom: 20px; padding: 20px; border-radius: 14px; background: var(--cg-surface); border: 1px solid var(--cg-border); box-shadow: var(--cg-shadow); }
.gtd-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gtd-section__head h3 { margin: 0; font-size: 18px; }
.gtd-section__head p { margin: 0; font-size: 13px; color: var(--cg-text-muted); }
.gtd-reel { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto; padding: 12px 8px 12px; scroll-snap-type: x proximity; }
.gtd-shot { scroll-snap-align: start; margin: 0; }
.gtd-shot .gtd-shot__img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--cg-border); transition: transform .15s ease, box-shadow .15s ease; }
.gtd-shot a.gtd-shot__img:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(36, 29, 43, .18); }
.gtd-shot img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #2d2435; }
.gtd-shot figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--cg-text-muted); }
.gtd-shot figcaption a { font-weight: 700; }
.gtd-shot--today a.gtd-shot__img { outline: 3px solid var(--gtd-orange); outline-offset: 2px; }
.gtd-shot--locked .gtd-shot__img { position: relative; pointer-events: none; }
.gtd-shot--locked img { filter: blur(10px) saturate(.6); transform: scale(1.1); }
.gtd-shot--locked .gtd-shot__img::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; background: rgba(43, 18, 53, .35); }

/* ---- share ---- */
.gtd-share { display: flex; gap: 8px; flex-wrap: wrap; }
.gtd-share .cg-input { flex: 1 1 260px; min-width: 0; }
.gtd-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gtd-social a { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; }
.gtd-social .fb { background: #1877f2; } .gtd-social .x { background: #111; } .gtd-social .li { background: #0a66c2; } .gtd-social .em { background: var(--gtd-plum); }

/* ---- join (not opted in) ---- */
.gtd-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; max-width: 600px; }
.gtd-perks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.gtd-perks li span { font-size: 20px; line-height: 1; }

.gtd-foot { font-size: 13px; color: var(--cg-text-muted); }

@media (max-width: 1100px) { .gtd-grid { grid-template-columns: 1fr 1fr; } .gtd-tile--city { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .gtd-hero { grid-template-columns: 1fr; padding: 24px 18px; }
  .gtd-today { justify-self: center; max-width: 260px; }
  .gtd-grid { grid-template-columns: 1fr; }
  .gtd-perks { grid-template-columns: 1fr; }
  .gtd-clock__unit { min-width: 64px; } .gtd-clock__unit b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .gtd-hero::before, .gtd-rubot { animation: none; }
  .gtd-today__card, .gtd-btn, .gtd-shot a.gtd-shot__img { transition: none; }
  .gtd-ring .gtd-ring__fg { transition: none; }
}
