/* Paywall System Styles */

/* Premium badge animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
    50% { box-shadow: 0 0 20px rgba(243, 156, 18, 0.8); }
    100% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
}

/* Upgrade button styling */
.upgrade-button {
    animation: glow 3s infinite;
    position: relative;
    overflow: hidden;
}

.upgrade-button:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 0 25px rgba(243, 156, 18, 1);
}

/* Trial and premium badges */
.trial-badge, .premium-badge {
    display: inline-block;
    vertical-align: middle;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Paywall modal enhancements */
#paywall-modal .modal-content {
    border: 3px solid #f39c12;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Price display styling */
.price-display {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Premium feature list styling */
#paywall-modal .modal-content p {
    margin: 8px 0;
    font-size: 0.95em;
}

#paywall-modal .modal-content p strong {
    color: #2c3e50;
}

/* Purchase button enhancement */
#purchase-premium-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

#purchase-premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

#purchase-premium-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

/* Game disabled overlay */
#paywall-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    #paywall-modal .modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .price-display {
        font-size: 1.5em;
    }
    
    #purchase-premium-button {
        font-size: 1em;
        padding: 10px 20px;
    }
    
    .trial-badge, .premium-badge {
        font-size: 8px;
        padding: 1px 6px;
    }
}

/* Premium user benefits highlight */
.premium-user .game-header {
    background: linear-gradient(45deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    border-bottom: 2px solid #27ae60;
}

/* Trial expiry warning */
.trial-warning {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    animation: flashWarning 2s infinite;
}

@keyframes flashWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Upgrade prompt in game over screen */
.game-over-upgrade {
    background: #f8f9fa;
    border: 2px dashed #f39c12;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.game-over-upgrade h4 {
    color: #f39c12;
    margin: 0 0 10px 0;
}

.game-over-upgrade p {
    margin: 5px 0;
    font-size: 0.9em;
}
