/* ═══════════════════════════════════════════════════════════════
   shop.css — Boutique ShadowQuiz
   ═══════════════════════════════════════════════════════════════ */

/* ── Modal container ────────────────────────────────────────────── */
#shopModal {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 0 32px;
}

#shopModal .modal-box {
    max-width: min(420px, 96vw);
    padding: 24px 20px 16px;
    margin: auto;
    flex-shrink: 0;
}

/* ── Pack card ──────────────────────────────────────────────────── */
.shop-pack-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border: 2px solid #f4d03f;
    border-radius: 16px;
    padding: 20px 16px 16px;
    position: relative;
    margin: 12px 0 10px;
    box-shadow: 0 4px 24px rgba(244, 208, 63, 0.2);
}

.shop-pack-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(90deg, #f4d03f, #e67e22);
    color: #1a1a2e;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-pack-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f4d03f;
    margin: 0 0 4px;
    text-align: center;
}

.shop-pack-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: 2px 0 14px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(244, 208, 63, 0.3);
}

/* ── Pack contents list ─────────────────────────────────────────── */
.shop-pack-contents {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-pack-contents li {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #ecf0f1;
    line-height: 1.3;
}

/* ── PayPal button container ────────────────────────────────────── */
.shop-paypal-container {
    margin-top: 4px;
    min-height: 48px;
}

/* ── Already owned ──────────────────────────────────────────────── */
.shop-pack-owned {
    text-align: center;
    padding: 10px 0 4px;
    color: #2ecc71;
    font-size: 0.92rem;
}

/* ── Success icon ───────────────────────────────────────────────── */
.shop-success-icon {
    font-size: 2.4rem;
    display: block;
    text-align: center;
    margin: 0 auto 8px;
}

/* ── Login required ─────────────────────────────────────────────── */
.shop-login-required {
    font-size: 0.84rem;
    color: #bdc3c7;
    text-align: center;
    margin: 0 0 10px;
}

.shop-google-btn {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
}

/* ── Processing ─────────────────────────────────────────────────── */
.shop-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    color: #ecf0f1;
    font-size: 0.88rem;
}

.shop-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #f4d03f;
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
}

@keyframes shop-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Error ──────────────────────────────────────────────────────── */
.shop-error {
    color: #e74c3c;
    font-size: 0.82rem;
    text-align: center;
    padding: 8px 0;
    margin: 0;
}

/* ── Success screen ─────────────────────────────────────────────── */
.shop-success {
    text-align: center;
    padding: 8px 0 4px;
}

.shop-success h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2ecc71;
    margin: 4px 0 6px;
}

.shop-success p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0 0 10px;
}

.shop-success-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-bottom: 4px solid #1a7a42;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 14px;
    padding: 12px 24px;
    width: 100%;
    transition: transform 0.1s, border-bottom-width 0.1s;
}

.shop-success-btn:active {
    transform: translateY(3px);
    border-bottom-width: 1px;
}

/* ── Disclaimer ─────────────────────────────────────────────────── */
.shop-disclaimer {
    font-size: 0.7rem;
    color: #95a5a6;
    text-align: center;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* ── Dark mode adjustments ──────────────────────────────────────── */
[data-theme="dark"] .shop-pack-card {
    border-color: #f39c12;
    box-shadow: 0 4px 24px rgba(243, 156, 18, 0.2);
}