/* WorldStream Subscriptions — Frontend Styles */

/* ── Pricing Grid ─────────────────────────────────────────────── */

.ws-pricing-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ws-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: start;
}

.ws-plan-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ws-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.ws-plan-popular {
    border-color: #6366f1;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.ws-plan-current {
    border-color: #10b981;
    background: #f0fdf4;
}

.ws-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0 16px;
}

/* ── Price ────────────────────────────────────────────────────── */

.ws-plan-price {
    margin: 16px 0 24px;
    line-height: 1;
}

.ws-price-currency {
    font-size: 24px;
    font-weight: 700;
    color: #64748b;
    vertical-align: top;
    position: relative;
    top: 6px;
}

.ws-price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
}

.ws-price-period {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 400;
}

/* ── Features ────────────────────────────────────────────────── */

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

.ws-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}

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

/* ── Buttons ─────────────────────────────────────────────────── */

.ws-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
}

.ws-btn-subscribe {
    background: #6366f1;
    color: #fff;
}

.ws-btn-subscribe:hover {
    background: #4f46e5;
    transform: scale(1.02);
}

.ws-btn-subscribe:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ws-btn-current {
    background: #d1fae5;
    color: #065f46;
    cursor: default;
}

.ws-btn-login {
    background: #f1f5f9;
    color: #475569;
}

.ws-btn-login:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Current subscription info ───────────────────────────────── */

.ws-current-subscription {
    margin-top: 32px;
    padding: 20px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.ws-current-subscription h3 {
    margin: 0 0 8px;
    color: #065f46;
}

.ws-current-subscription p {
    margin: 4px 0;
    color: #475569;
}

/* ── Payment status messages ─────────────────────────────────── */

.ws-payment-msg {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

.ws-msg-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ws-msg-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Content Lock ────────────────────────────────────────────── */

.ws-content-teaser {
    position: relative;
}

.ws-content-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
}

.ws-content-lock {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 2px dashed #c7d2fe;
    border-radius: 16px;
    margin: 24px 0;
}

.ws-inline-lock {
    padding: 24px;
    margin: 16px 0;
}

.ws-lock-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ws-content-lock h3 {
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 8px;
}

.ws-content-lock p {
    color: #64748b;
    margin: 0 0 16px;
}

.ws-subscribe-cta {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.ws-subscribe-cta:hover {
    background: #4f46e5;
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 640px) {
    .ws-pricing-grid {
        grid-template-columns: 1fr;
    }

    .ws-price-amount {
        font-size: 36px;
    }

    .ws-plan-card {
        padding: 24px 20px;
    }
}
