/* Základní proměnné pro vizuál */
:root {
    --pi-bg-dark: #121212;
    --pi-bg-card: #1c1c1e;
    --pi-text-main: #f5f5f7;
    --pi-text-muted: #86868b;
    --pi-accent: #7AB800; /* Aktualizovaná firemní zelená */
    --pi-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Tlačítko pro otevření */
.pi-trigger-btn {
    background: var(--pi-accent);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 30px; /* Více zaoblené pro čistší look */
    font-family: var(--pi-font);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.pi-trigger-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Modální okno - Overlay */
.pi-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
}
.pi-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modální okno - Obsah */
.pi-modal-content {
    background: var(--pi-bg-dark);
    color: var(--pi-text-main);
    font-family: var(--pi-font);
    border-radius: 20px; /* Větší zaoblení celého modalu */
    width: 90%;
    max-width: 750px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #2a2a2c;
}
.pi-modal-overlay.is-visible .pi-modal-content {
    transform: translateY(0);
}

/* Hlavička a zavírací křížek */
.pi-modal-heading {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.pi-close-btn {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none;
    color: var(--pi-text-muted);
    font-size: 28px; line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.pi-close-btn:hover { color: var(--pi-text-main); }

/* Rozložení */
.pi-layout {
    display: flex;
    gap: 40px;
}
@media(max-width: 600px) {
    .pi-layout { flex-direction: column; gap: 20px; }
    .pi-modal-content { padding: 30px 24px; }
}

/* Levé menu - Tlačítka složek */
.pi-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.pi-ing-btn {
    background: var(--pi-bg-card);
    color: var(--pi-text-muted);
    border: 1px solid transparent;
    padding: 16px 20px;
    border-radius: 24px; /* Více zaoblené */
    text-align: left;
    font-size: 15px;
    font-family: var(--pi-font);
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pi-ing-btn:hover {
    background: #242426;
    color: var(--pi-text-main);
}
.pi-ing-btn.active {
    /* Průhlednost definována v RGB z hodnoty #7AB800 */
    background: rgba(122, 184, 0, 0.1);
    color: var(--pi-accent);
    border-color: rgba(122, 184, 0, 0.3);
}

/* Pravý panel - Detaily */
.pi-detail-pane {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    user-select: none; 
    -webkit-user-select: none;
}
.pi-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--pi-accent);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}
.pi-detail-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pi-text-muted);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Nápověda ke swajpování (jen pro mobily) */
.pi-swipe-hint {
    display: none;
    font-size: 12px;
    color: var(--pi-text-muted);
    opacity: 0.5;
    margin-top: 20px;
    text-align: center;
}
@media(max-width: 600px) {
    .pi-swipe-hint { display: block; }
}

/* Animace při přepnutí textu (pokud bys nepoužil GSAP verzi) */
.fade-in-text {
    animation: piFadeIn 0.3s ease-out forwards;
}
@keyframes piFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
