/**
 * Maxm.Directory — Owner Pro Badge & Analytics Panel
 *
 * Styles for:
 *  - Owner Pro badge on property detail page (verified owner with active subscription)
 *  - Owner analytics stats panel
 *  - Owner Pro upgrade CTA (shown to verified owners without Pro)
 *  - Owner annotations display
 *
 * @package     Joomla.Site
 * @subpackage  com_jea
 * @copyright   Copyright (C) 2026 ReCreating Anew (by GinA), Sidney, Maine, USA. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

/* ── Owner Pro badge ─────────────────────────────────────────────────────── */
.jea-owner-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.jea-pro-badge-icon {
    font-size: 0.85rem;
}

/* ── Analytics panel ─────────────────────────────────────────────────────── */
.jea-owner-analytics-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.jea-owner-analytics-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jea-owner-analytics-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.jea-owner-analytics-stat {
    flex: 1 1 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jea-owner-analytics-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
}

.jea-owner-analytics-stat-label {
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jea-owner-analytics-annotation-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* ── Owner Pro upgrade CTA ───────────────────────────────────────────────── */
.jea-owner-pro-upgrade-cta {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.jea-owner-pro-upgrade-cta strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #856404;
}

.jea-owner-pro-upgrade-cta p {
    color: #6c5700;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* ── Owner annotation display ────────────────────────────────────────────── */
.jea-owner-annotation {
    background: #fffbea;
    border-left: 3px solid #ffc107;
    padding: 0.6rem 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 0 0.25rem 0.25rem 0;
    font-size: 0.875rem;
}

.jea-owner-annotation-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.jea-owner-annotation-body {
    color: #495057;
}

.jea-owner-annotation-meta {
    font-size: 0.72rem;
    color: #868e96;
    margin-top: 0.25rem;
}

/* ── Dashboard My Subscription panel ────────────────────────────────────── */
.jea-dashboard__card--subscription {
    border-left: 4px solid #ffc107;
}

.jea-subscription-plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d6efd;
}

.jea-subscription-status {
    font-size: 0.85rem;
}

.jea-subscription-status--active {
    color: #198754;
    font-weight: 600;
}

.jea-subscription-status--cancelled {
    color: #dc3545;
}

.jea-subscription-status--past_due {
    color: #fd7e14;
    font-weight: 600;
}

.jea-subscription-meta {
    font-size: 0.82rem;
    color: #6c757d;
}

.jea-subscription-free-note {
    font-size: 0.82rem;
    color: #6c757d;
    font-style: italic;
}

.jea-subscription-upgrade-link {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: inline-block;
}
