/* ================================
   Kinder A‑Z Pastel Theme
   Kid-friendly palette with a warm bright-brown background
   ================================ */

:root {
    --bg: #E8C89E; /* bright pastel brown (warm caramel) */
    --card-bg: #FFFFFF;
    --accent-1: #FFD8A8; /* soft peach */
    --accent-2: #F9DCE1; /* blossom pink */
    --accent-3: #D9F0FF; /* sky blue */
    --accent-4: #E4F6D8; /* pale grass */
    --text: #2b2b2b;
    --muted: #6A5E76;
}

/* Body & global background */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container subtle background */
.container, .container-fluid {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #6A5E76;  /* soft muted purple/gray for contrast */
    font-weight: 600;
}

article h1 {
    color: #3a2f42;
}

/* Primary Button — Skywater Blue */
.btn-primary {
    background-color: #D9F0FF;
    border-color: #D9F0FF;
    color: #2c3e50;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #bcdffc;
    border-color: #bcdffc;
    color: #2c3e50;
}

/* Secondary Button — Pale Grass */
.btn-secondary {
    background-color: #E4F6D8;
    border-color: #E4F6D8;
    color: #2c3e50;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #c9eac1;
    border-color: #c9eac1;
    color: #2c3e50;
}

/* Info/Accent Badge — Blossom Pink */
.badge-info,
.badge {
    background-color: #F9DCE1 !important;
    color: #2c3e50 !important;
}

/* Cards */
.card {
    border: none;
    background-color: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.article-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.card-header {
    background-color: #F2F1FA; /* soft cloud purple */
    border-bottom: none;
    color: #4a3f54;
}

/* Navbars */
.site-header {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.site-brand {
    font-weight: 700;
    color: #5b3b2a;
    text-decoration: none;
    font-size: 1.25rem;
}

/* Form Controls */
.form-control {
    background-color: #FFFFFF;
    border: 2px solid #F2F1FA;
    border-radius: 10px;
}

.form-control:focus {
    border-color: #D9F0FF;
    box-shadow: 0 0 0 0.25rem rgba(217, 240, 255, 0.45);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-primary {
    background-color: #D9F0FF;
    color: #2c3e50;
}

.alert-success {
    background-color: #E4F6D8;
    color: #2c3e50;
}

.alert-danger {
    background-color: #F9DCE1;
    color: #2c3e50;
}

/* Site footer */
.site-footer {
    background-color: #F2F1FA;
    padding: 1.5rem;
    text-align: center;
    color: #5c506a;
    margin-top: 2rem;
    border-radius: 12px;
}

/* Article meta (date) — no box styling */
.article-meta {
    background: none;
    padding: 0;
    text-align: left;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.article-divider {
    border: none;
    border-top: 2px solid #d0c8dc;
    margin: 0.5rem 0 0.5rem;
}

/* Make images rounder and playful by default */
img { border-radius: 8px; }

/* Small helpers */
.muted { color: var(--muted); }
.brand-accent { color: #5b3b2a; }

/* Markdown-rendered tables */
article table {
    border-collapse: collapse;
    margin: 1.25rem 0;
    width: 100%;
}

article table th,
article table td {
    border: 1px solid #d0c8dc;
    padding: 0.5rem 0.85rem;
    text-align: left;
}

article table thead tr {
    background-color: #F2F1FA;
    color: #4a3f54;
}

/* Responsive images in blog content */
article img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.75rem 0;
}