/**
 * Subscription Prompt Overlay Styles
 * created by Gareth Erasmus 01/08/2025
 */

.dimension-subscription-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dimension-subscription-prompt .prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.dimension-subscription-prompt .prompt-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: subscriptionPromptSlideIn 0.3s ease-out;
}

@keyframes subscriptionPromptSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dimension-subscription-prompt .prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.dimension-subscription-prompt .prompt-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dimension-subscription-prompt .prompt-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dimension-subscription-prompt .prompt-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.dimension-subscription-prompt .prompt-body {
    padding: 24px;
}

.dimension-subscription-prompt .prompt-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.dimension-subscription-prompt .limit-info {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.dimension-subscription-prompt .limit-bar {
    width: 100%;
    height: 10px;
    background: #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dimension-subscription-prompt .limit-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    transition: width 0.4s ease;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dimension-subscription-prompt .limit-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.dimension-subscription-prompt .upgrade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dimension-subscription-prompt .option-card {
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.dimension-subscription-prompt .option-card:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.15);
}

.dimension-subscription-prompt .option-card.popular {
    border-color: #007cba;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 124, 186, 0.2);
}

.dimension-subscription-prompt .option-card.popular:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 124, 186, 0.25);
}

.dimension-subscription-prompt .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.dimension-subscription-prompt .option-card h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.dimension-subscription-prompt .option-card .price {
    font-size: 28px;
    font-weight: 800;
    color: #007cba;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 124, 186, 0.1);
}

.dimension-subscription-prompt .option-card .savings {
    font-size: 14px;
    color: #28a745;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dimension-subscription-prompt .option-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.dimension-subscription-prompt .option-card li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}

.dimension-subscription-prompt .option-card li:before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.dimension-subscription-prompt .prompt-actions {
    display: flex;
    gap: 16px;
    padding: 0 24px 24px;
}

.dimension-subscription-prompt .dimension-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dimension-subscription-prompt .dimension-btn-primary {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.dimension-subscription-prompt .dimension-btn-primary:hover {
    background: linear-gradient(135deg, #005a87, #004085);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.dimension-subscription-prompt .dimension-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.dimension-subscription-prompt .dimension-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dimension-subscription-prompt .prompt-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .dimension-subscription-prompt .upgrade-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dimension-subscription-prompt .prompt-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .dimension-subscription-prompt .prompt-header h3 {
        font-size: 20px;
    }
    
    .dimension-subscription-prompt .option-card .price {
        font-size: 24px;
    }
    
    .dimension-subscription-prompt .option-card.popular {
        transform: none;
    }
    
    .dimension-subscription-prompt .option-card.popular:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .dimension-subscription-prompt .prompt-body {
        padding: 20px;
    }
    
    .dimension-subscription-prompt .prompt-header {
        padding: 20px;
    }
    
    .dimension-subscription-prompt .option-card {
        padding: 20px 16px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .dimension-subscription-prompt .prompt-content {
        background: #1e1e1e;
        color: #ffffff;
    }
    
    .dimension-subscription-prompt .prompt-body p {
        color: #e0e0e0;
    }
    
    .dimension-subscription-prompt .option-card {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .dimension-subscription-prompt .option-card li {
        color: #e0e0e0;
    }
    
    .dimension-subscription-prompt .limit-info {
        background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
        color: #e0e0e0;
    }
    
    .dimension-subscription-prompt .limit-text {
        color: #b0b0b0;
    }
}
