/* ==========================================================================
   hangout  — UI Components (Aqua meet Cards, Modals, Forms)
   Strictly NO Emojis and NO Icons — Grounded Early Apple Web Feel
   ========================================================================== */

/* ==========================================================================
   meet Card Component (Grounded Directory Item)
   ========================================================================== */

.meet-card {
  background: #ffffff;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  padding: 14px;
  position: relative;
  transition:
    border-color 0.1s ease,
    box-shadow 0.1s ease;
}

.meet-card:hover {
  border-color: #888888;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.meet-card-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 0;
}

.meet-card-header .micro-tab-badge {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.025em;
  padding: 2px 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meet-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.meet-card.is-highlighted {
  border-color: #2c76df;
  box-shadow: 0 0 0 2px rgba(44, 118, 223, 0.25);
}

.joined-count-stamp {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: var(--radius-micro);
  color: #1c52a4;
  background: linear-gradient(180deg, #f8fbff 0%, #e6f0fd 100%);
  border: 1px solid #9cc0ef;
  box-shadow: inset 0 1px 0 #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
}

.joined-count-stamp.is-full {
  color: #a8071a;
  background: linear-gradient(180deg, #fff1f0 0%, #ffccc7 100%);
  border-color: #ffa39e;
}

.meet-card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meet-card-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: #4a4a4a;
  margin-bottom: 12px;
  min-height: 18px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meet-card-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e5e5e5;
  padding-top: 10px;
  margin-top: auto;
}

.meet-meta-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.meet-action-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.card-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #777777;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.card-icon-btn:hover {
  color: #1c52a4;
  background: #f3f6fa;
  border-color: #d6e0ec;
}

.card-icon-btn.report-room-trigger:hover {
  color: #cf1322;
  background: #fff2f0;
  border-color: #ffccc7;
}

.card-icon-svg {
  width: 13px;
  height: 13px;
  display: block;
}

.report-summary-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  border: 1px solid #d4d8de;
  border-radius: 4px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meet-time-stamp,
.meet-expiry-stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.meet-time-stamp {
  color: #666666;
}

.meet-expiry-stamp {
  color: #222222;
  font-weight: 700;
}

.meta-icon-svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.78;
}

/* ==========================================================================
   Empty State Card
   ========================================================================== */

.empty-state-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #afafaf;
  border-radius: 4px;
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: #111111;
}

.empty-state-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #555555;
  max-width: 400px;
  line-height: 1.5;
}

/* ==========================================================================
   Modal Dialog (Classic Mac OS X Window Chrome)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 16px;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid #7e7e7e;
  border-radius: 5px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: scale(0.97) translateY(-6px);
  transition: transform 0.15s ease;
}

.modal-backdrop.is-open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #ebebeb 0%, #d4d4d4 100%);
  border-bottom: 1px solid #aeaeae;
  user-select: none;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #2d2d2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modal-close-trigger {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
}

.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 78vh;
  overflow-y: auto;
}

/* Form Controls & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #222222;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-label-optional {
  font-weight: 400;
  color: #777777;
  text-transform: none;
  font-size: 11px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid #999999;
  border-radius: 3px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.12),
    0 1px 0 #ffffff;
  color: #111111;
  outline: none;
  transition: border-color 0.12s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #3b82e8;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 3px rgba(59, 130, 232, 0.4);
}

.form-textarea {
  resize: vertical;
  min-height: 56px;
}

.form-hint {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #666666;
  line-height: 1.35;
}

/* Minimal Star Rating Control (Contact / Feedback Modal) */
.star-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.star-rating-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.star-rating-btn {
  background: none;
  border: none;
  padding: 2px;
  margin: 0;
  font-size: 20px;
  line-height: 1;
  color: #cccccc;
  cursor: pointer;
  transition: color 0.1s ease, transform 0.1s ease;
}

.star-rating-btn:hover,
.star-rating-btn.is-active,
.star-rating-btn.is-hover {
  color: #e6a100;
}

.star-rating-btn:active {
  transform: scale(0.92);
}

.star-rating-text {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #666666;
}

/* Google Meet Knock Guidance Card (Clean Notice, No Emojis, No Left Color Line) */
.guidance-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  border: 1px solid #d4d8de;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.guidance-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guidance-title {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: #2b3a4a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.guidance-desc {
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.4;
  color: #333333;
}

.guidance-tip-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #e7ebf0;
}

.guidance-tip-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  background: #eef2f6;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
  margin-top: 1px;
}

.guidance-tip-text {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.35;
  color: #555555;
}

.guidance-header {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: #2b3a4a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.guidance-text {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.4;
  color: #333333;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: #f4f4f4;
  border-top: 1px solid #d0d0d0;
}

/* ==========================================================================
   Documentation / Showcase Content Box (for hangout .html & about.html)
   ========================================================================== */

.content-window {
  background: #ffffff;
  border: 1px solid #b0b0b0;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.content-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(180deg, #ebebeb 0%, #d8d8d8 100%);
  border-bottom: 1px solid #b4b4b4;
}

.content-window-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #333333;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.content-window-body {
  padding: 22px 26px;
  color: #333333;
  font-size: 13px;
  line-height: 1.6;
}

.content-window-body h2 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #111111;
}

.content-window-body h3 {
  font-size: 18px;
  margin: 18px 0 8px 0;
  color: #111111;
}

/* ==========================================================================
   Form Error & Success Feedback Components (No Emojis, No Icons)
   ========================================================================== */

.form-error-alert {
  background: #fff5f5;
  border: 1px solid #e2a6a2;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
  color: #9e1c16;
}

.form-error-alert ul {
  margin-left: 16px;
  margin-top: 4px;
}

.form-error-alert li {
  margin-bottom: 2px;
}

/* Success Modal Styles */
.success-summary-box {
  background: #fbfbfb;
  border: 1px solid #d4d8de;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #333333;
}

.success-meet-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
}

.success-meet-link-row {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.success-meet-link-label {
  font-weight: 700;
  font-size: 11px;
  color: #237804;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.success-meet-anchor {
  color: #0055cc;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  text-decoration: underline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-display-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.key-readonly-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  background: #fafafa;
  color: #222222;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  outline: none;
  user-select: all;
}

.warning-callout {
  background: #fffdf0;
  border: 1px solid #ead896;
  border-radius: 4px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: #5c4300;
}

.warning-callout-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
}

.copy-feedback {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: #1b5e20;
  margin-top: 4px;
  display: block;
}

.content-window-body p {
  margin-bottom: 12px;
}

.content-window-body ul,
.content-window-body ol {
  margin-left: 20px;
  margin-bottom: 14px;
}

.content-window-body li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Apple March 2001 Layout ("Rip. Mix. Burn." Hero & 4 Feature Cards)
   ========================================================================== */

.apple-hero-container {
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 12px 0 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.apple-hero-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.apple-hero-image {
  max-width: 380px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
}

.apple-hero-right {
  flex: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apple-hero-headline {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: #111111;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
}

.apple-hero-subhead {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: #555555;
  line-height: 1.35;
  margin: 0 0 22px 0;
}

.apple-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* News Headline Bar (March 2001 Apple style) */
.apple-headline-bar {
  background: linear-gradient(180deg, #fbfbfb 0%, #ececec 100%);
  border: 1px solid #bebebe;
  border-radius: 4px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.apple-headline-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apple-news-pill {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  color: #222222;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.apple-news-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #222222;
}

.apple-news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #666666;
  white-space: nowrap;
}

/* 4 Feature Cards Grid */
.apple-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.apple-feature-card {
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.feature-card-header {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  line-height: 1.15;
  margin: 0 0 6px 0;
  text-align: center;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.feature-card-image {
  height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 6px 0;
}

.feature-card-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
  color: #4a4a4a;
  text-align: center;
  margin: 0;
}

.feature-card-badge {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dotted #d0d0d0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #777777;
  text-align: center;
  width: 100%;
}

@media (max-width: 860px) {
  .apple-hero-container {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .apple-hero-image {
    max-width: 300px;
  }

  .apple-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .apple-hero-headline {
    font-size: 38px;
  }

  .apple-hero-subhead {
    font-size: 16px;
  }

  .apple-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .apple-hero-container {
    padding: 18px 14px;
    gap: 16px;
  }

  .apple-hero-image {
    max-width: 220px;
  }

  .apple-hero-headline {
    font-size: 30px;
  }

  .apple-hero-subhead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .apple-hero-actions {
    width: 100%;
  }

  .apple-hero-actions .aqua-button {
    flex: 1 1 130px;
    font-size: 13px;
    padding: 10px 16px;
  }

  .apple-feature-grid {
    grid-template-columns: 1fr;
  }

  .apple-headline-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .apple-headline-left {
    flex-wrap: wrap;
    gap: 6px;
  }

  .apple-news-date {
    margin-left: 0;
  }

  .content-window-body {
    padding: 16px 14px;
  }

  .content-window-body h2 {
    font-size: 20px;
  }

  .content-window-body h3 {
    font-size: 15px;
  }

  .content-window-body code {
    word-break: break-word;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-body {
    padding: 14px;
    max-height: 75vh;
  }

  .modal-footer {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .key-display-group {
    flex-direction: column;
    align-items: stretch;
  }

  .success-meet-link-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .success-meet-anchor {
    max-width: 100%;
  }
}
