/*
Theme Name: INOVAD Theme
Author: Lukáš Čermák
Description: Vlastní šablona pro projekt INOVAD.
Version: 2.1.0
Text Domain: inovad-theme
*/

/* Styly pro INOVAD Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

#chat-button {
    background-color: #D97706;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

#chat-button:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: calc(100% + 1rem); /* Pozice relativně k tlačítku */
    right: 0;
    width: 450px; /* Nová šířka (zvětšeno z 350px) */
    height: 600px; /* Nová výška (zvětšeno z 500px) */
    max-width: calc(100vw - 4rem); /* Omezení, aby nepřesahovalo obrazovku na mobilu */
    max-height: calc(100vh - 8rem); /* Omezení, aby nepřesahovalo obrazovku na mobilu */
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Mírně větší stín */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out, visibility 0.2s;
    transform-origin: bottom right;
}

#chat-window.visible {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #D97706 #F3F4F6;
    /* Můžeme mírně zvětšit písmo pro zprávy */
    font-size: 0.95rem; /* Zkus tuto hodnotu, případně uprav (původně nebyla definována zde) */
    line-height: 1.5; /* Mírně větší řádkování pro čitelnost */
}

#chat-messages::-webkit-scrollbar {
    width: 8px;
}
#chat-messages::-webkit-scrollbar-track {
    background: #F3F4F6;
}
#chat-messages::-webkit-scrollbar-thumb {
    background-color: #D97706;
    border-radius: 10px;
    border: 2px solid #F3F4F6;
}

.chat-message {
    padding: 8px 14px;
    border-radius: 18px;
    margin-bottom: 8px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message {
    background-color: #FEF3C7;
    align-self: flex-end;
    color: #78350f;
}

.assistant-message {
    background-color: #F3F4F6;
    align-self: flex-start;
    color: #374151;
}

header nav a {
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

header nav a:hover {
    color: #d97706;
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

.badge {
    display: inline-block;
    padding: .25rem .5rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.badge--rodic {
    background: #fff7ed;
    border-color: #fdba74;
    color: #7c2d12;
}
.badge--akademik {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}
.badge--vizionar {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #155e75;
}

.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    background-color: #6B7280;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.btn:hover {
    background-color: #4B5563;
}
.btn-primary {
    background-color: #D97706;
}
.btn-primary:hover {
    background-color: #b45309;
}

.muted {
    color: #6b7280;
    font-size: 0.9rem;
}

:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #111;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 6px;
    z-index: 1000;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.trust-item .icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
}
.trust-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.trust-item p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.data-flow {
    padding: 1.5rem;
    margin: 2rem 0;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
.data-flow__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}
.data-flow .flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.data-flow .flow-item {
    flex-shrink: 0;
}
.data-flow .step {
    font-weight: 600;
    display: block;
}
.data-flow .desc {
    font-size: 0.8rem;
    color: #6b7280;
}
.data-flow .arrow {
    font-size: 1.5rem;
    color: #9ca3af;
}
.data-flow .note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #4b5563;
}
@media (max-width: 768px) {
    .data-flow .flow {
        flex-direction: column;
    }
    .data-flow .arrow {
        transform: rotate(90deg);
    }
}
/* -- Timeline -- */
.timeline {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    border-left: 3px solid #e5e7eb;
}
.timeline-item {
    position: relative;
    padding: 0 0 2rem 2rem;
    margin-left: 1rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.6rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: #9ca3af; /* Gray 400 */
    border: 3px solid #f9fafb;
}
.timeline-item.done::before {
    background-color: #16a34a; /* Green 600 */
}
.timeline-item.doing::before {
    background-color: #f59e0b; /* Amber 500 */
}
.timeline-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.timeline-item p {
    margin-top: 0.5rem;
    color: #4b5563;
}
/* -- Styly pro štítky Evidence TIER (v. 2.0) -- */
.tier {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    border: 1px solid;
}
.tier-i { background-color: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.tier-ii { background-color: #f0fdf4; border-color: #86efac; color: #15803d; }
.tier-iii { background-color: #fefce8; border-color: #facc15; color: #854d0e; }
.tier-iv { background-color: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.tier-i-ii { background: linear-gradient(90deg, #dbeafe 50%, #f0fdf4 50%); border-color: #a5b4fc; color: #374151; }
.tier-ii-iii { background: linear-gradient(90deg, #f0fdf4 50%, #fefce8 50%); border-color: #a7f3d0; color: #374151; }

/* -- Zarovnání štítku a názvu intervence -- */
.intervention-item-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.intervention-item-wrapper .tier {
    flex-shrink: 0;
}
.intervention-item-wrapper a {
    line-height: 1.2;
}

/* -- Vizuální předěl sekcí -- */
.section-divider {
    max-width: 100px;
    height: 4px;
    background-color: #f59e0b; /* Amber 500 */
    margin: 4rem auto;
    border-radius: 2px;
}

/* -- ÚPRAVA: Zvýraznění "Happy Paths" -- */
.happy-paths .hp {
    display: block;
    padding: 2rem; /* Zvětšeno z 1.5rem */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.happy-paths .hp:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.happy-paths .hp-ico {
    font-size: 2.5rem; /* Zvětšeno z 2rem */
    line-height: 1;
    margin-bottom: 1rem; /* Zvětšeno z 0.75rem */
}
.happy-paths .hp strong {
    display: block;
    margin: .25rem 0;
    font-size: 1.25rem; /* Zvětšeno z 1.125rem */
    color: #1f2937;
}
.happy-paths .hp span {
    font-size: 1rem; /* Zvětšeno z 0.9rem */
    color: #4b5563;
}