/**
 * DSP Property Views – Frontend chart styles
 * Purple / blue DanSiam Property theme
 */

.dsp-property-views-wrap {
    background: linear-gradient(135deg, rgba(124, 110, 240, 0.03) 0%, rgba(79, 163, 247, 0.03) 100%);
    border: 1px solid rgba(124, 110, 240, 0.12);
    border-radius: 12px;
    padding: 20px 24px 16px;
    margin: 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header row */
.dsp-pv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.dsp-pv-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: #3d3470;
    letter-spacing: 0.01em;
}

/* Stat badges */
.dsp-pv-stats {
    display: flex;
    gap: 16px;
}

.dsp-pv-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dsp-pv-stat-value {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c6ef0 0%, #4fa3f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.dsp-pv-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #8b87a5;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Chart container */
.dsp-pv-chart-container {
    position: relative;
    width: 100%;
}

.dsp-pv-chart-container canvas {
    width: 100% !important;
}

/* Loading state */
.dsp-pv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #8b87a5;
    font-size: 13px;
}

.dsp-pv-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(124, 110, 240, 0.2);
    border-top-color: #7c6ef0;
    border-radius: 50%;
    animation: dsp-spin 0.6s linear infinite;
}

@keyframes dsp-spin {
    to { transform: rotate(360deg); }
}

/* Error state */
.dsp-pv-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #c0392b;
    font-size: 13px;
    background: rgba(192, 57, 43, 0.04);
    border-radius: 8px;
    padding: 16px;
}

/* No data state */
.dsp-pv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #8b87a5;
    font-size: 13px;
    gap: 4px;
}

.dsp-pv-empty-icon {
    font-size: 28px;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 480px) {
    .dsp-property-views-wrap {
        padding: 14px 16px 12px;
    }

    .dsp-pv-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dsp-pv-stat-value {
        font-size: 15px;
    }
}
