/**
 * PMN Visitor Statistics - Stylesheet
 * Compact, neutral design for footer placement
 */

/* Container */
.pmn-stat-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header with icon and title */
.pmn-stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
}

.pmn-stat-icon {
    width: 18px;
    height: 18px;
    color: #6c757d;
}

.pmn-stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
    letter-spacing: -0.01em;
}

/* Statistics content row */
.pmn-stat-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual stat item */
.pmn-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pmn-stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
}

.pmn-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    font-variant-numeric: tabular-nums;
}

/* Divider between items */
.pmn-stat-divider {
    color: #dee2e6;
    font-size: 14px;
    font-weight: 300;
    user-select: none;
}

/* Footer with update date */
.pmn-stat-footer {
    margin-top: 4px;
}

.pmn-stat-update {
    font-size: 11px;
    color: #868e96;
    font-weight: 400;
}

/* Hover effect */
.pmn-stat-container:hover {
    border-color: #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Animation for values */
.pmn-stat-value {
    transition: transform 0.2s ease;
}

.pmn-stat-item:hover .pmn-stat-value {
    transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .pmn-stat-container {
        padding: 14px 18px;
        width: 100%;
    }

    .pmn-stat-content {
        flex-direction: column;
        gap: 8px;
    }

    .pmn-stat-divider {
        display: none;
    }

    .pmn-stat-item {
        width: 100%;
        justify-content: space-between;
        padding: 6px 12px;
        background: #f8f9fa;
        border-radius: 6px;
    }

    .pmn-stat-label {
        font-size: 12px;
    }

    .pmn-stat-value {
        font-size: 14px;
    }
}

/* Dark mode support (for themes that support it) */
@media (prefers-color-scheme: dark) {
    .pmn-stat-container {
        background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
        border-color: #4a5568;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .pmn-stat-title {
        color: #f8f9fa;
    }

    .pmn-stat-icon {
        color: #adb5bd;
    }

    .pmn-stat-label {
        color: #adb5bd;
    }

    .pmn-stat-value {
        color: #ffffff;
    }

    .pmn-stat-divider {
        color: #4a5568;
    }

    .pmn-stat-update {
        color: #868e96;
    }

    .pmn-stat-container:hover {
        border-color: #5a6c7d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    @media screen and (max-width: 480px) {
        .pmn-stat-item {
            background: #3d4f5f;
        }
    }
}

/* Print styles */
@media print {
    .pmn-stat-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
