/* JSP-only additions on top of the design's style.css */

/* Our Apps (data from ${publicApps}) */
.apps-grid { margin-top: 48px; }
.app-card { display: block; color: inherit; text-decoration: none; }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.app-card-icon { width: 56px; height: 56px; border-radius: 14px; background: #fff; object-fit: contain; }
.app-card-link { color: var(--muted); font-size: 14px; transition: color .25s; }
.app-card:hover .app-card-link { color: var(--violet); }
/* Compact app card: icon + name in one row, no description */
.app-card-compact { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.app-card-compact .app-card-icon { width: 48px; height: 48px; flex: 0 0 auto; }
.app-card-compact .app-card-name { flex: 1; min-width: 0; margin: 0; font-size: 17px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-compact .app-card-link { align-self: flex-start; flex: 0 0 auto; }

/* StaySaver pop-up, restyled to match the home-v2 design system (dark glass card,
   gradient text, pill badges) instead of the legacy Bootstrap-flavoured look. */
#flyfareModal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; opacity: 0; transition: opacity .3s ease; }
#flyfareModal.show { opacity: 1; }
#flyfareModalBackdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(5, 6, 14, 0.7); backdrop-filter: blur(6px); display: none; opacity: 0; transition: opacity .3s ease; }
#flyfareModalBackdrop.show { opacity: 1; }

#flyfareModal .ss-dialog { position: relative; width: 100%; max-width: 440px; margin: 1.75rem auto; min-height: calc(100% - 3.5rem); display: flex; align-items: center; padding: 0 16px; }

#flyfareModal .ss-content {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 40px 32px 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, var(--card), var(--card-2)), var(--bg-1);
  box-shadow: var(--glow);
  backdrop-filter: blur(18px) saturate(1.3);
  font-family: var(--f-body);
  color: var(--text);
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
#flyfareModal.show .ss-content { transform: translateY(0) scale(1); opacity: 1; }

#flyfareModal .ss-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
#flyfareModal .ss-close:hover { border-color: var(--cyan); color: var(--text); background: rgba(99, 228, 255, 0.08); }

#flyfareModal .ss-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--stroke-2);
  background: rgba(84, 228, 166, 0.1);
  color: var(--green);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#flyfareModal .ss-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(84, 228, 166, 0.6);
  animation: ss-pulse 1.8s infinite;
}
@keyframes ss-pulse {
  0% { box-shadow: 0 0 0 0 rgba(84, 228, 166, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(84, 228, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(84, 228, 166, 0); }
}

#flyfareModal .ss-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 22%; margin: 18px auto 0; display: block; background: var(--text); }

#flyfareModal .ss-title { font-family: var(--f-disp); font-size: clamp(20px, 4vw, 26px); font-weight: 700; line-height: 1.25; margin: 18px 0 10px; }
#flyfareModal .ss-sub { color: var(--dim); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }

#flyfareModal .ss-features { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; padding: 0; text-align: left; }
#flyfareModal .ss-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
#flyfareModal .ss-feature-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  background: var(--grad-soft);
  border: 1px solid var(--stroke);
  color: var(--cyan);
}
#flyfareModal .ss-feature-icon svg { width: 16px; height: 16px; }

#flyfareModal .ss-tag { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
#flyfareModal .ss-store { justify-content: center; margin: 0; }
@media (max-width: 576px) { #flyfareModal .ss-content { padding: 36px 20px 28px; } }
