/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font-heading: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --transition: 0.2s ease;
    --container: 1280px;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--heading); line-height: 1.3; }
h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.2em; }

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { padding: 8px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; }

/* ── Cards ───────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ── Grid ────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ── Stats ───────────────────────────────────── */
.stat-card {
    background: var(--stat-bg);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 22px;
    text-align: center;
}
.stat-value {
    font-size: 2em;
    font-weight: 800;
    color: var(--heading);
    font-family: var(--font-body);
}
.stat-label {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Tables ──────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead { background: var(--stat-bg); }
th {
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    color: var(--heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
tbody tr:hover { background: var(--row-hover); }

/* ── Badges ──────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-yellow { background: #FFF8E1; color: #F57F17; }
.badge-red { background: #FFEBEE; color: #C62828; }
.badge-blue { background: #E3F2FD; color: #1565C0; }

/* ── Trend indicators ────────────────────────── */
.trend-up { color: #2E7D32; }
.trend-down { color: #C62828; }
.trend-flat { color: var(--text-muted); }

/* ── Price tag ───────────────────────────────── */
.price {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--heading);
}
.price-eur::before { content: '€'; margin-right: 2px; }

/* ── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-5, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.6em; }
    .container { padding: 0 16px; }
}
@media (max-width: 480px) {
    .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 1.4em; }
}
