/**
 * AI Design Studio - Payment Modal and Alert Styles
 * Add this to frontend.css
 */

/* Payment Modal */
.aides-payment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.aides-payment-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aides-payment-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.aides-payment-close:hover,
.aides-payment-close:focus {
    color: #000;
}

.aides-payment-content h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.aides-payment-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.aides-payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aides-payment-buttons .aides-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
}

.aides-payment-buttons svg {
    vertical-align: middle;
    margin-right: 8px;
}

/* Alert Messages */
.aides-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aides-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.aides-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.aides-alert strong {
    font-weight: 600;
}

/* Design Modal */
.aides-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.aides-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    max-width: 900px;
    position: relative;
}

.aides-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.aides-modal-close:hover,
.aides-modal-close:focus {
    color: #000;
}

.aides-modal-content img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.aides-modal-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.aides-modal-info p {
    margin: 10px 0;
    color: #666;
}

.aides-modal-info strong {
    color: #333;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .aides-payment-content,
    .aides-modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .aides-payment-buttons {
        gap: 10px;
    }
    
    .aides-payment-buttons .aides-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .aides-modal-content {
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .aides-payment-content,
    .aides-modal-content {
        margin: 10% auto;
        padding: 20px 15px;
        max-width: 95%;
    }
    
    .aides-payment-content h2 {
        font-size: 20px;
    }
    
    .aides-payment-close,
    .aides-modal-close {
        font-size: 24px;
        right: 15px;
        top: 15px;
    }
}
