/**
 * JXXXG Patreon VIP & Download Gateway Styles
 *
 * Covers:
 * - Floating VIP Member Indicator
 * - Intermediary Download Gateway (T-09)
 * - Anti-AdBlock Modal (T-11)
 * - CLS Safe Ad Containers (JA-06)
 *
 * @package JXXXG_Patreon_VIP
 */

/* ==========================================================================
   1. Floating VIP Status Indicator (Front-end)
   ========================================================================== */
.jxxxg-vip-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e1e24 0%, #2a2b36 100%);
    border: 1px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jxxxg-vip-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.jxxxg-vip-star {
    font-size: 16px;
}

.jxxxg-vip-text {
    color: #ffd700;
    letter-spacing: 0.5px;
}

.jxxxg-vip-logout {
    margin-left: 6px;
    color: #999;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.jxxxg-vip-logout:hover {
    color: #ff4d4f;
}

/* ==========================================================================
   2. Download Gateway Layout (T-09)
   ========================================================================== */
body.jxxxg-gateway-page {
    margin: 0;
    padding: 0;
    background: #0d0e15;
    color: #e6e6e6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jxxxg-gateway-container {
    width: 100%;
    max-width: 680px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.jxxxg-gateway-header {
    text-align: center;
    margin-bottom: 20px;
}

.jxxxg-logo {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.jxxxg-logo-accent {
    color: #ff6b35;
}

.jxxxg-gateway-card {
    background: #181922;
    border: 1px solid #282a36;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.jxxxg-card-badge {
    display: inline-block;
    background: #252836;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.jxxxg-game-title {
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #ffffff;
    word-break: break-word;
}

/* Countdown Elements */
.jxxxg-countdown-wrapper {
    margin: 25px 0 20px;
}

.jxxxg-countdown-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #20222e;
    border: 3px solid #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.jxxxg-countdown-circle.jxxxg-done {
    border-color: #00c853;
    color: #00c853;
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
}

.jxxxg-countdown-text {
    font-size: 14px;
    color: #a0aec0;
    margin-bottom: 15px;
}

.jxxxg-progress-bar {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #252836;
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.jxxxg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff9f43);
    transition: width 0.3s ease;
}

/* Alert Pause */
.jxxxg-adblock-alert {
    background: rgba(229, 57, 53, 0.15);
    border: 1px solid #e53935;
    color: #ff8a80;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

/* Buttons */
.jxxxg-action-box {
    margin: 20px 0;
}

.jxxxg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.jxxxg-btn-disabled {
    background: #2c2f3f;
    color: #6b7280;
    cursor: not-allowed;
    pointer-events: none;
}

.jxxxg-btn-ready {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: #0d0e15;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
    animation: jxxxg-pulse 1.8s infinite;
}

.jxxxg-btn-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.6);
}

.jxxxg-btn-patreon {
    background: linear-gradient(135deg, #f96854 0%, #ff8566 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 104, 84, 0.35);
}

.jxxxg-btn-patreon:hover {
    background: #ff523b;
    transform: translateY(-1px);
}

.jxxxg-btn-secondary {
    background: #2a2d3e;
    color: #ffffff;
    border: 1px solid #3d4157;
}

.jxxxg-btn-secondary:hover {
    background: #363a4f;
}

.jxxxg-btn-vip-instant {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #111;
    font-size: 18px;
    padding: 16px 36px;
    font-weight: 800;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.jxxxg-btn-vip-instant:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.jxxxg-btn-text {
    color: #a0aec0;
    font-size: 13px;
    text-decoration: underline;
    margin-left: 10px;
}

.jxxxg-btn-text:hover {
    color: #ffffff;
}

/* Patreon Pitch Card */
.jxxxg-patreon-pitch-box {
    background: #1f212c;
    border: 1px solid #2e3244;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    text-align: left;
}

.jxxxg-patreon-pitch-header {
    font-size: 15px;
    color: #ffd700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jxxxg-patreon-pitch-desc {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.jxxxg-patreon-pitch-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* VIP Supporter Presentation Box */
.jxxxg-vip-success-box {
    padding: 25px 15px;
}

.jxxxg-vip-badge-big {
    font-size: 20px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
}

.jxxxg-vip-thanks {
    font-size: 14px;
    color: #cbd5e0;
    margin-bottom: 25px;
}

/* Footer */
.jxxxg-gateway-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #718096;
}

.jxxxg-back-link {
    color: #ff6b35;
    text-decoration: none;
}

.jxxxg-back-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. Anti-AdBlock Modal (T-11)
   ========================================================================== */
.jxxxg-adblock-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 16, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: jxxxg-fadein 0.25s ease-out;
}

.jxxxg-adblock-modal {
    background: #181a24;
    border: 1px solid #2d3144;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    color: #e2e8f0;
}

.jxxxg-adblock-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.jxxxg-adblock-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.jxxxg-adblock-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e0;
    margin: 0 0 15px 0;
}

.jxxxg-adblock-tip {
    background: #1e2230;
    border-left: 3px solid #ff9f43;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    color: #a0aec0;
    border-radius: 0 6px 6px 0;
    margin-bottom: 25px;
}

.jxxxg-adblock-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.jxxxg-adblock-footer-link a {
    color: #718096;
    font-size: 12px;
    text-decoration: underline;
}

.jxxxg-adblock-footer-link a:hover {
    color: #ffd700;
}

/* Animations */
@keyframes jxxxg-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes jxxxg-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .jxxxg-gateway-card {
        padding: 20px 15px;
    }
    .jxxxg-btn {
        width: 100%;
    }
    .jxxxg-adblock-actions {
        flex-direction: column;
    }
}
