/**
 * AI Bridge License Manager - Frontend Styles
 */

/* Buy Button */
.ablm-buy-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ablm-buy-button--primary {
    background: #2563eb;
    color: #fff;
}

.ablm-buy-button--primary:hover {
    background: #1d4ed8;
}

.ablm-buy-button--secondary {
    background: #f1f5f9;
    color: #334155;
}

.ablm-buy-button--secondary:hover {
    background: #e2e8f0;
}

.ablm-buy-button--outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.ablm-buy-button--outline:hover {
    background: #2563eb;
    color: #fff;
}

.ablm-buy-button--full {
    width: 100%;
}

.ablm-buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Card */
.ablm-product-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ablm-product-card__header {
    text-align: center;
    margin-bottom: 30px;
}

.ablm-product-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.ablm-product-card__description {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.ablm-product-card__plans {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Plan Card */
.ablm-plan {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.ablm-plan:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.ablm-plan--featured {
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    transform: scale(1.02);
}

.ablm-plan__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
}

.ablm-plan__name {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
}

.ablm-plan__price {
    margin-bottom: 10px;
}

.ablm-plan__amount {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
}

.ablm-plan__suffix {
    font-size: 16px;
    color: #64748b;
}

.ablm-plan__description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.ablm-plan .ablm-buy-button {
    width: 100%;
}

/* Modal */
.ablm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ablm-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ablm-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ablm-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    line-height: 1;
}

.ablm-modal__close:hover {
    color: #1e293b;
}

.ablm-modal__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

/* Form */
.ablm-form-group {
    margin-bottom: 20px;
}

.ablm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.ablm-form-group input[type="email"],
.ablm-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
}

.ablm-form-group input[type="email"]:focus,
.ablm-form-group input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ablm-form-help {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0 0;
}

.ablm-form-actions {
    margin-top: 20px;
}

/* Login Notice */
.ablm-login-notice {
    font-size: 13px;
    color: #dc2626;
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .ablm-product-card__plans {
        flex-direction: column;
        align-items: center;
    }

    .ablm-plan {
        max-width: 100%;
    }

    .ablm-plan--featured {
        transform: none;
    }
}
