/* ignite27 — component styles, mirroring the design system's component .jsx specs */

/* ---- Buttons ------------------------------------------------------------*/
.btn {
  cursor: pointer; font-family: var(--ig-font-sans); font-weight: 700; border-radius: var(--ig-radius-pill);
  border: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  text-align: center;
  transition: transform .16s var(--ig-ease), box-shadow .16s ease, filter .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:disabled { cursor: not-allowed; }
.btn-sm { font-size: 13px; padding: 9px 20px; }
.btn-md { font-size: 15px; padding: 14px 30px; }
.btn-lg { font-size: 17px; padding: 18px 40px; }
.btn-primary { color: #fff; background: linear-gradient(90deg, #EC008C, #F15F22 80%); }
.btn-secondary { color: var(--ig-ink); background: #fff; border: 1.5px solid var(--ig-ink); }
.btn-ghost { color: var(--ig-primary-magenta); background: transparent; }
.btn-quiet { color: var(--ig-ink); background: var(--ig-white-200); }
.btn-on-gradient { color: #fff; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }

.btn-primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-2px) scale(1.02); box-shadow: var(--ig-shadow-glow); }
.btn-secondary:hover:not(:disabled) { background: var(--ig-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 9px 22px rgba(35,31,32,.3); }
.btn-ghost:hover:not(:disabled) { background: #FCE6F1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(236,0,140,.2); }
.btn-quiet:hover:not(:disabled) { background: var(--ig-white-300); transform: translateY(-2px); box-shadow: 0 7px 18px rgba(35,31,32,.16); }
.btn-on-gradient:hover:not(:disabled) { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ig-primary-magenta); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--ig-primary-magenta); }
.btn:disabled { color: var(--ig-charcoal-100) !important; background: var(--ig-white-200) !important; border: none !important; filter: none !important; transform: none !important; box-shadow: none !important; }
.btn-block { width: 100%; }
.icon-btn {
  cursor: pointer; border: 1.5px solid var(--ig-border); background: #fff; border-radius: 50%;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ig-text-heading); flex: 0 0 auto; transition: all .15s ease;
}
.icon-btn:hover { background: var(--ig-white-200); transform: translateY(-1px); }

/* ---- Badges & Tags --------------------------------------------------------*/
.badge {
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 100px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.4;
}
.badge-featured { color: #fff; background: var(--ig-gradient-logo); }
.badge-live { color: #fff; background: var(--ig-secondary-sky); }
.badge-success { color: #fff; background: var(--ig-secondary-green); }
.badge-warning { color: var(--ig-ink); background: var(--ig-secondary-yellow); }
.badge-keynote { color: var(--ig-primary-magenta); background: #FCE6F1; }
.badge-mauve { color: #fff; background: var(--ig-secondary-mauve); }
.badge-dark { color: #fff; background: var(--ig-ink); }
.badge-neutral { color: var(--ig-ink); background: var(--ig-white-200); }
.badge-sold { color: #fff; background: var(--ig-charcoal-200); }
.badge-danger { color: #fff; background: #E5384A; }
.badge-outline { color: var(--ig-text-muted-safe); background: transparent; border: 1.5px solid var(--ig-border); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--ig-white-200);
  color: var(--ig-text); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1.5px solid transparent;
}
.tag.active { background: #FCE6F1; color: var(--ig-primary-magenta); border-color: rgba(236,0,140,.3); }

/* ---- Cards ---------------------------------------------------------------*/
.card { border-radius: 20px; box-sizing: border-box; background: #fff; box-shadow: var(--ig-shadow-02); border: 1px solid var(--ig-white-200); overflow: hidden; }
.card-pad { padding: 22px; }
.card-flat { box-shadow: none; border: 1px solid var(--ig-border); }
.card-dark { background: var(--ig-ink); color: #fff; border: none; }
.card-hover { transition: transform .18s var(--ig-ease), box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--ig-shadow-03); }

/* ---- Speaker card (styled like the session cards: full-bleed cover + body,
   shared by the full speakers grid and the home page preview) -------------*/
.speaker-card { display: block; }
.speaker-card-cover {
  height: 168px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px; box-sizing: border-box;
}
.speaker-card-cover .speaker-card-initials {
  font-style: italic; font-weight: 200; font-size: 46px; line-height: 1; color: #fff; opacity: .92;
}
.speaker-card-body { padding: 22px; }
.speaker-card-body h3 { font-size: 17px; font-weight: 700; color: var(--ig-ink); margin-bottom: 2px; }
.speaker-card-body .role { font-size: 13px; color: var(--ig-text-muted-safe); margin-bottom: 12px; }
.speaker-card-body p.bio { font-size: 13.5px; color: var(--ig-text); line-height: 1.55; margin-bottom: 14px; }

.speaker-card-compact { display: block; text-decoration: none; }
.speaker-card-compact .speaker-card-cover { height: 140px; }
.speaker-card-compact .speaker-card-initials { font-size: 36px; }
.speaker-card-compact-body { padding: 18px 20px 22px; }
.speaker-card-compact-body h4 { font-size: 16px; font-weight: 700; color: var(--ig-ink); margin-bottom: 3px; }
.speaker-card-compact-body p { font-size: 13px; color: var(--ig-text-muted-safe); line-height: 1.4; }

/* ---- Placeholder logo mark (sponsors/partners without an uploaded logo) --*/
.logo-mark {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 12px; color: #fff; font-weight: 700; font-style: italic; letter-spacing: -.02em;
}
.logo-mark-lg { width: 56px; height: 56px; font-size: 19px; margin: 0 auto 14px; }
.logo-mark-sm { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }

/* Reuse the same gradients as .avatar.grad-* so speaker covers match their avatar color */
.cover-grad-a { background: linear-gradient(135deg,#EC008C,#F15F22); }
.cover-grad-b { background: linear-gradient(135deg,#8400FF,#3100FF); }
.cover-grad-c { background: linear-gradient(135deg,#00A1FF,#00D9EC); }
.cover-grad-d { background: linear-gradient(135deg,#1EC600,#00D9EC); }

/* ---- Inputs / forms -------------------------------------------------------*/
.field-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ig-text-muted-safe); margin-bottom: 8px;
}
.input, .textarea, .select {
  width: 100%; box-sizing: border-box; font-family: var(--ig-font-sans); font-size: 15px; color: var(--ig-ink);
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--ig-border); outline: none; background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2.5' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--ig-charcoal-100); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ig-primary-magenta); box-shadow: 0 0 0 3px rgba(236,0,140,.14); }
.input:disabled, .textarea:disabled { background: var(--ig-white-200); color: var(--ig-charcoal-100); cursor: not-allowed; }
.input-error { border-color: #E5384A; }
.input-error:focus { box-shadow: 0 0 0 3px rgba(229,56,74,.16); }
.field-help { margin-top: 8px; font-size: 13px; color: var(--ig-text-muted-safe); }
.field-error { margin-top: 8px; font-size: 13px; color: #E5384A; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.checkbox-row, .radio-row { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.checkbox-box {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ig-border); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; transition: all .12s ease;
}
input:checked + .checkbox-box, .checkbox-box.checked {
  background: var(--ig-gradient-logo); border-color: transparent; color: #fff;
}
.radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ig-border); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
input:checked + .radio-dot, .radio-dot.checked { border-color: var(--ig-primary-magenta); }
input:checked + .radio-dot::after, .radio-dot.checked::after { content:""; width: 11px; height: 11px; border-radius: 50%; background: var(--ig-gradient-logo); }
.hidden-input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Segmented control */
.segmented { display: inline-flex; gap: 4px; background: var(--ig-white-200); border-radius: 100px; padding: 4px; }
.segmented.block { display: flex; width: 100%; }
.segmented button {
  cursor: pointer; border: none; font-family: var(--ig-font-sans); font-size: 14px; font-weight: 700;
  padding: 9px 18px; border-radius: 100px; flex: 1; text-align: center; background: transparent; color: var(--ig-text-muted-safe);
  transition: all .15s ease; white-space: nowrap;
}
.segmented button.active { background: #fff; color: var(--ig-ink); box-shadow: 0 1px 4px rgba(35,31,32,.12); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ig-border); overflow-x: auto; }
.tabs button {
  cursor: pointer; border: none; background: transparent; font-family: var(--ig-font-sans); font-weight: 700;
  font-size: 14px; color: var(--ig-text-muted-safe); padding: 12px 16px; position: relative; white-space: nowrap;
}
.tabs button.active { color: var(--ig-ink); }
.tabs button.active::after { content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2.5px; border-radius:100px; background: var(--ig-gradient-logo); }

/* Chips (filter) */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Stepper */
.stepper { display: flex; align-items: center; }
.stepper .step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.stepper .circle {
  width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--ig-white-200); color: var(--ig-text-muted-safe);
}
.stepper .step.done .circle { background: linear-gradient(135deg,#EC008C,#F15F22); color: #fff; }
.stepper .step.active .circle { background: var(--ig-primary-magenta); color: #fff; }
.stepper .step-label { font-size: 11px; font-weight: 700; color: var(--ig-text-muted-safe); }
.stepper .step.active .step-label, .stepper .step.done .step-label { color: var(--ig-ink); }
.stepper .bar { flex: 1; height: 2px; margin: 0 8px 22px; background: var(--ig-border); }
.stepper .bar.done { background: linear-gradient(90deg,#F15F22,#EC008C); }

/* Accordion */
.accordion { border: 1px solid var(--ig-border); border-radius: 20px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--ig-white-200); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; background: transparent; border: none; text-align: left; font-family: var(--ig-font-sans);
}
.accordion-trigger .q { font-size: 16px; font-weight: 700; color: var(--ig-ink); }
.accordion-trigger .icon { font-size: 22px; color: var(--ig-primary-magenta); font-weight: 300; flex: 0 0 auto; line-height: 1; }
.accordion-panel { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .22s var(--ig-ease), padding .22s ease; }
.accordion-panel p { font-size: 14px; color: var(--ig-text-muted-safe); line-height: 1.6; }
.accordion-item.open .accordion-panel { max-height: 600px; padding: 0 24px 20px; }

/* Modal */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(35,31,32,.55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.modal-scrim.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 24px; width: 100%; padding: 36px; box-shadow: var(--ig-shadow-04);
  box-sizing: border-box; max-height: 90vh; overflow-y: auto;
}
.modal-sm { max-width: 380px; } .modal-md { max-width: 460px; } .modal-lg { max-width: 620px; } .modal-xl { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.modal-head h3 { font-style: italic; font-weight: 400; font-size: 26px; }
.modal-close {
  border: none; background: var(--ig-white-200); cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ig-text-muted-safe); flex: 0 0 auto;
}

/* Toast */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: var(--ig-ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--ig-shadow-03); display: flex; align-items: center; gap: 10px; max-width: 340px;
  animation: toast-in .2s var(--ig-ease);
}
.toast.success { background: linear-gradient(120deg,#12960a,#1EC600); }
.toast.error { background: #E5384A; }
@keyframes toast-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* Alert */
.alert { border-radius: 16px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert-info { background: #E9F6FF; }
.alert-info .alert-title { color: #0A63D8; }
.alert-success { background: #EAFBE6; }
.alert-success .alert-title { color: #12960a; }
.alert-warning { background: #FFF7E0; }
.alert-warning .alert-title { color: #8a6600; }
.alert-danger { background: #FCEBED; }
.alert-danger .alert-title { color: #c21e30; }
.alert-title { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.alert p { font-size: 13.5px; color: var(--ig-text); margin: 0; }

/* Avatar */
.avatar {
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  color: #fff; font-weight: 700; background: linear-gradient(135deg,#8400FF,#3100FF); overflow: hidden;
}
.avatar.grad-a { background: linear-gradient(135deg,#EC008C,#F15F22); }
.avatar.grad-b { background: linear-gradient(135deg,#8400FF,#3100FF); }
.avatar.grad-c { background: linear-gradient(135deg,#00A1FF,#00D9EC); }
.avatar.grad-d { background: linear-gradient(135deg,#1EC600,#00D9EC); }

/* Progress */
.progress-bar { height: 8px; border-radius: 100px; background: var(--ig-white-200); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--ig-gradient-logo); border-radius: 100px; transition: width .3s ease; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--ig-white-200) 25%, #eaeaea 37%, var(--ig-white-200) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Empty state */
.empty-state { text-align: center; padding: 56px 24px; color: var(--ig-text-muted-safe); }
.empty-state .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: var(--ig-white-200); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--ig-text-muted-safe); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ig-text-muted-safe); padding: 10px 14px; border-bottom: 1px solid var(--ig-border); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--ig-white-200); }
.data-table tr:last-child td { border-bottom: none; }

/* star / save button */
.star-btn { border: 1.5px solid var(--ig-border); background: #fff; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ig-text-muted-safe); flex: 0 0 auto; transition: all .15s ease; }
.star-btn.saved { background: #FCE6F1; border-color: transparent; color: var(--ig-primary-magenta); }
.star-btn:hover { transform: translateY(-1px); }

/* Divider dot for metadata */
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--ig-text-muted-safe); }

/* Loading spinner */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ig-white-300); border-top-color: var(--ig-primary-magenta); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Weather widget */
.weather-widget { }
.weather-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.weather-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.weather-day { background: var(--ig-white-200); border-radius: 14px; padding: 16px 10px; text-align: center; }
.wd-label { font-size: 11px; font-weight: 700; color: var(--ig-text-muted-safe); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.wd-icon { font-size: 26px; margin-bottom: 6px; }
.wd-temp { font-size: 20px; font-weight: 700; color: var(--ig-ink); }
.wd-lo { font-size: 13px; font-weight: 500; color: var(--ig-text-muted-safe); }
.wd-cond { font-size: 12px; color: var(--ig-text-muted-safe); margin-top: 4px; }

/* Info tiles (venue at-a-glance) */
.info-tile { display: flex; gap: 14px; align-items: flex-start; }
.info-tile .info-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ig-white-200); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--ig-primary-magenta); }
.info-tile h4 { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ig-ink); margin-bottom: 4px; }
.info-tile p { font-size: 13.5px; color: var(--ig-text-muted-safe); margin: 0; }
