/* Subscription Service CSS - Modals, Timers, and Upgrade Prompts */

/* Legacy Session Timer Display (DEPRECATED - DO NOT USE) */
/* NOTE: The main session timer is now handled by modern.css for navbar integration */
/* These styles are kept for backward compatibility but should not interfere with navbar timer */
.session-timer.legacy-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.session-timer.legacy-overlay.warning {
    background: rgba(255, 152, 0, 0.9);
    animation: pulse 2s infinite;
}

.session-timer.legacy-overlay.critical {
    background: rgba(255, 59, 48, 0.9);
    animation: pulse 1s infinite;
}

/* Upgrade Banner */
.upgrade-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.upgrade-banner .upgrade-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.upgrade-banner .upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.upgrade-banner .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.7;
}

.upgrade-banner .close-btn:hover {
    opacity: 1;
}

/* Subscription Modal */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.upgrade-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.upgrade-modal-content .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-modal-content .modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.upgrade-modal-content .close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.upgrade-modal-content .close-modal:hover {
    opacity: 1;
}

.upgrade-modal-content .modal-body {
    padding: 32px 24px;
    text-align: center;
}

.upgrade-modal-content .modal-body p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #333;
}

/* Upgrade Options */
.upgrade-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upgrade-option {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.upgrade-option:hover {
    border-color: #667eea;
    background: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.upgrade-option h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.upgrade-option .price {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 16px;
}

.upgrade-option ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.upgrade-option li {
    padding: 6px 0;
    font-size: 15px;
    color: #555;
}

.upgrade-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.upgrade-button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.upgrade-banner {
    animation: slideInFromTop 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .session-timer.legacy-overlay {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .upgrade-banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .upgrade-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .upgrade-modal-content .modal-header {
        padding: 20px;
    }
    
    .upgrade-modal-content .modal-header h2 {
        font-size: 20px;
    }
    
    .upgrade-modal-content .modal-body {
        padding: 24px 16px;
    }
    
    .upgrade-option {
        padding: 20px;
    }
}

/* Timer Warning States (DEPRECATED - Use modern.css styles instead) */
.session-timer.legacy-overlay.warning-5min {
    background: rgba(255, 152, 0, 0.9);
}

.session-timer.legacy-overlay.warning-1min {
    background: rgba(255, 59, 48, 0.9);
    animation: pulse 0.5s infinite;
}

/* Success States */
.unlimited-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(52, 199, 89, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    display: none;
}

.unlimited-badge.show {
    display: block;
    animation: slideInFromTop 0.5s ease-out;
}