/* =====================================================================
   ZEDNNER — Design System
   Styl: Clean SaaS Light (Indigo & Slate)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors */
    --zdn-primary: #4f46e5; /* Indigo 600 */
    --zdn-primary-2: #3730a3; /* Indigo 800 */
    --zdn-accent: #0ea5e9; /* Sky Blue 500 */
    --zdn-secondary: #f8fafc; /* Slate 50 */
    --zdn-success: #10b981; /* Emerald */
    /* Light Theme Backgrounds */
    --zdn-bg: #f8fafc; /* Slate 50 (Background) */
    --zdn-surface: #ffffff; /* Elevated Surface 1 (Cards, Nav) */
    --zdn-surface-2: #f1f5f9; /* Elevated Surface 2 (Alt sections) */
    /* Typography */
    --zdn-dark: #0f172a; /* Headings (Slate 900) */
    --zdn-text: #334155; /* Body text (Slate 700) */
    --zdn-muted: #64748b; /* Secondary text (Slate 500) */
    /* UI Elements */
    --zdn-border: #e2e8f0; /* Slate 200 */
    --zdn-border-strong: #cbd5e1; /* Slate 300 */
    /* Shadows & Effects */
    --zdn-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --zdn-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    --zdn-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --zdn-shadow-col: 0 8px 25px rgba(79, 70, 229, 0.25); /* Indigo glow */
    --zdn-radius: 1rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--zdn-text);
    background: var(--zdn-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--zdn-dark);
    letter-spacing: -0.02em;
    outline: none !important;
    border: none;
    box-shadow: none !important;
}

/* === GRADIENT TEXT — INLINE, NE BLOCK ================================ */
.zdn-text-glow {
    background: linear-gradient(135deg, var(--zdn-primary) 0%, var(--zdn-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline;
}

.text-gradient {
    background: linear-gradient(135deg, var(--zdn-primary), var(--zdn-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* === ZRUSENI VSECH OUTLINE/BORDER =================================== */
*, *:focus {
    outline: none !important;
}

input, textarea, select, button, a {
    outline: none !important;
}

*:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.5) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.btn:focus, .btn:active, .btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* === TLACITKA ======================================================== */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--zdn-primary), var(--zdn-primary-2));
    color: #ffffff;
    box-shadow: var(--zdn-shadow-col);
    font-weight: 700;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
        color: #ffffff;
        background: linear-gradient(135deg, var(--zdn-primary-2), var(--zdn-primary));
    }

.btn-outline-primary {
    background: transparent;
    color: var(--zdn-primary);
    border: 1.5px solid var(--zdn-primary) !important;
}

    .btn-outline-primary:hover {
        background: rgba(79, 70, 229, 0.05);
        color: var(--zdn-primary-2);
        transform: translateY(-2px);
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--zdn-text);
    border: 1.5px solid var(--zdn-border-strong) !important;
}

    .btn-outline-secondary:hover {
        background: var(--zdn-surface-2);
        color: var(--zdn-dark);
        border-color: var(--zdn-dark) !important;
        transform: translateY(-1px);
    }

.btn-light {
    background: var(--zdn-surface);
    color: var(--zdn-text);
    border: 1px solid var(--zdn-border) !important;
}

    .btn-light:hover {
        background: var(--zdn-surface-2);
        color: var(--zdn-dark);
    }

/* === NAVBAR =========================================================== */
.zdn-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--zdn-border);
    box-shadow: var(--zdn-shadow-sm);
}

.navbar-brand {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--zdn-dark) !important;
    letter-spacing: -0.03em;
}

.zdn-brand-z {
    background: linear-gradient(135deg, var(--zdn-primary), var(--zdn-primary-2));
    color: #ffffff !important;
    padding: 0.1em 0.5em;
    border-radius: 0.4rem;
    margin-right: 0.15rem;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
    font-weight: 800;
}

.nav-link {
    color: var(--zdn-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

    .nav-link:hover {
        color: var(--zdn-primary) !important;
        background: rgba(79, 70, 229, 0.05);
    }

/* === HERO ============================================================= */
.zdn-hero {
    padding: 8rem 0 7rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--zdn-surface-2) 0%, var(--zdn-surface) 100%);
}

.zdn-hero-glow-1, .zdn-hero-glow-2, .zdn-hero-glow-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    animation: zdnFloat 20s infinite ease-in-out alternate;
}

.zdn-hero-glow-1 {
    top: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}

.zdn-hero-glow-2 {
    bottom: -20%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    animation-delay: -7s;
}

.zdn-hero-glow-3 {
    top: 30%;
    left: 35%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation-delay: -13s;
}

@keyframes zdnFloat {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(20px,-25px) scale(1.08);
    }

    100% {
        transform: translate(-15px,30px) scale(0.93);
    }
}

.zdn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--zdn-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.zdn-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--zdn-dark);
}

.zdn-hero-subtitle {
    font-size: 1.15rem;
    color: var(--zdn-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

.zdn-trust-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zdn-muted);
}

/* === SEKCE ============================================================ */
.zdn-section {
    padding: 6rem 0;
}

.zdn-section-alt {
    background: var(--zdn-surface-2);
    border-top: 1px solid var(--zdn-border);
    border-bottom: 1px solid var(--zdn-border);
}

.zdn-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.zdn-section-title {
    font-size: clamp(1.75rem,4vw,2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--zdn-dark);
    margin-bottom: 0.75rem;
}

.zdn-section-sub {
    color: var(--zdn-muted);
    max-width: 520px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

.zdn-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--zdn-primary), transparent);
    border-radius: 2px;
    margin: 0.75rem auto;
}

/* === KARTY ============================================================ */
.zdn-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: var(--zdn-radius);
    padding: 2rem;
    box-shadow: var(--zdn-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--zdn-text);
}

    .zdn-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--zdn-shadow);
        border-color: var(--zdn-border-strong);
    }

    .zdn-card h1, .zdn-card h2, .zdn-card h3, .zdn-card h4, .zdn-card h5 {
        color: var(--zdn-dark);
        outline: none !important;
        border: none;
    }

.zdn-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

    .zdn-card-icon.blue {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .zdn-card-icon.green {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .zdn-card-icon.amber {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .zdn-card-icon.violet {
        background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    }

/* === PORTFOLIO KARTY ================================================= */
.zdn-portfolio-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: var(--zdn-radius);
    padding: 1.75rem;
    box-shadow: var(--zdn-shadow-sm);
    transition: all 0.3s ease;
    color: var(--zdn-text);
}

    .zdn-portfolio-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--zdn-shadow);
        border-color: var(--zdn-border-strong);
    }

.zdn-portfolio-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

    .zdn-portfolio-badge.primary {
        background: rgba(79, 70, 229, 0.1);
        color: var(--zdn-primary);
        border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .zdn-portfolio-badge.info {
        background: var(--zdn-surface-2);
        color: var(--zdn-text);
        border: 1px solid var(--zdn-border-strong);
    }

.zdn-portfolio-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--zdn-border);
}

/* === AI KARTA ========================================================= */
.zdn-ai-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: 1.25rem;
    box-shadow: var(--zdn-shadow-lg);
    overflow: hidden;
}

.zdn-ai-card-header {
    background: var(--zdn-surface-2);
    color: var(--zdn-dark);
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--zdn-border);
}

.zdn-ai-preview {
    padding: 1.25rem 1.5rem;
}

.zdn-ai-cta {
    padding: 1.25rem 1.5rem;
    background: var(--zdn-surface-2);
    border-top: 1px solid var(--zdn-border);
}

.zdn-module-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--zdn-border);
}

    .zdn-module-row:last-child {
        border-bottom: none;
    }

.zdn-module-content {
    flex: 1;
    min-width: 0;
}

/* === BADGE SLOZITOSTI ================================================ */
.zdn-badge-complexity {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .zdn-badge-complexity::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        display: inline-block;
    }

    .zdn-badge-complexity.low {
        background: #ecfdf5;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

        .zdn-badge-complexity.low::before {
            background: #10b981;
            box-shadow: 0 0 5px #10b981;
        }

    .zdn-badge-complexity.medium {
        background: #fffbeb;
        color: #d97706;
        border: 1px solid #fde68a;
    }

        .zdn-badge-complexity.medium::before {
            background: #f59e0b;
            box-shadow: 0 0 5px #f59e0b;
        }

    .zdn-badge-complexity.high {
        background: #fef2f2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

        .zdn-badge-complexity.high::before {
            background: #ef4444;
            box-shadow: 0 0 5px #ef4444;
        }

/* === FORMULARE ======================================================= */
.form-control, .form-select {
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--zdn-border-strong);
    background: var(--zdn-surface);
    color: var(--zdn-text);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none !important;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--zdn-primary) !important;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
        background: var(--zdn-surface);
        outline: none !important;
    }

    .form-control::placeholder {
        color: var(--zdn-muted);
    }

    .form-control:focus-visible, .form-select:focus-visible {
        outline: none !important;
    }

/* === KONTAKTNI KARTA ================================================= */
.zdn-contact-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: var(--zdn-radius);
    padding: 3rem;
    box-shadow: var(--zdn-shadow);
}

/* === TECH TAG ======================================================== */
.zdn-tech-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--zdn-border-strong);
    background: var(--zdn-surface-2);
    color: var(--zdn-text);
    font-size: 0.7rem;
    font-weight: 600;
}

/* === FOOTER ========================================================== */
.zdn-footer {
    background: var(--zdn-dark);
    color: var(--zdn-muted);
    border-top: 1px solid var(--zdn-dark);
}

    .zdn-footer h6 {
        color: #ffffff;
    }

    .zdn-footer a {
        color: var(--zdn-border-strong) !important;
    }

        .zdn-footer a:hover {
            color: #ffffff !important;
        }

/* === BLAZOR ERROR ==================================================== */
#blazor-error-ui {
    background: #fef2f2;
    color: #991b1b;
    border-top: 1px solid #fecaca;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* === DEMO BACK BUTTON ================================================ */
.btn-demo-back {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--zdn-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--zdn-shadow);
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--zdn-border-strong);
}

    .btn-demo-back:hover {
        transform: translateY(-3px);
        background: var(--zdn-surface);
        color: var(--zdn-primary);
        box-shadow: var(--zdn-shadow-lg);
        border-color: var(--zdn-border-strong);
    }

/* === DEMO PUJCOVNA =================================================== */
.demo-pujcovna-wrapper {
    background: var(--zdn-bg);
    min-height: 100vh;
}

.costume-card {
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

    .costume-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--zdn-shadow-lg) !important;
    }

.card-img-wrapper img {
    transition: transform 0.5s ease;
}

.costume-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.btn-theme-dynamic {
    background: linear-gradient(45deg, var(--zdn-primary), var(--zdn-primary-2));
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
}

    .btn-theme-dynamic:hover {
        background: linear-gradient(45deg, var(--zdn-primary-2), var(--zdn-primary));
        transform: translateY(-2px);
        box-shadow: var(--zdn-shadow-col);
        color: #ffffff;
    }

.badge-fun {
    background: linear-gradient(45deg, var(--zdn-accent), #38bdf8);
    color: #ffffff;
    font-size: 0.875rem;
    border-radius: 50px;
}

/* === AUTHENTICATOR =================================================== */
.authenticator-setup-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--zdn-surface);
    border-radius: var(--zdn-radius);
    padding: 2.5rem;
    box-shadow: var(--zdn-shadow);
    border: 1px solid var(--zdn-border);
}

    .authenticator-setup-card .qr-container {
        display: flex;
        justify-content: center;
        padding: 1.5rem;
        background: var(--zdn-surface-2);
        border-radius: 0.75rem;
        border: 1px dashed var(--zdn-border-strong);
    }

/* === KPI KARTY SERVICE DESK ========================================== */
.kpi-card {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    background: var(--zdn-surface);
    border-color: var(--zdn-border);
}

    .kpi-card:hover {
        transform: none !important;
        box-shadow: var(--zdn-shadow) !important;
    }

/* === OPRAVA POZADI U KARET =================================== */
.card {
    background-color: var(--zdn-surface) !important;
    color: var(--zdn-text);
    border-color: var(--zdn-border);
}

    .card.bg-info, .card.bg-info.bg-opacity-10 {
        background-color: rgba(14, 165, 233, 0.1) !important;
        color: var(--zdn-text) !important;
        border-color: rgba(14, 165, 233, 0.2);
    }

    .card.bg-white {
        background-color: var(--zdn-surface) !important;
    }

    .card.bg-light {
        background-color: var(--zdn-surface-2) !important;
        border-color: var(--zdn-border-strong);
    }

/* ===== OPRAVA: Blazor scroll-restoration přidává tabindex="-1" na section/h1 ===== */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible,
section:focus,
section:focus-visible,
h1:focus, h1:focus-visible,
h2:focus, h2:focus-visible,
h3:focus, h3:focus-visible,
div[tabindex]:focus, div[tabindex]:focus-visible,
main:focus, main:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Footer link hovers */
.hover-primary {
    transition: color 0.2s ease;
}

    .hover-primary:hover {
        color: var(--zdn-primary) !important;
    }
