/* ============================================================
   PaaS Marketplace App Pages - Shared Styles (v1)
   Used by: paas/apps/<slug>/index.html (one page per marketplace package)
   Generated by generate_paas_apps.js from paas-apps-data.json.
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* -- Hero -- */
.app-hero { position: relative; z-index: 1; padding: 9rem 3rem 3rem; }
.app-hero-inner { max-width: 1100px; margin: 0 auto; }
/* styles.css styles the bare <nav> element as the fixed top bar, so the
   breadcrumb nav has to opt out of every property that rule sets. */
.app-crumb { position: static; display: block; width: auto; padding: 0; margin-bottom: 1.75rem; background: none; backdrop-filter: none; border: none; z-index: auto; font-size: 0.85rem; color: var(--text-muted); overflow-wrap: break-word; }
.app-crumb a { color: var(--text-secondary); text-decoration: none; }
.app-crumb a:hover { color: var(--accent-gold); }
.app-crumb span { margin: 0 0.4rem; }
.app-hero-top { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
/* Vendor logos are drawn for light backgrounds, so the tile is a light plate. */
.app-logo { width: 88px; height: 88px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: #f8fafc; }
.app-logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
.app-hero-titles { flex: 1; min-width: 0; }
.app-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.app-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0.25rem 0.75rem; border: 1px solid var(--border-subtle); border-radius: 100px; background: var(--bg-card); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.app-chip:hover { color: var(--text-primary); border-color: rgba(245, 166, 35, 0.3); }
.app-chip-gold { border-color: rgba(245, 166, 35, 0.3); background: var(--accent-gold-dim); color: var(--accent-gold); }
.app-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: break-word; }
.app-hero h1 .gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.app-lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.75; max-width: 820px; margin: 0 0 2rem; overflow-wrap: break-word; }
.app-lead strong { color: var(--text-primary); }
.app-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.app-hero-cta .btn svg { flex-shrink: 0; }
.app-hero-cta .btn { min-height: 48px; }
.app-hero-note { font-size: 0.85rem; color: var(--text-muted); margin: -1.5rem 0 2.5rem; }
.app-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.app-stat-value { font-family: 'Space Mono', monospace; font-size: 1.5rem; font-weight: 700; color: var(--accent-gold); overflow-wrap: break-word; }
.app-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* -- Generic section shell -- */
.app-section { position: relative; z-index: 1; padding: 4.5rem 3rem; }
.app-section-alt { background: var(--bg-secondary); }
.app-inner { max-width: 1100px; margin: 0 auto; }
.app-inner-narrow { max-width: 860px; margin: 0 auto; }
.app-section .section-header { margin-bottom: 2.5rem; }
.app-section .section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); overflow-wrap: break-word; }
.app-prose p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem; overflow-wrap: break-word; }
.app-prose p:last-child { margin-bottom: 0; }
.app-prose strong { color: var(--text-primary); }
.app-prose a, .app-facts a, .app-note a, .app-list li a, .app-card p a, .section-subtitle a { color: var(--accent-gold); text-decoration: none; border-bottom: 1px solid rgba(245, 166, 35, 0.3); }
.app-prose a:hover, .app-facts a:hover, .app-note a:hover, .app-list li a:hover, .app-card p a:hover, .section-subtitle a:hover { border-bottom-color: var(--accent-gold); }

/* -- Facts table -- */
.app-facts-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-card); }
.app-facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.app-facts th, .app-facts td { padding: 0.9rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); line-height: 1.6; }
.app-facts tr:last-child th, .app-facts tr:last-child td { border-bottom: none; }
.app-facts th { width: 32%; min-width: 150px; color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.app-facts td { color: var(--text-secondary); overflow-wrap: anywhere; }
.app-facts caption { text-align: left; padding: 0 0 0.75rem; color: var(--text-muted); font-size: 0.85rem; caption-side: top; }

/* -- Card grids (deploys, features, use cases, related) -- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.25rem; }
.app-card { padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; transition: border-color 0.3s ease, transform 0.3s ease; min-width: 0; }
.app-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.app-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; overflow-wrap: break-word; }
.app-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; overflow-wrap: break-word; }
.app-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-gold-dim); color: var(--accent-gold); margin-bottom: 1rem; }
.app-card-num { font-family: 'Space Mono', monospace; font-size: 1.4rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 0.75rem; }

/* -- Topology list -- */
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.app-list li { display: flex; gap: 0.9rem; padding: 1.1rem 1.35rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; overflow-wrap: break-word; min-width: 0; }
.app-list li svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.25rem; color: var(--accent-green); }
.app-list li strong { color: var(--text-primary); }

/* -- Related packages -- */
.app-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.app-related-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color 0.3s ease, transform 0.3s ease; min-width: 0; min-height: 44px; }
.app-related-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-2px); }
.app-related-logo { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #f8fafc; }
.app-related-logo img { width: 32px; height: 32px; object-fit: contain; border-radius: 5px; }
.app-related-name { font-size: 0.95rem; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; min-width: 0; }
.app-related-cat { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }
.app-note { margin-top: 1.75rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-card); font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; overflow-wrap: break-word; }

/* -- Mobile / tablet performance (defense-in-depth; critical.css kills these globally) -- */
@media (max-width: 1024px) {
    .app-card, .app-related-card { transition: none; }
    .app-card:hover, .app-related-card:hover { transform: none; box-shadow: none; }
    .app-crumb { backdrop-filter: none; }
    .app-section-alt, .faq-section { content-visibility: auto; contain-intrinsic-size: auto 800px; }
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .app-hero { padding: 7rem 1.5rem 2.5rem; }
    .app-hero-top { gap: 1rem; }
    .app-logo { width: 68px; height: 68px; border-radius: 16px; }
    .app-logo img { width: 50px; height: 50px; }
    .app-section { padding: 3.5rem 1.5rem; }
    .app-facts th, .app-facts td { padding: 0.75rem 1rem; font-size: 0.9rem; }
    .app-facts th { white-space: normal; min-width: 120px; }
}
@media (max-width: 480px) {
    .app-hero { padding: 6.5rem 1rem 2rem; }
    .app-hero-top { flex-direction: column; }
    .app-hero-cta { flex-direction: column; }
    .app-hero-cta .btn { width: 100%; justify-content: center; }
    .app-section { padding: 3rem 1rem; }
    .app-stats { grid-template-columns: 1fr 1fr; }
    .app-facts th { width: 38%; }
}
