/* ═══════════════════════════════════════════════════════════════════
   Aarya Web — app detail page (minimal, distraction-free layout)
   Slim dark top bar → centered ~680px column.
   ═══════════════════════════════════════════════════════════════════ */

.app-detail-body { background: var(--bg-grad); }

/* ── Dark top bar ─────────────────────────────────────────────────── */
.detail-topbar {
    position: sticky; top: 0; z-index: 90;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; min-height: 52px;
}
.detail-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: #cfcadd; text-decoration: none; font-weight: 600; font-size: 14.5px;
    padding: 8px 10px; border-radius: 8px; transition: color .15s;
}
.detail-back:hover { color: #fff; }
.detail-brand { font-weight: 800; letter-spacing: 1.5px; font-size: 14px; text-align: center; }
.detail-topbar-spacer { width: 68px; }

/* ── Column ───────────────────────────────────────────────────────── */
.detail-main { display: flex; justify-content: center; padding: 26px 16px 40px; }
.detail-column { width: 100%; max-width: 680px; }

.preview-banner {
    background: #fef3c7; color: #92400e; text-align: center; font-weight: 700;
    padding: 10px 16px; font-size: 14px;
}

.detail-banner { margin: 0 0 22px; }
.detail-banner img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

.detail-title { font-size: clamp(24px, 4.4vw, 34px); font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.detail-intro { color: var(--muted); font-size: 17px; margin: 0 0 24px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.detail-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.detail-btn { font-size: 17px; padding: 8px 22px; }

/* ── Referral code card ───────────────────────────────────────────── */
.referral-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 20px; margin-bottom: 26px; text-align: center;
}
.referral-label { font-weight: 800; letter-spacing: 1.5px; font-size: 13px; color: var(--accent); margin: 0 0 6px; }
.referral-note { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.referral-box {
    display: flex; gap: 10px; align-items: stretch;
    border: 2px dashed #d9cdf6; border-radius: var(--radius-sm);
    padding: 8px; background: #faf7ff;
}
.referral-code {
    flex: 1; display: grid; place-items: center;
    font-family: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
    font-size: clamp(18px, 4vw, 24px); font-weight: 700; letter-spacing: 2px; color: var(--ink);
    overflow-wrap: anywhere; padding: 6px;
}
.btn-copy { padding: 12px 22px; border-radius: 10px; flex-shrink: 0; }
.btn-copy.is-copied { background: var(--green); }
/* Message variant (no code / no copy button) — shrink font so it stays on one line */
.referral-box-message { justify-content: center; }
.referral-message {
    margin: 0; padding: 8px 6px; text-align: center;
    font-weight: 700; color: var(--ink); letter-spacing: .2px;
    font-size: clamp(13px, 3.7vw, 20px); white-space: nowrap;
}
@media (max-width: 340px) { .referral-message { white-space: normal; overflow-wrap: break-word; } }

/* ── Gallery ──────────────────────────────────────────────────────── */
.detail-gallery { margin-bottom: 30px; }
.gallery-label {
    font-weight: 800; letter-spacing: 2px; font-size: 14px; color: var(--red);
    text-align: center; margin: 0 0 16px;
}
.gallery-item { margin: 0 0 16px; }
.gallery-item img {
    width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
    cursor: zoom-in;
}

/* ── Article ──────────────────────────────────────────────────────── */
.detail-article {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 24px; margin-bottom: 26px;
}
@media (max-width: 520px) { .detail-article { padding: 22px 16px; } }

/* ── Prev / next ──────────────────────────────────────────────────── */
.detail-neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.neighbour {
    background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    padding: 14px 16px; text-decoration: none; display: grid; gap: 3px;
    transition: transform .15s ease;
}
.neighbour:hover { transform: translateY(-3px); }
.neighbour-next { text-align: right; }
.neighbour-dir { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; }
.neighbour-title { color: var(--ink); font-weight: 700; font-size: 15px; }
.neighbour-prev:only-child { grid-column: 1; }
.neighbour-next:only-child { grid-column: 2; }
@media (max-width: 440px) { .detail-neighbours { grid-template-columns: 1fr; } .neighbour-next { text-align: left; } }

/* ── Footer ───────────────────────────────────────────────────────── */
.detail-footer { text-align: center; padding: 8px 16px 36px; color: var(--muted); font-size: 14.5px; }
.detail-footer p { margin: 4px 0; }
.detail-footer a { font-weight: 700; }
