/* ==========================================================================
   Bamgru Play Store Hub - Light Theme Extension (Identical to Games Page)
   ========================================================================== */

/* 1. Smart Device Detector Alert Card (Light Theme) */
.bamgru-play-detector {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--bamgru-border);
    padding: 22px 28px;
    margin: 0 auto 36px !important;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.bamgru-play-detector.android-theme {
    border-left: 6px solid #10b981;
    background: linear-gradient(135deg, #ffffff 60%, #f0fdf4 100%);
}

.bamgru-play-detector.ios-theme {
    border-left: 6px solid #0284c7;
    background: linear-gradient(135deg, #ffffff 60%, #f0f9ff 100%);
}

.bamgru-play-detector.desktop-theme {
    border-left: 6px solid #03a9f4;
    background: linear-gradient(135deg, #ffffff 60%, #f8fafc 100%);
}

.detector-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.detector-info-side {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 280px;
}

.detector-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.detector-icon-badge.android {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.detector-icon-badge.apple {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.detector-icon-badge.desktop {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.detector-text-side h4 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bamgru-dark);
    font-family: var(--bamgru-font-display) !important;
}

.detector-text-side p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--bamgru-slate);
    line-height: 1.5;
}

.detector-actions-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-detector-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-detector-action.android {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-detector-action.android:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-detector-action.apple {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-detector-action.apple:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.btn-detector-cancel {
    background: #f1f5f9;
    color: var(--bamgru-slate);
    border: 1px solid var(--bamgru-border);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-detector-cancel:hover {
    background: #e2e8f0;
    color: var(--bamgru-dark);
}

.detector-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #0284c7);
    width: 100%;
    transform-origin: left center;
    transition: transform linear;
}

/* 2. Dual Mega Store Cards (Light Theme, Exactly Matching Games Style) */
.bamgru-dual-stores {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin: 0 auto 44px !important;
    width: 100%;
}

@media only screen and (max-width: 860px) {
    .bamgru-dual-stores {
        grid-template-columns: 1fr !important;
    }
}

.bamgru-store-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.1);
    padding: 34px 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.bamgru-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.16);
}

.bamgru-store-card.gplay-card {
    border-top: 5px solid #10b981;
}

.bamgru-store-card.appstore-card {
    border-top: 5px solid #0284c7;
}

.store-card-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.store-logo-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.store-logo-box.gplay {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.store-logo-box.appstore {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.store-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--bamgru-border);
    color: var(--bamgru-slate);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 999px;
}

.store-verified-tag i {
    color: #10b981;
}

.bamgru-store-card h3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 0 6px !important;
    font-family: var(--bamgru-font-display) !important;
}

.store-dev-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0284c7;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-card-desc-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--bamgru-slate);
    margin: 0 0 20px;
}

.store-features-ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-features-ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--bamgru-slate);
}

.store-features-ul li i {
    color: #10b981;
    font-size: 0.95rem;
}

.bamgru-store-card.appstore-card .store-features-ul li i {
    color: #0284c7;
}

/* Store Badge Link & Action Row */
.store-bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.store-official-badge-link {
    display: block;
    max-width: 240px;
    transition: transform 0.2s ease;
}

.store-official-badge-link:hover {
    transform: scale(1.03);
}

.store-official-badge-link img {
    width: 100%;
    height: auto;
    display: block;
}

.store-btn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-card-action.primary-gplay {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.26);
    flex: 1;
}

.btn-card-action.primary-gplay:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.36);
    color: #ffffff !important;
}

.btn-card-action.primary-appstore {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.26);
    flex: 1;
}

.btn-card-action.primary-appstore:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.36);
    color: #ffffff !important;
}

.btn-card-action.outline-btn {
    background: #f8fafc;
    color: var(--bamgru-slate) !important;
    border: 1px solid var(--bamgru-border);
}

.btn-card-action.outline-btn:hover {
    background: #e2e8f0;
    color: var(--bamgru-dark) !important;
    transform: translateY(-1px);
}

/* 3. Interactive Desktop QR Station (Light Theme) */
.bamgru-qr-station {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
    padding: 34px 32px;
    margin: 0 auto 48px !important;
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 36px !important;
    align-items: center;
}

@media only screen and (max-width: 860px) {
    .bamgru-qr-station {
        grid-template-columns: 1fr !important;
        padding: 24px 20px;
    }
}

.qr-info-left h3 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 0 10px !important;
    font-family: var(--bamgru-font-display) !important;
}

.qr-info-left p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--bamgru-slate);
    margin: 0 0 20px;
}

.qr-steps-list-light {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-step-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qr-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.qr-step-desc {
    font-size: 0.92rem;
    color: var(--bamgru-slate);
    line-height: 1.45;
}

.qr-interactive-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--bamgru-border);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.qr-switch-tabs {
    display: flex;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 300px;
}

.qr-switch-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--bamgru-slate);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qr-switch-tab-btn.active {
    background: #ffffff;
    color: var(--bamgru-dark);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.qr-code-canvas-box {
    background: #ffffff;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    margin-bottom: 14px;
    display: inline-block;
    min-width: 190px;
    min-height: 190px;
}

.qr-code-canvas-box canvas,
.qr-code-canvas-box img {
    display: block;
    margin: 0 auto;
}

.qr-store-title-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bamgru-dark);
    margin-bottom: 12px;
}

/* 4. Game Card Extra QR Button */
.btn-game-qr-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--bamgru-slate) !important;
    border: 1px solid var(--bamgru-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-game-qr-trigger:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0284c7 !important;
}

/* 5. QR Modal (Light & Clean) */
.play-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.play-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.play-modal-card-light {
    background: #ffffff;
    border: 1px solid var(--bamgru-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.play-modal-backdrop.active .play-modal-card-light {
    transform: translateY(0);
}

.play-modal-close-light {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    color: var(--bamgru-slate);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.play-modal-close-light:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* 6. Toast Notification */
.play-toast-light {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.play-toast-light.show {
    transform: translateY(0);
    opacity: 1;
}

/* 7. Critical Fix for OnePage Express Theme's ::before / ::after on CSS Grid */
.bamgru-dual-stores::before,
.bamgru-dual-stores::after,
.bamgru-qr-station::before,
.bamgru-qr-station::after,
.bamgru-play-detector::before,
.bamgru-play-detector::after {
    display: none !important;
    content: none !important;
}
