/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== KOLORY (Pinterest vibe) ===== */
:root {
    --bg: #f9fafb;
    --white: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #111827;
    --border: #e5e7eb;
    --accent: #2563eb;
}

/* ===== GLOBAL ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Inter, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== TYPO ===== */
h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

p {
    color: var(--muted);
}

/* ===== MINIATURKI LEKCJI ===== */
.lesson-thumbnail {
    width: 100%;          /* pełna szerokość karty */
    height: auto;         /* proporcjonalna wysokość */
    border-radius: 12px;  /* lekko zaokrąglone rogi */
    margin-bottom: 12px;  /* odstęp od tytułu */
    object-fit: cover;    /* przycinanie przy nietypowych proporcjach */
    display: block;       /* usuwa inline-gap */
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer; /* zawsze łapka */
}

/* Klasy kolorystyczne */
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    background: #f3f4f6;
}

/* Zielony dla ukończonej lekcji */
.btn-success {
    background-color: #27ae60;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-success:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Czerwony dla cofnięcia ukończenia */
.btn-danger {
    background-color: #c0392b;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-danger:hover {
    background-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Wszystkie przyciski typu <button> z klasą .btn mają kursor pointer */
button.btn {
    cursor: pointer;
}

/* Dodatkowo animacja hover dla button .btn-success i .btn-danger */
button.btn-success:hover,
button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===== CARD ===== */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===== NAV ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    color: var(--text);
}
