/* WP SEO Agent — Subscription Dashboard Styles */

.wpsa-subscription-page {
    max-width: 960px;
}

.wpsa-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.wpsa-card h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

/* Plan Card */
.wpsa-plan-card {
    border-left: 4px solid #2271b1;
}

.wpsa-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.wpsa-plan-header h3 {
    margin-bottom: 8px;
}

.wpsa-plan-price {
    text-align: right;
}

.wpsa-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
}

.wpsa-interval {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Status badges */
.wpsa-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpsa-status-active {
    background: #d1fae5;
    color: #065f46;
}

.wpsa-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.wpsa-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.wpsa-status-default {
    background: #e5e7eb;
    color: #4b5563;
}

/* Next payment */
.wpsa-next-payment {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Actions */
.wpsa-actions {
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpsa-actions .button {
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.wpsa-actions .button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.wpsa-actions .button-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.wpsa-actions .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.wpsa-btn-cancel {
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.wpsa-btn-cancel:hover {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
}

/* Setup Card */
.wpsa-setup-card {
    border-left: 4px solid #059669;
}

.wpsa-setup-table {
    width: 100%;
    border-collapse: collapse;
}

.wpsa-setup-table td {
    padding: 8px 12px;
    vertical-align: middle;
}

.wpsa-setup-table td:first-child {
    width: 100px;
    color: #6b7280;
}

/* Invoice Table */
.wpsa-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wpsa-invoice-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #e5e7eb;
}

.wpsa-invoice-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.wpsa-invoice-table tr:last-child td {
    border-bottom: none;
}

.wpsa-invoice-table .button-small {
    padding: 4px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

/* Support Card */
.wpsa-support-card {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.wpsa-support-card p {
    color: #6b7280;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.wpsa-support-card a {
    color: #2271b1;
    font-weight: 600;
}

/* No Subscription */
.wpsa-no-subscription {
    text-align: center;
    padding: 40px 20px;
}

.wpsa-no-subscription h3 {
    color: #1a1a2e;
    margin-bottom: 12px;
}

.wpsa-no-subscription p {
    color: #6b7280;
    margin-bottom: 20px;
}

.wpsa-no-subscription .button {
    background: #2271b1;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Change Plan Grid — 3-column layout */
.wpsa-change-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.wpsa-change-plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.wpsa-change-plan-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.wpsa-change-plan-card.wpsa-current-plan {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #f0f7ff);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.wpsa-change-plan-card h4 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
}

.wpsa-change-plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

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

ul.wpsa-change-plan-features li {
    font-size: 0.82rem;
    color: #64748b;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

ul.wpsa-change-plan-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
    font-size: 0.85rem;
}

.wpsa-current-badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.wpsa-change-plan-card .button {
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: all 0.2s;
    font-weight: 600;
}

.wpsa-change-plan-card .button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.wpsa-change-plan-card .button-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.wpsa-change-plan-card .button-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* ============================================================
   Dashboard Page Styles
   ============================================================ */

.wpsa-dashboard-page {
    max-width: 960px;
}

.wpsa-dashboard-welcome {
    border-left: 4px solid #2563eb;
}

.wpsa-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.wpsa-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.wpsa-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.wpsa-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.wpsa-copy-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wpsa-copy-btn:hover {
    background: #1d4ed8;
}

.wpsa-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.wpsa-quick-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.wpsa-quick-link:hover {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.wpsa-quick-link strong {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.wpsa-quick-link p {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
}

.wpsa-ql-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* ============================================================
   Download Plugin Page Styles
   ============================================================ */

.wpsa-download-card {
    border-left: 4px solid #059669;
}

.wpsa-download-btn {
    display: inline-flex;
    align-items: center;
    background: #059669;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.wpsa-download-btn:hover {
    background: #047857;
    color: #fff !important;
}

.wpsa-install-steps {
    margin-top: 8px;
}

.wpsa-install-step {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f3f4f6;
}

.wpsa-install-step:last-child {
    border-bottom: none;
}

.wpsa-step-number {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.wpsa-install-step h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #1e293b;
}

.wpsa-install-step p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.wpsa-install-step code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #1e293b;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
    .wpsa-plan-header {
        flex-direction: column;
    }

    .wpsa-plan-price {
        text-align: left;
    }

    .wpsa-invoice-table {
        font-size: 0.8rem;
    }

    .wpsa-invoice-table th,
    .wpsa-invoice-table td {
        padding: 8px 6px;
    }

    .wpsa-actions {
        flex-direction: column;
    }

    .wpsa-actions .button {
        width: 100%;
        text-align: center;
    }

    .wpsa-change-plan-grid {
        grid-template-columns: 1fr;
    }

    .wpsa-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .wpsa-quick-links {
        grid-template-columns: 1fr;
    }
}
