/**
 * Advanced Subscription Manager - Frontend Styles
 * @version 1.0.0
 */

/* Subscription Options Container */
.asm-subscription-options {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #2271b1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.asm-subscription-options h4 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    color: #2271b1;
    font-size: 18px;
    font-weight: 600;
}

/* Main Purchase Options */
.asm-main-options {
    margin-bottom: 20px;
}

.asm-main-option {
    display: block;
    margin: 12px 0;
    padding: 15px 18px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.asm-main-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateX(5px);
}

.asm-main-option.active-plan,
.asm-main-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #e8f3fc;
    font-weight: 600;
    border-width: 3px;
}

/* Subscription Periods Section */
.asm-subscription-periods {
    margin: 15px 0 15px 20px;
    padding: 15px;
    background: #ffffff;
    border-left: 4px solid #2271b1;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.asm-subscription-periods h5 {
    margin: 0 0 15px;
    color: #2271b1;
    font-size: 15px;
    font-weight: 600;
}

.asm-period-option {
    display: block;
    margin: 10px 0;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.asm-period-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateX(3px);
}

.asm-period-option.active-plan,
.asm-period-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #e8f3fc;
    font-weight: 600;
}

/* Radio Button Inputs */
.asm-subscription-options input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Discount Badge */
.asm-discount-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background: #00a32a;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

/* Subscription Benefits */
.asm-benefits {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.asm-benefits ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.asm-benefits li {
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
}

.asm-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: bold;
    font-size: 18px;
}

/* Price Display */
.asm-price-info {
    margin-top: 10px;
    padding: 10px;
    background: #fffbcc;
    border-left: 4px solid #f0b849;
    border-radius: 4px;
    font-size: 14px;
}

.asm-price-info .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.asm-price-info .discounted-price {
    color: #00a32a;
    font-weight: bold;
    font-size: 18px;
}

/* Loading Spinner */
.asm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: asm-spin 1s linear infinite;
}

@keyframes asm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Special Offer Inside Periods */
.asm-subscription-periods .asm-special-offer {
    margin-top: 15px;
    padding: 12px;
    background: #fff9e6;
    border: 1px solid #f0b849;
    border-radius: 4px;
    font-size: 13px;
}

.asm-subscription-periods .asm-special-offer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .asm-subscription-options {
        padding: 15px;
    }

    .asm-subscription-options h4 {
        font-size: 16px;
    }

    .asm-main-option {
        font-size: 14px;
        padding: 12px 15px;
    }

    .asm-subscription-periods {
        margin-left: 10px;
        padding: 12px;
    }

    .asm-subscription-periods h5 {
        font-size: 14px;
    }

    .asm-period-option {
        font-size: 13px;
        padding: 10px 12px;
    }
}
