/**
 * Frontend Styles for Aurora AR Subscriptions
 */

.aurora-ar-subscribe-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.aurora-ar-header {
    text-align: center;
    margin-bottom: 40px;
}

.aurora-ar-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.aurora-ar-header .subtitle {
    font-size: 1.2em;
    color: #666;
}

.aurora-ar-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.aurora-ar-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.aurora-ar-plan-card:hover {
    border-color: #0073aa;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.plan-header h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.plan-price {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 3em;
    font-weight: bold;
    color: #0073aa;
}

.price-period {
    font-size: 1.2em;
    color: #666;
}

.plan-description {
    margin-bottom: 20px;
    color: #666;
    min-height: 60px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.aurora-ar-subscribe-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.aurora-ar-subscribe-btn:hover {
    background: #005a87;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-actions {
    margin-top: 30px;
    text-align: right;
}

.selected-plan-summary {
    margin-bottom: 20px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f0f7ff;
    border: 1px solid #c6ddff;
    font-size: 0.95em;
}

.selected-plan-summary .selected-plan-name {
    margin-left: 5px;
    font-weight: 600;
}

.selected-plan-summary .selected-plan-price {
    margin-left: 8px;
    color: #0073aa;
    font-weight: 600;
}

.aurora-ar-contract-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    max-height: 180px;
    overflow-y: auto;
    background: #fafafa;
    font-size: 0.9em;
    line-height: 1.5;
}

.aurora-ar-contract-agree {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Business Portal */
.aurora-ar-business-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.subscription-status {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.subscription-status.active {
    border-left: 4px solid #46b450;
}

.subscription-status.none {
    border-left: 4px solid #dc3232;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-badge.active {
    background: #46b450;
    color: white;
}

.status-badge.assigned {
    background: #0073aa;
    color: white;
}

.status-badge.limit-reached {
    background: #dc3232;
    color: white;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.product-item.assigned {
    border-color: #46b450;
}

@media (max-width: 768px) {
    .aurora-ar-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 2em;
    }
}

