/**
 * Obyvatelstvo.cz Widget Styles
 * Version: 1.0.0
 */

.obcz-widget {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 1.5em 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background: #fff;
    max-width: 100%;
}

.obcz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.obcz-title {
    font-size: 15px;
}

.obcz-title strong {
    color: #212529;
}

.obcz-title a {
    color: inherit;
    text-decoration: none;
}

.obcz-year {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: #6c757d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.obcz-body {
    padding: 16px;
}

.obcz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.obcz-stat {
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fdfdfd;
}

.obcz-stat-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #D7141A;
    line-height: 1.2;
}

.obcz-stat-blue .obcz-stat-value {
    color: #06b6d4;
}

.obcz-stat-label {
    font-size: 0.75em;
    color: #6c757d;
    margin-top: 2px;
}

.obcz-positive {
    color: #198754 !important;
}

.obcz-negative {
    color: #dc3545 !important;
}

.obcz-chart-wrap {
    height: 220px;
    position: relative;
}

.obcz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid #dee2e6;
    font-size: 12px;
    color: #6c757d;
}

.obcz-footer a {
    color: #D7141A;
    text-decoration: none;
    font-weight: 600;
}

.obcz-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .obcz-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .obcz-stat-value {
        font-size: 1.1em;
    }

    .obcz-chart-wrap {
        height: 180px;
    }
}
