/* cards/css/qr_style.css — the card's QR page (cards/qr_display.html).
   Sits on business_site.css (top bar, grey page, --site-* tokens) so it looks like the card's own website:
   phones get the bottom bar, tablets and up the sticky top bar. Logical properties only, so RTL needs no overrides. */

body:has(.qr-page) { background: #f4f5f7; }

.qr-main {
    display: flex;
    justify-content: center;
    padding: 16px 16px 24px;
}

/* ---------- The card ---------- */
.qr-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--site-radius, 20px);
    box-shadow: var(--site-card-shadow, 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06));
    overflow: hidden;
}

/* Head: the card's colour band with its logo, like the card's hero */
.qr-card__head {
    position: relative;
    padding: 28px 24px 22px;
    text-align: center;
    color: var(--on-primary, #fff);
    background: linear-gradient(135deg, var(--primary-color, #ff6b93), var(--secondary-color, #ff4a7a));
}
.qr-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .9);
    object-fit: cover;
    background: #fff;
    color: var(--primary-color, #ff6b93);
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.qr-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: inherit;
    overflow-wrap: anywhere;
}
.qr-card__tagline {
    margin: 4px 0 0;
    font-size: .9rem;
    opacity: .9;
}

/* Body: the code, a hint and the actions */
.qr-card__body { padding: 24px; }

.qr-card__code {
    display: flex;
    justify-content: center;
    padding: 16px;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    background: #fff;
}
.qr-card__img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    image-rendering: pixelated;   /* keep the modules sharp when scaled */
}

.qr-card__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 16px 0 20px;
    font-size: .9rem;
    color: #6b7280;
    text-align: center;
}
.qr-card__hint i { color: var(--primary-color, #ff6b93); font-size: 1.05rem; }

.qr-card__actions { display: grid; gap: 10px; }

/* Buttons: the same shape as the top bar's .site-btn */
.qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 46px;
    padding-inline: 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s, background-color .15s, color .15s;
}
.qr-btn:hover,
.qr-btn:focus { text-decoration: none; }
.qr-btn i { font-size: 1.1rem; }

.qr-btn--primary { color: var(--on-primary, #fff); background: var(--primary-color, #ff6b93); }
.qr-btn--primary:hover { color: var(--on-primary, #fff); filter: brightness(.94); }

.qr-btn--ghost { color: #111827; background: #fff; border-color: rgba(0, 0, 0, .1); }
.qr-btn--ghost:hover { color: #111827; background: #f9fafb; }

.qr-btn--link { height: 38px; color: #6b7280; font-weight: 500; }
.qr-btn--link:hover { color: var(--primary-color, #ff6b93); }

/* "Powered by": plain line under the card (business_site.css gives it the website footer's white band) */
body:has(.qr-page) .platform-attribution { background: transparent !important; }

/* ---------- Tablets and up ---------- */
@media (min-width: 768px) {
    .qr-main { padding: 48px var(--site-gutter, 24px) 32px; }
    .qr-card__head { padding: 32px 32px 26px; }
    .qr-card__body { padding: 28px 32px 32px; }
    .qr-card__img { max-width: 280px; }

    body:has(.qr-page) .platform-attribution { padding-bottom: 24px !important; }

    /* Home: the brand already goes back to the card */
    .site-topbar .qr-nav-home { display: none !important; }
}
