/* =============================================
   main.css — zmienne, reset, typografia, utils
   Pogodynka.eu — jasny, profesjonalny motyw pogodowy
   (panel admina ma własny, ciemny motyw w admin.css)
   ============================================= */

:root {
    color-scheme: light;

    /* Tła */
    --bg:          #eef4fb;
    --bg-mid:      #e3edf8;
    --bg-deep:     #f7fafe;
    --surface:     #ffffff;
    --surface-alt: #f3f7fc;

    /* Tekst */
    --text:        #1f2d3d;
    --text-muted:  #5d7186;
    --text-soft:   #3d4f63;
    --text-white:  #0f1d2e;

    /* Akcenty — błękit, granat, zieleń */
    --primary:     #1c6dd0;   /* błękit */
    --primary-lit: #2f8fe0;
    --navy:        #102a52;   /* granat */
    --accent:      #1565c0;
    --accent-lit:  #0d4fa0;
    --green:       #1f9d6b;   /* zieleń */
    --green-lit:   #27b97f;
    --warning:     #d9870b;
    --danger:      #d6453c;

    /* Ramki */
    --line:        rgba(16, 42, 82, .12);
    --line-soft:   rgba(16, 42, 82, .07);
    --line-accent: rgba(28, 109, 208, .28);

    /* Cienie (miękkie, jasny motyw) */
    --shadow-sm:   0 1px 3px rgba(16, 42, 82, .06), 0 1px 2px rgba(16, 42, 82, .04);
    --shadow-md:   0 6px 20px rgba(16, 42, 82, .08), 0 2px 6px rgba(16, 42, 82, .05);
    --shadow-lg:   0 18px 50px rgba(16, 42, 82, .14), 0 6px 18px rgba(16, 42, 82, .08);

    /* Promienie */
    --r-sm:  10px;
    --r-md:  16px;
    --r-lg:  22px;
    --r-xl:  30px;

    /* Kontener */
    --container: 1180px;

    /* Font */
    --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    min-width: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% -5%,  rgba(28, 109, 208, .10), transparent 38%),
        radial-gradient(circle at 95% 0%,  rgba(31, 157, 107, .08), transparent 34%),
        linear-gradient(170deg, var(--bg-deep) 0%, var(--bg) 45%, var(--bg-mid) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

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

button, input, textarea { font: inherit; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Layout utils ---------- */
.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1; }

/* ---------- Typografia ---------- */
.kicker,
.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -.01em;
}

.section-note {
    max-width: 480px;
    margin: 0;
    color: var(--text-muted);
    font-size: .97rem;
}

.muted { color: var(--text-muted); }

/* ---------- Karty bazowe ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    contain: layout style;
}

/* ---------- Badge / pill ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid var(--line-accent);
    border-radius: 999px;
    background: rgba(28, 109, 208, .08);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

/* ---------- Status dots ---------- */
.status-dot {
    width: 9px;
    height: 9px;
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .45; }
}

.status-dot-ok      { background: var(--green);   animation: dotPulse 3s ease-in-out infinite; }
.status-dot-warning { background: var(--warning); animation: dotPulse 2.4s ease-in-out infinite; }
.status-dot-error   { background: var(--danger);  animation: dotPulse 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .status-dot-ok,
    .status-dot-warning,
    .status-dot-error { animation: none; }
}

/* ---------- Przyciski ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    text-decoration: none;
}
.button:hover { transform: translateY(-2px); }

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 22px rgba(28, 109, 208, .26);
}
.button-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(28, 109, 208, .34); }

.button-secondary {
    border-color: var(--line-accent);
    background: #fff;
    color: var(--accent);
}
.button-secondary:hover { color: var(--accent-lit); border-color: var(--primary); }

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Formularze ---------- */
.form-grid  { display: grid; gap: 16px; }

.form-field { display: grid; gap: 7px; }

.form-field label {
    color: var(--text-soft);
    font-weight: 700;
    font-size: .93rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 109, 208, .12);
    outline: none;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}
