/*
 * Jdunato Theme for neiki-cms
 * Version: 1.0.0
 * Author: Jindřich Stoklasa
 *
 * Light-only theme. Overrides the CMS CSS variables with the Jdunato brand
 * design tokens. Dark mode is disabled – all [data-theme="dark"] overrides
 * are intentionally reset to light values here.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');

/* ── Design tokens (light-only) ──────────────────────────────── */
:root {
    /* Core palette */
    --bg-primary:    #ffffff;
    --bg-secondary:  #f8fafc;
    --bg-tertiary:   #f1f5f9;
    --text-primary:  #1f2937;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --border-color:  #e2e8f0;

    /* Accent – Jdunato indigo */
    --accent-color:       #4f46e5;
    --accent-hover:       #4338ca;
    --accent-light:       #eef2ff;

    /* Cards / surfaces */
    --card-bg:            #ffffff;
    --card-shadow:        0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.06);
    --card-shadow-hover:  0 10px 15px rgba(15,23,42,.06), 0 25px 50px rgba(15,23,42,.12),
                          0 0 20px rgba(79,70,229,.12);

    /* Header / footer */
    --header-bg:          rgba(255,255,255,.88);
    --header-shadow:      none;
    --footer-bg:          #f8fafc;
    --footer-text:        #475569;

    /* Side menu */
    --side-menu-bg:       #ffffff;
    --overlay-bg:         rgba(0,0,0,.35);

    /* Forms / inputs */
    --input-bg:           #ffffff;
    --input-border:       #e2e8f0;
    --input-focus-border: #4f46e5;

    /* Badges */
    --badge-bg:           #eef2ff;
    --badge-text:         #4338ca;

    /* Alerts */
    --alert-success-bg:   #ecfdf5;
    --alert-success-text: #065f46;
    --alert-error-bg:     #fef2f2;
    --alert-error-text:   #991b1b;
    --alert-info-bg:      #eff6ff;
    --alert-info-text:    #1e40af;

    /* Shape */
    --radius: 14px;
}

/* ── Force light mode – reset any dark-mode overrides ──────────
   The theme is light-only; [data-theme="dark"] is never applied
   when this theme is active (JS skips it), but we reset it here
   as a safety net in case a stale value is in localStorage.      */
[data-theme="dark"] {
    --bg-primary:    #ffffff;
    --bg-secondary:  #f8fafc;
    --bg-tertiary:   #f1f5f9;
    --text-primary:  #1f2937;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --border-color:  #e2e8f0;
    --accent-color:       #4f46e5;
    --accent-hover:       #4338ca;
    --accent-light:       #eef2ff;
    --card-bg:            #ffffff;
    --card-shadow:        0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.06);
    --card-shadow-hover:  0 10px 15px rgba(15,23,42,.06), 0 25px 50px rgba(15,23,42,.12);
    --header-bg:          rgba(255,255,255,.88);
    --header-shadow:      none;
    --footer-bg:          #f8fafc;
    --footer-text:        #475569;
    --side-menu-bg:       #ffffff;
    --overlay-bg:         rgba(0,0,0,.35);
    --input-bg:           #ffffff;
    --input-border:       #e2e8f0;
    --input-focus-border: #4f46e5;
    --badge-bg:           #eef2ff;
    --badge-text:         #4338ca;
    --alert-success-bg:   #ecfdf5;
    --alert-success-text: #065f46;
    --alert-error-bg:     #fef2f2;
    --alert-error-text:   #991b1b;
    --alert-info-bg:      #eff6ff;
    --alert-info-text:    #1e40af;
    --radius: 14px;
}

/* ── Typography ──────────────────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.header-nav .nav-link,
.side-menu-header h3,
.page-title,
.post-card-title,
.single-post-title,
.category-filter a,
.comments-title,
.btn {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border-color);
    background: rgba(255,255,255,.96);
}

/* Nav links – underline animation */
.header-nav .nav-link {
    position: relative;
    padding-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border-radius: 0;
}

.header-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #06b6d4);
    border-radius: 2px;
    transition: left 200ms ease, right 200ms ease;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus-visible {
    color: var(--accent-color);
    background: none;
}

.header-nav .nav-link:hover::after {
    left: 0;
    right: 0;
}

/* Theme toggle – hidden for this theme (handled by PHP, but as safety) */
.theme-toggle {
    display: none !important;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn,
.jd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    border: 1.5px solid transparent;
    text-decoration: none;
    line-height: 1;
    transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease,
                color 200ms ease, border-color 200ms ease;
}

.btn:hover,
.jd-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.jd-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(79,70,229,.2);
}

.jd-btn--primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}

.jd-btn--ghost {
    background: transparent;
    color: #0f172a;
    border-color: #000;
}

.jd-btn--ghost:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.jd-btn--on-dark {
    background: #fff;
    color: #0f172a;
}

.jd-btn--on-dark:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 1px 3px rgba(79,70,229,.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}

.btn-primary .icon-img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Default PNG icon pack má vlastní barevné ikony – nefiltrovat */
.btn-primary .icon-img.icon-default {
    filter: none;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
}

.btn-secondary .icon-img {
    filter: brightness(0);
}

/* Default PNG icon pack má vlastní barevné ikony – nefiltrovat */
.btn-secondary .icon-img.icon-default {
    filter: none;
}

.btn-danger .icon-img {
    filter: brightness(0) invert(1);
}

/* Default PNG icon pack má vlastní barevné ikony – nefiltrovat */
.btn-danger .icon-img.icon-default {
    filter: none;
}

/* ── Hero image banner ───────────────────────────────────────── */
.hero-image {
    border-bottom: 1px solid var(--border-color);
}

/* ── Post cards ──────────────────────────────────────────────── */
.post-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: color-mix(in srgb, var(--accent-color) 30%, var(--border-color));
}

.post-card-category {
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* ── Category filter ─────────────────────────────────────────── */
.category-filter a {
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ── Single post ─────────────────────────────────────────────── */
.single-post-title {
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent-color);
    background: var(--accent-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
}

/* ── Comments ────────────────────────────────────────────────── */
.comment {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-container {
    border: 1px solid var(--border-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--border-color);
}

.site-footer .footer-social-link {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.site-footer .footer-social-link:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination a {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
}

.pagination a:hover,
.pagination .current {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ── Side menu ───────────────────────────────────────────────── */
.side-menu {
    border-left: 1px solid var(--border-color);
}

.side-menu-link {
    color: var(--text-primary);
    font-weight: 500;
}

.side-menu-link:hover {
    color: var(--accent-color);
}

/* ── Admin – keep neutral adjustments ───────────────────────── */
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--accent-light);
    color: var(--accent-color);
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: var(--accent-light);
}

/* ── Dashboard stat card accent icons ───────────────────────── */
.dashboard-stat-posts .dashboard-stat-icon  { background: rgba(45, 185, 175, 0.13); }
.dashboard-stat-pages .dashboard-stat-icon  { background: rgba(45, 185, 175, 0.13); }
.dashboard-stat-users .dashboard-stat-icon  { background: rgba(45, 185, 175, 0.13); }
.dashboard-stat-comments .dashboard-stat-icon { background: rgba(45, 185, 175, 0.13); }

/* ── Tag badges ──────────────────────────────────────────────── */
.tag-badge {
    border-radius: 999px;
}

/* ── Scrolled header class – applied by JS ───────────────────── */
/* JS adds .is-scrolled on scroll – handled in main.js addition below */

/* ── Accessibility: focus ring ───────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* ── Project badge (Aktivní / Ukončeno) ──────────────────────── */
.jd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    line-height: 1;
}

.jd-badge--active {
    background: #dcfce7;
    color: #166534;
}

.jd-badge--active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

.jd-badge--ended {
    background: #f1f5f9;
    color: #64748b;
}

/* Badge umístění v kartě projektu */
.jd-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 0;
}

.jd-card__title--in-header {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
    padding: 0;
}

/* ── CTA: dvě tlačítka vedle sebe ────────────────────────────── */
.jd-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.jd-btn--ghost-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.jd-btn--ghost-dark:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 1);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 700px) {
    .jd-cta__actions {
        width: 100%;
    }
    .jd-cta__actions .jd-btn,
    .jd-cta__actions .jd-btn--ghost-dark {
        width: 100%;
        justify-content: center;
    }
}

/* ── Blog sekce: intro text ──────────────────────────────────── */
.jd-section-head__intro {
    font-size: 0.95rem;
    color: #475569;
    margin: 0.5rem 0 0;
    max-width: 45ch;
}

/* ── "Máte nápad?" CTA pod projekty ──────────────────────────── */
.jd-idea-cta {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 2rem;
    background: var(--accent-light);
    border: 1.5px dashed color-mix(in srgb, var(--accent-color) 35%, transparent);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.jd-idea-cta__text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    /* vertikální zarovnání s tlačítkem zajišťuje align-items: center na rodiči */
}

.jd-idea-cta__text strong {
    color: var(--text-primary);
}

.jd-idea-cta .jd-btn {
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   JDUNATO THEME – Admin Toolbar Overrides (light-only)
   Overrides the inline defaults from admin/includes/header.php
   to match the Jdunato brand palette.
   Higher specificity via .admin-topbar ensures theme wins over
   inline styles in header.php.
   ══════════════════════════════════════════════════════════════ */

/* ── Admin toolbar buttons ───────────────────────────────────── */
.admin-topbar .admin-tb-btn {
    background:   #f8fafc;
    border-color: var(--border-color, #e2e8f0);
    color:        var(--text-secondary, #475569);
}

#admin-tb-btn-create {
    background: #6cf390 !important; 
}

.admin-topbar .admin-tb-btn:hover,
.admin-topbar .admin-tb-btn:focus-visible {
    background:   var(--accent-light, #eef2ff);
    border-color: var(--accent-color, #4f46e5);
    color:        var(--accent-color, #4f46e5);
    box-shadow:   0 2px 8px rgba(79,70,229,0.12);
}

.admin-topbar .admin-tb-btn.active {
    background:   var(--accent-light, #eef2ff);
    border-color: var(--accent-color, #4f46e5);
    color:        var(--accent-color, #4f46e5);
}

.admin-tb-btn--accent {
    background: #2da64e;
    color: var(--text-secondary, #475569);
    border-color: transparent;
    padding: 7px 14px;
    font-weight: 600;
    height: 40px
}
/* ── Admin icon-only buttons ─────────────────────────────────── */
.admin-topbar .admin-tb-icon {
    background:   #f8fafc;
    border-color: var(--border-color, #e2e8f0);
    color:        var(--text-secondary, #475569);
}

.admin-topbar .admin-tb-icon:hover,
.admin-topbar .admin-tb-icon:focus-visible {
    background:   var(--accent-light, #eef2ff);
    border-color: var(--accent-color, #4f46e5);
    color:        var(--accent-color, #4f46e5);
    box-shadow:   0 2px 8px rgba(79,70,229,0.12);
}

/* ── Site status pill ────────────────────────────────────────── */
.admin-topbar .admin-site-status {
    background:   #f8fafc;
    border-color: var(--border-color, #e2e8f0);
    color:        var(--text-secondary, #475569);
}

.admin-topbar .admin-site-status:hover {
    background:   var(--accent-light, #eef2ff);
    border-color: var(--accent-color, #4f46e5);
    box-shadow:   0 2px 8px rgba(79,70,229,0.12);
}

/* ── Command palette trigger ─────────────────────────────────── */
.admin-topbar .admin-tb-btn--cmdpal {
    background:   #f8fafc !important;
    border-color: var(--border-color, #e2e8f0) !important;
    color:        var(--text-muted, #94a3b8) !important;
    border-style: solid !important;
}

.admin-topbar .admin-tb-btn--cmdpal:hover,
.admin-topbar .admin-tb-btn--cmdpal:focus-within {
    background:   var(--accent-light, #eef2ff) !important;
    border-color: var(--accent-color, #4f46e5) !important;
    color:        var(--text-secondary, #475569) !important;
    box-shadow:   0 2px 8px rgba(79,70,229,0.12) !important;
}

/* ── Span labels margin-bottom ───────────────────────────────── */
.admin-tb-btn span,
.admin-tb-btn--cmdpal span,
.admin-site-status .admin-site-status-label {
    margin-bottom: 2px;
}


/* ── Custom scrollbar (Jdunato theme) ───────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #f1f5f9;
}

/* ── Page hero ───────────────────────────────────────────────── */
.jd-page-hero {
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
        linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    padding-block: clamp(3rem, 6vw, 5rem);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    /* Full-bleed: escape the max-width page-content container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden;
}

.jd-page-hero .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.jd-page-hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.jd-page-hero__title {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif !important;
    font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.75rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
}

.jd-page-hero__lede {
    max-width: 60ch;
    color: #475569;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .jd-page-hero {
        padding-block: clamp(2rem, 5vw, 3rem);
    }
    .jd-page-hero__title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
    .jd-page-hero__lede {
        font-size: 0.95rem;
    }
}

/* ── Základ ──────────────────────────────────────────────────── */
.jd-page {
    font-family: 'Inter', system-ui, sans-serif;
}

.jd-section {
    padding-block: clamp(2rem, 4vw, 4rem);
}

.jd-section--alt {
    background: #f8fafc;
}

.jd-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 1rem;
}

/* ── Grid ────────────────────────────────────────────────────── */
.jd-grid {
    display: grid;
    gap: clamp(1.25rem, 2vw, 2rem);
}

.jd-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.jd-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .jd-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .jd-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .jd-grid--3 { grid-template-columns: 1fr; }
}

/* ── Section head ────────────────────────────────────────────── */
.jd-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.jd-section-head__title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
    font-weight: 700;
    color: #0f172a;
}

.jd-section-head__lede {
    max-width: 50ch;
    color: #475569;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .jd-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .jd-section-head .jd-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Feature cards ───────────────────────────────────────────── */
.jd-feature {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jd-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(15,23,42,.06), 0 25px 50px rgba(15,23,42,.12),
                0 0 20px rgba(79,70,229,.12);
}

.jd-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jd-feature:hover .jd-feature__icon {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.jd-feature__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.jd-feature__body {
    color: #475569;
    margin: 0;
    font-size: 0.95rem;
}

/* ── Project / general cards ─────────────────────────────────── */
.jd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(15,23,42,.06), 0 25px 50px rgba(15,23,42,.12),
                0 0 20px rgba(79,70,229,.12);
}

.jd-card__image {
    aspect-ratio: 16/10;
    background: #eef2ff;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.jd-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.jd-card:hover .jd-card__image img {
    transform: scale(1.04);
}

.jd-card__title {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
    padding: 1.25rem 1.5rem 0;
}

.jd-card__body {
    color: #475569;
    margin: 0;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.jd-card__cta {
    padding: 0.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.jd-card__more {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.jd-card__more:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ── Post cards (blog) ───────────────────────────────────────── */
.jd-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jd-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(15,23,42,.06), 0 25px 50px rgba(15,23,42,.12),
                0 0 20px rgba(79,70,229,.12);
    text-decoration: none;
    color: inherit;
}

.jd-post-card__image {
    aspect-ratio: 16/10;
    background: #eef2ff;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.jd-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.jd-post-card:hover .jd-post-card__image img {
    transform: scale(1.04);
}

.jd-post-card__meta {
    color: #475569;
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem 0;
}

.jd-post-card__title {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
    padding: 0.5rem 1.5rem 0;
}

.jd-post-card__excerpt {
    color: #475569;
    margin: 0;
    padding: 0.5rem 1.5rem 0;
    font-size: 0.9rem;
    flex: 1;
}

.jd-post-card__more {
    color: #4f46e5;
    font-weight: 600;
    padding: 0.75rem 1.5rem 1.5rem;
    display: block;
}

.jd-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

/* ── CTA banner ──────────────────────────────────────────────── */
.jd-cta {
    background:
        radial-gradient(800px 400px at 90% -20%, rgba(34,211,238,.25), transparent 60%),
        radial-gradient(600px 300px at 10% 100%, rgba(139,92,246,.2), transparent 60%),
        linear-gradient(135deg, #4338ca, #6366f1);
    color: #fff;
    border-radius: 22px;
    padding: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.jd-cta__title {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
    font-weight: 700;
}

.jd-cta__body {
    color: rgba(255,255,255,.85);
    margin: 0;
    max-width: 50ch;
}

@media (max-width: 700px) {
    .jd-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .jd-cta .jd-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── O nás: about grid + story block ────────────────────────── */
.jd-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.jd-about-grid--image .jd-about-illustration {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.jd-about-grid--image .jd-about-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 800px) {
    .jd-about-grid { grid-template-columns: 1fr; }
}

.jd-story-block h3 {
    margin-top: 2.5rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.jd-story-block h4 {
    margin: 0.75rem 0 1.5rem;
    font-size: 1.1rem;
    color: #4f46e5;
    font-style: italic;
    font-weight: 600;
}

.jd-story-block p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #1f2937;
}

/* ── Volná místa: job cards ──────────────────────────────────── */
.jd-job {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jd-job:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(15,23,42,.06), 0 25px 50px rgba(15,23,42,.12),
                0 0 20px rgba(79,70,229,.12);
}

.jd-job--with-image {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
}

.jd-job__image {
    background: #eef2ff;
    overflow: hidden;
    height: 100%;
    min-height: 220px;
}

.jd-job__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.jd-job:hover .jd-job__image img {
    transform: scale(1.04);
}

.jd-job__content {
    padding: 1.75rem;
}

.jd-job__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #0f172a;
}

.jd-job__body {
    color: #475569;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.jd-job__apply {
    margin-top: auto;
}

@media (max-width: 700px) {
    .jd-job--with-image { grid-template-columns: 1fr; }
    .jd-job__image { min-height: 180px; }
}

/* ── Kontaktní formulář ──────────────────────────────────────── */
.jd-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

@media (max-width: 800px) {
    .jd-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.jd-contact-info h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.jd-contact-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-block: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-radius: 8px;
}

.jd-contact-info__item:hover {
    background: #eef2ff;
    padding-left: 0.5rem;
}

.jd-contact-info__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
}

.jd-contact-info__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.jd-contact-info__value a {
    color: inherit;
    text-decoration: none;
}

.jd-contact-info__value a:hover {
    color: #4f46e5;
}

.jd-contact-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    display: grid;
    gap: 1.25rem;
}

.jd-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .jd-cf-row { grid-template-columns: 1fr; }
}

.jd-cf-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jd-cf-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.jd-cf-input,
.jd-cf-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font: inherit;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.jd-cf-input:focus,
.jd-cf-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.jd-cf-textarea {
    min-height: 140px;
    resize: vertical;
}

.jd-cf-hint {
    color: #475569;
    font-size: 0.8rem;
}

.jd-cf-field-error {
    color: #b91c1c;
    font-size: 0.85rem;
    display: none;
}

.jd-cf-alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.jd-cf-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.jd-cf-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
