/* 
 * TeacherAI Modal Styles
 * File: simple-style.css
 * Location: /wp-content/plugins/teacherai-simple/includes/
 * Purpose: Email capture and upgrade modal styling
 */

/* Modal Base Styles */
#email-capture-modal, #upgrade-modal, #supply-closet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal Header Styles */
.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 24px;
}

.modal-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

/* Benefits Section Styles */
.benefits-section, .upgrade-benefits {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.benefits-section h3, .upgrade-benefits h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.benefits-section ul, .upgrade-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.benefits-section li, .upgrade-benefits li {
    margin-bottom: 5px;
    color: #2c3e50;
}

/* Pricing Section Styles */
.pricing-section {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.pricing-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.period {
    font-size: 18px;
    font-weight: normal;
}

.pricing-card p {
    margin: 0;
    opacity: 0.9;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #28a745;
    outline: none;
}

/* Button Styles */
.form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#create-trial-btn, #upgrade-to-premium-btn {
    flex: 1;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#create-trial-btn:hover, #upgrade-to-premium-btn:hover {
    background: #218838;
}

#create-trial-btn:disabled, #upgrade-to-premium-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#cancel-modal-btn, #cancel-upgrade-btn {
    background: #6c757d;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cancel-modal-btn:hover, #cancel-upgrade-btn:hover {
    background: #5a6268;
}

/* Status Messages */
#modal-status {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.status-loading {
    background: #cce7ff;
    color: #0066cc;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* Footer Styles */
.modal-footer {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .price {
        font-size: 28px;
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}