/* ============================================================
   Shared styles for the public footer pages:
   Support · Blog · Developers · Careers · MobileApp · Press
   ------------------------------------------------------------
   Uses the global theme vars (--bg, --bg-card, --bg-elevated,
   --border, --text, --text-muted). The global --accent is WHITE
   in this monochrome theme, so the SoundSphere brand red is
   written explicitly (#8B0000 / #A52020) for accents.
   ============================================================ */

.pg { --pg-accent: #8B0000; --pg-accent-2: #A52020; --pg-accent-grad: linear-gradient(135deg, #8B0000, #A52020); }

.pg-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1rem 4rem; }

/* ── Hero ─────────────────────────────────────────────── */
.pg-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,0,0,0.12) 0%, transparent 60%);
    margin-bottom: 2.5rem;
}
.pg-eyebrow {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: #A52020; display: block; margin-bottom: 0.6rem;
}
.pg-title {
    font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800;
    color: var(--text); margin: 0; line-height: 1.1; letter-spacing: -0.02em;
}
.pg-title em { font-style: normal; color: #A52020; }
.pg-subtitle {
    color: var(--text-muted); max-width: 640px; margin: 0.9rem auto 0;
    line-height: 1.65; font-size: 1rem;
}

/* ── Generic section + cards ──────────────────────────── */
.pg-section { margin-bottom: 2.75rem; }
.pg-section-title {
    font-size: 1.25rem; font-weight: 700; color: var(--text);
    margin-bottom: 1.25rem; letter-spacing: -0.01em;
}
.pg-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem; height: 100%;
    transition: border-color 0.2s, transform 0.2s;
}
.pg-card:hover { border-color: rgba(139,0,0,0.4); }
.pg-card-icon { font-size: 1.4rem; color: #A52020; margin-bottom: 0.6rem; display: block; }
.pg-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.pg-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Forms ────────────────────────────────────────────── */
.pg-form-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.75rem;
}
.pg-field { margin-bottom: 1rem; }
.pg-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.pg-input, .pg-select, .pg-textarea {
    width: 100%; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text);
    font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.pg-input::placeholder, .pg-textarea::placeholder { color: var(--text-muted); }
.pg-input:focus, .pg-select:focus, .pg-textarea:focus {
    outline: none; border-color: rgba(139,0,0,0.55);
    box-shadow: 0 0 0 3px rgba(139,0,0,0.12);
}
.pg-select option { background: var(--bg-elevated); color: var(--text); }
.pg-textarea { resize: vertical; min-height: 96px; }
.pg-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
    background: var(--pg-accent-grad, linear-gradient(135deg,#8B0000,#A52020)); color: #fff;
    border: none; border-radius: 10px; padding: 0.75rem 1.5rem;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.pg-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(139,0,0,0.28); }
.pg-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.pg-form-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ── FAQ accordion ────────────────────────────────────── */
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 8px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(139,0,0,0.4); }
.faq-question {
    padding: 1rem 1.25rem; font-weight: 600; font-size: 0.9rem; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: none; border: none; width: 100%; color: var(--text); text-align: left;
}
.faq-answer {
    padding: 0 1.25rem; max-height: 0; overflow: hidden;
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { padding: 0 1.25rem 1rem; max-height: 320px; }
.faq-chevron { transition: transform 0.3s; color: #A52020; font-size: 0.7rem; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── Blog ─────────────────────────────────────────────── */
.blog-featured-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden; transition: all 0.3s ease;
    cursor: pointer; margin-bottom: 2rem; display: flex; min-height: 280px; text-decoration: none;
}
.blog-featured-card:hover {
    border-color: rgba(139,0,0,0.4); transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(139,0,0,0.12);
}
.blog-featured-image {
    width: 45%; min-height: 280px;
    background: linear-gradient(135deg, #1a0000, #2a0808);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(139,0,0,0.45); flex-shrink: 0;
}
.blog-featured-content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.blog-category-badge {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: #A52020; margin-bottom: 0.75rem;
}
.blog-featured-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 0.75rem; line-height: 1.2; }
.blog-featured-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem; height: 100%;
    transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden;
    display: block; text-decoration: none;
}
.blog-card:hover { border-color: rgba(139,0,0,0.4); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(139,0,0,0.1); }
.blog-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(135deg, #8B0000, #A52020);
    transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.blog-card:hover::before { transform: scaleX(1); }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.9rem; }
.blog-meta { font-size: 0.72rem; color: var(--text-muted); display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.reading-time { color: var(--text-muted); }
.blog-readmore { font-size: 0.8rem; font-weight: 600; color: #A52020; }

/* Blog post (detail) */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: var(--text); line-height: 1.15; margin: 0.5rem 0 1rem; }
.blog-post p { font-size: 1rem; color: #C8C8C8; line-height: 1.85; margin-bottom: 1.25rem; }
.blog-back { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.blog-back:hover { color: #A52020; }

/* ── Status / info banner ─────────────────────────────── */
.pg-status-banner {
    background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.25);
    border-radius: 16px; padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem;
}

/* ── Code preview ─────────────────────────────────────── */
.pg-code {
    background: #0d0d12; border: 1px solid var(--border); border-radius: 16px;
    padding: 1.5rem; font-family: 'Courier New', monospace; font-size: 0.82rem;
    color: #e0e0e0; overflow-x: auto; line-height: 1.7;
}

/* ── Phone mockup (Mobile app) ────────────────────────── */
.phone-mockup {
    width: 240px; height: 480px; background: var(--bg-card);
    border: 2px solid var(--border); border-radius: 36px; margin: 0 auto;
    position: relative; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 0 1px rgba(255,255,255,0.03);
    animation: phoneFloat 4s ease-in-out infinite;
}
.phone-notch { width: 80px; height: 24px; background: #050508; border-radius: 0 0 16px 16px; margin: 0 auto; position: relative; z-index: 2; }
.phone-screen { padding: 0.5rem; background: var(--bg); height: calc(100% - 24px); position: relative; }
.phone-art {
    height: 150px; border-radius: 14px; margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #2a0808, #1a0000);
    display: flex; align-items: center; justify-content: center; color: rgba(139,0,0,0.5); font-size: 2.4rem;
}
.phone-line { height: 10px; border-radius: 6px; background: var(--bg-elevated); margin-bottom: 8px; }
.phone-line.short { width: 55%; }
.phone-mini-player {
    position: absolute; bottom: 8px; left: 8px; right: 8px; background: var(--bg-elevated);
    border-radius: 12px; padding: 0.5rem; display: flex; align-items: center; gap: 6px; border: 1px solid var(--border);
}
.phone-mini-cover { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg,#8B0000,#2a0808); flex-shrink: 0; }
.phone-mini-bars { flex: 1; }
@keyframes phoneFloat {
    0%,100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-12px) rotateY(5deg); }
}

/* Feature row (mobile + developers) */
.pg-feature-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.pg-feature-ico { font-size: 1.2rem; color: #A52020; flex-shrink: 0; width: 28px; text-align: center; }
.pg-feature-row h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 0.2rem; }
.pg-feature-row p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ── Careers: blurred "coming soon" cards ─────────────── */
.career-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.5rem; position: relative; overflow: hidden; text-align: center;
}
.career-card .career-inner { filter: blur(3px); opacity: 0.5; pointer-events: none; }
.career-card .career-title { font-weight: 700; color: var(--text); font-size: 1rem; }
.career-card .career-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.3rem; }
.career-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: #fff;
    background: rgba(5,5,8,0.35); text-transform: uppercase;
}

/* ── Press: brand assets + swatches ───────────────────── */
.brand-asset-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 1.75rem; text-align: center;
}
.brand-asset-card > div:first-of-type { color: var(--text); font-weight: 600; margin-top: 0.5rem; }
.color-swatch { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; }
.color-chip { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); flex-shrink: 0; }
.color-swatch .c-name { font-weight: 600; color: var(--text); font-size: 0.88rem; }
.color-swatch .c-hex { font-family: 'Courier New', monospace; color: var(--text-muted); font-size: 0.8rem; }
.press-stat { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.press-stat:last-child { border-bottom: none; }
.press-stat .ps-num { font-size: 1.3rem; font-weight: 800; color: #A52020; min-width: 64px; }
.press-stat .ps-label { color: var(--text-muted); font-size: 0.88rem; }

/* ── Toast ────────────────────────────────────────────── */
.pg-toast {
    /* 90px clears the 72px mini-player (+ breathing room) so success/error
       toasts on the footer pages never sit behind the player bar. */
    position: fixed; bottom: 90px; right: 24px; z-index: 9999;
    padding: 0.9rem 1.25rem; border-radius: 12px; font-size: 0.85rem; color: #fff;
    background: rgba(20,20,20,0.97); border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s; max-width: 360px;
}
.pg-toast.show { opacity: 1; transform: translateY(0); }
.pg-toast.success { border-color: rgba(43,230,109,0.5); }
.pg-toast.error { border-color: rgba(165,32,32,0.6); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-featured-card { flex-direction: column; }
    .blog-featured-image { width: 100%; min-height: 160px; }
}
