/* Deko simulator - doplnkove styly podstranky (farby podla simulatora) */
:root {
    --deko: #7fb8a6;
    --deko-gradient: linear-gradient(135deg, #7fb8a6 0%, #78aedb 100%);
}

.deko-accent {
    background: var(--deko-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.deko-glow {
    background: radial-gradient(circle, rgba(127, 184, 166, 0.18) 0%, rgba(120, 174, 219, 0.1) 40%, transparent 70%);
}

.deko-dot { background: var(--deko); animation-name: deko-ping; }

@keyframes deko-ping {
    0% { box-shadow: 0 0 0 0 rgba(127, 184, 166, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(127, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(127, 184, 166, 0); }
}

/* Hero - vyrez sceny s potapacom */
.deko-scene {
    margin: 0 auto;
    max-width: 380px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(127, 184, 166, 0.12);
    animation: deko-float 7s ease-in-out infinite;
}

.deko-scene img { width: 100%; }

@keyframes deko-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Prehlad - cela obrazovka pod textom */
.deko-overview {
    max-width: 1240px;
    margin: 3.5rem auto 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.deko-overview img { width: 100%; }

.story-inner strong { color: var(--deko); }

/* Akcenty v tyrkysovej */
.section-kicker { color: var(--deko); }
.feature-icon { background: rgba(127, 184, 166, 0.12); color: var(--deko); }
.stat-value { background: var(--deko-gradient); -webkit-background-clip: text; background-clip: text; }

.deko-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: -3rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.deko-note .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }

/* Technologie */
.deko-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    text-align: left;
}

.deko-tech .stack-card > .material-symbols-outlined { color: var(--deko); }
.deko-tech .stack-card:hover { border-color: var(--deko); box-shadow: var(--shadow-md), 0 0 40px rgba(127, 184, 166, 0.15); }

.deko-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .deko-scene { max-width: 300px; }
    .deko-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .deko-note { margin-top: -2rem; }
}

@media (max-width: 600px) {
    .deko-tech-grid { grid-template-columns: 1fr; }
    .deko-overview { margin-top: 2.5rem; border-radius: 14px; }
}

/* ===== 1. Interaktivny hlbkomer ===== */
.dive-section { max-width: 1240px; margin: 0 auto; }

.dive-lab {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: stretch;
}

.dive-water {
    --depth: 0;
    position: relative;
    min-height: 560px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
    background:
        linear-gradient(180deg, #12121a 0%, #12121a 6%, #2f6f6a 6%, #1b4a4c 30%, #0d2a30 60%, #06141a 100%);
}

.dive-water.dragging { cursor: grabbing; }

/* hladina */
.dive-water::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6%;
    height: 2px;
    background: rgba(236, 230, 216, 0.6);
}

.dive-rays {
    position: absolute;
    inset: 6% 0 0 0;
    background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.05) 0 18px, transparent 18px 60px);
    mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
    animation: dive-rays 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes dive-rays { to { transform: translateX(-40px); } }

.dive-scale span, .dive-limit {
    position: absolute;
    right: 0.75rem;
    top: calc(6% + var(--d) * 90% / 70);
    transform: translateY(-50%);
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: rgba(236, 230, 216, 0.45);
    pointer-events: none;
}

.dive-limit {
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(224, 165, 60, 0.6);
    transform: none;
    text-align: right;
    padding: 0.2rem 0.75rem;
    color: rgba(224, 165, 60, 0.85);
}

.dive-diver {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(6% + var(--depth) * 90% / 70);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.15s ease-out;
    pointer-events: none;
}

.dive-water.dragging .dive-diver { transition: none; }

.dive-diver .material-symbols-outlined {
    font-size: 44px;
    color: #ece6d8;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transform: rotate(-35deg) scaleX(-1);
    animation: dive-bob 3s ease-in-out infinite;
}

@keyframes dive-bob {
    0%, 100% { transform: translateY(0) rotate(-38deg) scaleX(-1); }
    50% { transform: translateY(-4px) rotate(-32deg) scaleX(-1); }
}

.dive-tag {
    position: absolute;
    left: 0.75rem;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: #ece6d8;
    color: #0c0f0d;
}

.dive-hint {
    position: absolute;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: rgba(236, 230, 216, 0.75);
    animation: dive-hint 1.6s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.4s;
}

.dive-hint.hidden { opacity: 0; animation: none; }

@keyframes dive-hint {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

.dive-panel { display: flex; flex-direction: column; gap: 1.25rem; }

.dive-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.dive-depth {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--deko-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.dive-depth small { font-size: 1.4rem; margin-left: 0.2rem; }
.dive-press { font-size: 0.85rem; color: var(--text-muted); }
.dive-press b { color: var(--text-primary); font-weight: 500; }

.dive-section input[type='range'], .tissue-time input[type='range'] {
    width: 100%;
    accent-color: var(--deko);
    cursor: pointer;
}

.dive-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }

.dive-card, .dive-meter {
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dive-card h3, .meter-top span { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.dive-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

.dive-big {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--deko);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.dive-balloon { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; }
.dive-balloon svg { width: 110px; height: 110px; }
.balloon-ghost { fill: none; stroke: rgba(236, 230, 216, 0.3); stroke-dasharray: 4 5; }
.balloon { fill: rgba(127, 184, 166, 0.35); stroke: var(--deko); stroke-width: 2; transition: r 0.15s ease-out; }

.dive-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.dive-meter { --state: var(--deko); }
.dive-meter[data-state='warn'] { --state: #e0a53c; }
.dive-meter[data-state='danger'] { --state: #d65a43; border-color: rgba(214, 90, 67, 0.5); }

.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.meter-value { color: var(--state); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.meter-bar {
    height: 6px;
    margin: 0.75rem 0 0.6rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.meter-bar i { display: block; height: 100%; background: var(--state); border-radius: 3px; transition: width 0.15s, background 0.3s; }
.meter-text { font-size: 0.8rem; color: var(--text-muted); min-height: 2.4em; }

.dive-msg {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--deko);
    border-radius: 0 12px 12px 0;
    background: rgba(127, 184, 166, 0.06);
    color: var(--text-secondary);
    font-size: 0.95rem;
    min-height: 4.6em;
}

.dive-msg[data-state='warn'] { border-color: #e0a53c; background: rgba(224, 165, 60, 0.07); }
.dive-msg[data-state='danger'] { border-color: #d65a43; background: rgba(214, 90, 67, 0.08); }

/* ===== 2. Sestnast tkaniv ===== */
.tissue-section { background: var(--bg-secondary); }

.tissue-lab {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: center;
}

.tissue-intro > p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.tissue-controls { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }

.seg {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.seg button {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: 500 0.85rem var(--font-main);
    cursor: pointer;
    transition: all var(--transition);
}

.seg button.active { background: var(--deko); color: #0c0f0d; }

.tissue-play {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ece6d8;
    color: #0c0f0d;
    cursor: pointer;
    transition: transform var(--transition);
}

.tissue-play:hover { transform: scale(1.08); }

.tissue-time { display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.tissue-time b { color: #d9a35b; font-variant-numeric: tabular-nums; }

.tissue-summary { color: var(--text-primary); margin-bottom: 0.75rem; }
.tissue-tip { font-size: 0.9rem; color: var(--text-muted); min-height: 3em; }

.tissue-chart {
    padding: 1.75rem 1.75rem 1.25rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.tissue-plot { position: relative; height: 300px; margin-bottom: 1.9rem; }

.tissue-bars {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 6px;
}

.tissue-bar {
    --fill: 0;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    padding: 0;
}

.tissue-fill {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 3px;
    height: calc(var(--fill) * (100% - 6px));
    border-radius: 5px;
    background: #a593cf;
    transition: height 0.25s ease-out, background 0.3s;
}

.tissue-bar.full .tissue-fill { background: #a8a59a; }
.tissue-bar.selected { border-color: #ece6d8; }

.tissue-num {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tissue-line {
    --level: 0;
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    bottom: calc(var(--level) * 100%);
    border-top: 1px dashed rgba(236, 230, 216, 0.7);
    z-index: 1;
    pointer-events: none;
    transition: bottom 0.3s;
}

.tissue-line span {
    position: absolute;
    right: 0.5rem;
    bottom: 0.2rem;
    font-size: 0.7rem;
    color: rgba(236, 230, 216, 0.8);
}

.tissue-groups {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 6px;
    margin-bottom: 1rem;
}

.tissue-groups span {
    grid-column: span var(--span);
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tissue-info { font-size: 0.85rem; color: var(--text-secondary); min-height: 1.5em; }

/* ===== 4. Galeria panelov ===== */
.panels-section { max-width: 1240px; margin: 0 auto; }

.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.panel-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font: 500 0.88rem var(--font-main);
    cursor: pointer;
    transition: all var(--transition);
}

.panel-tab .material-symbols-outlined { font-size: 18px; }
.panel-tab:hover { color: var(--text-primary); border-color: var(--deko); }
.panel-tab.active { background: var(--deko); border-color: var(--deko); color: #0c0f0d; }

.panel.active {
    display: grid;
    gap: 1.75rem;
    animation: panel-in 0.4s ease;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* popis nad snimkou: nadpis vlavo, text vpravo */
.panel-text {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: baseline;
}

.panel-text h3 { font-size: 1.5rem; font-weight: 600; }
.panel-text p { color: var(--text-secondary); }

/* snimka v prirodzenom pomere na celu sirku */
.panel-shot {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #121613;
    box-shadow: var(--shadow-lg);
}

.panel-shot img { width: 100%; }

/* vysoke panely - orezane dole s prechodom */
.panel-shot.fit-top { max-height: 720px; }

.panel-shot.fit-top::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, #121613);
    pointer-events: none;
}

/* maly panel (pocitac) - bez zvacsovania, vycentrovany */
.panel-shot-small { display: grid; place-items: center; padding: 3.5rem 1.5rem; }
.panel-shot-small img { width: auto; max-width: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); }

.panels-section .deko-note { margin-top: 3rem; }

@media (max-width: 1024px) {
    .dive-lab { grid-template-columns: 1fr; }
    .dive-water { min-height: 420px; }
    .tissue-lab { grid-template-columns: 1fr; gap: 2.5rem; }
    .panel-text { grid-template-columns: 1fr; gap: 0.75rem; }
    .panel-shot.fit-top { max-height: 520px; }
}

@media (max-width: 600px) {
    .dive-row, .dive-meters { grid-template-columns: 1fr; }
    .dive-head { grid-template-columns: 1fr; gap: 0.75rem; }
    .dive-depth { font-size: 2.8rem; }
    .tissue-chart { padding: 1.25rem 1rem 1rem; }
    .tissue-bars, .tissue-groups { gap: 3px; }
    .tissue-bar { border-radius: 5px; }
    .tissue-fill { left: 2px; right: 2px; bottom: 2px; border-radius: 3px; }
    .tissue-num { font-size: 0.6rem; }
    .tissue-plot { height: 220px; }
    .panel-tab { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
}

/* mensie zaoblenie snimok funkcii */
.feature-media { border-radius: 10px; }

/* nezalamovat nazvy ako ZHL-16C */
.nowrap { white-space: nowrap; }
