/* ======================================================
   Povoleno.com – sjednocený styl pro webAI asistenta
   Verze: tmavý technologický vzhled podle hlavní stránky
   ====================================================== */

:root {
    --bg-main: #050813;
    --bg-section: #07111c;
    --bg-section-2: #0a1624;
    --panel: #0b1320;
    --panel-2: #101b2a;
    --panel-soft: rgba(255, 255, 255, 0.045);

    --border: rgba(93, 160, 255, 0.22);
    --border-strong: rgba(93, 160, 255, 0.46);

    --text-main: #f4f7fb;
    --text-soft: #a7b3c4;
    --text-muted: #7d8ba0;

    --blue: #57a6ff;
    --blue-2: #2f8df5;
    --blue-dark: #0d3d73;

    --cyan: #00c2ff;
    --green: #37d66b;
    --green-dark: #0f7a45;

    --warning-bg: rgba(255, 176, 72, 0.09);
    --warning-border: #ffb547;
    --warning-text: #f6d59c;

    --danger: #ef4444;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-main: 0 22px 70px rgba(0, 0, 0, 0.48);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.32);

    --font-main: Arial, Helvetica, sans-serif;
}

/* ======================================================
   Základ stránky
   ====================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 12%, rgba(87, 166, 255, 0.18), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(0, 194, 255, 0.12), transparent 30%),
        linear-gradient(135deg, var(--bg-main) 0%, var(--bg-section) 45%, #06101a 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.025) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(135deg, transparent 75%, rgba(255,255,255,0.018) 75%) 0 0 / 18px 18px;
    opacity: 0.45;
}

/* ======================================================
   Hlavní karta asistenta
   ====================================================== */

.page {
    position: relative;
    max-width: 980px;
    margin: 46px auto;
    background:
        linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(8, 16, 28, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.page::before {
    content: "";
    position: absolute;
    left: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(87,166,255,0.20), transparent 70%);
    pointer-events: none;
}

.page::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(55,214,107,0.12), transparent 70%);
    pointer-events: none;
}

.page > * {
    position: relative;
    z-index: 1;
}

/* ======================================================
   Nadpisy a texty
   ====================================================== */

h1 {
    margin: 0 0 16px 0;
    color: var(--text-main);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
}

h1::after {
    content: "";
    display: block;
    width: 86px;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.subtitle {
    color: var(--text-soft);
    margin-bottom: 24px;
    line-height: 1.65;
    font-size: 17px;
    max-width: 850px;
}

.subtitle strong,
.subtitle b {
    color: var(--text-main);
}

/* ======================================================
   Upozornění a souhlas
   ====================================================== */

.noticeBox {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: var(--warning-bg);
    border: 1px solid rgba(255, 181, 71, 0.25);
    border-left: 5px solid var(--warning-border);
    border-radius: var(--radius-md);
    color: var(--warning-text);
    line-height: 1.55;
}

.noticeBox strong {
    color: #ffe4b0;
}

.noticeBox a,
.consentBox a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.noticeBox a:hover,
.consentBox a:hover {
    text-decoration: underline;
}

.consentBox {
    display: block;
    margin-top: 14px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

.consentBox input {
    margin-right: 8px;
    transform: translateY(1px);
    accent-color: var(--blue);
}

/* ======================================================
   Dotaz
   ====================================================== */

textarea {
    width: 100%;
    min-height: 128px;
    font-size: 16px;
    color: var(--text-main);
    background: rgba(3, 10, 20, 0.78);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    outline: none;
    resize: vertical;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
}

textarea::placeholder {
    color: var(--text-muted);
}

textarea:focus {
    border-color: var(--blue);
    box-shadow:
        0 0 0 3px rgba(87, 166, 255, 0.18),
        inset 0 0 0 1px rgba(255,255,255,0.025);
}

/* ======================================================
   Tlačítka
   ====================================================== */

button {
    margin-top: 14px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--blue), var(--blue-2));
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(47, 141, 245, 0.25);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

button:hover {
    background: linear-gradient(180deg, #6bb2ff, #338ff2);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(47, 141, 245, 0.35);
}

button:disabled {
    background: #394557;
    color: #9aa8ba;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondaryBtn {
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--border-strong);
    margin-left: 8px;
    box-shadow: none;
}

.secondaryBtn:hover {
    background: rgba(87, 166, 255, 0.09);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(87, 166, 255, 0.15);
}

.copyBtn {
    margin-top: 22px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
    padding: 8px 14px;
    box-shadow: none;
}

.copyBtn:hover {
    background: rgba(255,255,255,0.10);
}

/* ======================================================
   Ukázkové otázky
   ====================================================== */

.examples {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example {
    background: rgba(87, 166, 255, 0.10);
    border: 1px solid rgba(87, 166, 255, 0.22);
    color: #d9ebff;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.example:hover {
    background: rgba(87, 166, 255, 0.20);
    color: #ffffff;
    border-color: rgba(87, 166, 255, 0.48);
}

/* ======================================================
   Odpověď
   ====================================================== */

.answer {
    margin-top: 26px;
    padding: 22px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(87,166,255,0.16);
    border-left: 5px solid var(--blue);
    border-radius: var(--radius-md);
    line-height: 1.65;
    color: var(--text-main);
}

.answer-section-title {
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 7px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.answer-section-title:first-child {
    margin-top: 0;
}

.answer-warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--warning-text);
}

/* ======================================================
   Avatar
   ====================================================== */

.avatarBtn {
    margin-top: 22px;
    margin-bottom: 10px;
    margin-left: 8px;
    background: linear-gradient(180deg, #37d66b, #16a34a);
    color: #04110a;
    font-size: 14px;
    padding: 8px 14px;
    box-shadow: 0 8px 20px rgba(55, 214, 107, 0.20);
}

.avatarBtn:hover {
    background: linear-gradient(180deg, #48e47a, #21b85a);
}

.avatarBtn:disabled {
    background: #394557;
    color: #9aa8ba;
    cursor: not-allowed;
}

.avatarBox {
    margin-top: 18px;
    padding: 16px;
    background: rgba(55, 214, 107, 0.08);
    border: 1px solid rgba(55, 214, 107, 0.22);
    border-left: 5px solid var(--green);
    border-radius: var(--radius-md);
}

.avatarStatus {
    color: #b7ffd0;
    font-size: 14px;
    margin-bottom: 12px;
}

.avatarVideo {
    width: 100%;
    max-width: 512px;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-soft);
}

/* ======================================================
   Historie
   ====================================================== */

.historyBox {
    margin-top: 28px;
    padding: 18px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.10);
}

.historyBox h2 {
    font-size: 18px;
    margin-top: 0;
    color: var(--text-main);
}

.historyItem {
    padding: 11px 13px;
    margin-bottom: 8px;
    background: rgba(2, 8, 18, 0.62);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(87,166,255,0.14);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-soft);
}

.historyItem:hover {
    background: rgba(87, 166, 255, 0.10);
    color: #ffffff;
}

/* ======================================================
   Návrat na hlavní stránku
   ====================================================== */

.siteReturn {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.10);
    text-align: center;
}

.siteReturn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--blue);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 800;
    background: rgba(87,166,255,0.06);
}

.siteReturn a:hover {
    color: #ffffff;
    background: rgba(87,166,255,0.14);
}

/* ======================================================
   Modální okno a podmínky
   ====================================================== */

.modalOverlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modalWindow {
    background: linear-gradient(180deg, #101b2a, #08111e);
    color: var(--text-main);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.48);
    position: relative;
    line-height: 1.6;
}

.modalWindow h2 {
    margin-top: 0;
    color: var(--text-main);
}

.modalWindow h3 {
    margin-top: 24px;
    color: var(--text-main);
}

.modalWindow p {
    color: var(--text-soft);
}

.modalClose {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 24px;
    line-height: 31px;
    cursor: pointer;
    box-shadow: none;
}

.modalClose:hover {
    background: rgba(255,255,255,0.14);
}

.modalActions {
    margin-top: 22px;
    text-align: right;
}

.modalActions button {
    margin-top: 0;
}

/* ======================================================
   Právní stránka / případná podminky.html
   ====================================================== */

.legalPage {
    line-height: 1.65;
}

.legalPage h2 {
    margin-top: 28px;
    color: var(--text-main);
    font-size: 22px;
}

.legalPage p,
.legalPage ul {
    color: var(--text-soft);
}

.legalPage ul {
    padding-left: 24px;
}

.legalIntro {
    font-size: 17px;
    color: var(--text-soft);
}

.legalDate {
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.legalPage a {
    color: var(--blue);
    text-decoration: none;
}

.legalPage a:hover {
    text-decoration: underline;
}

/* ======================================================
   Responzivita
   ====================================================== */

@media (max-width: 700px) {
    body {
        background: var(--bg-main);
    }

    .page {
        margin: 0;
        border-radius: 0;
        padding: 20px;
        min-height: 100vh;
        border-left: none;
        border-right: none;
    }

    h1 {
        font-size: 36px;
    }

    button {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .secondaryBtn,
    .avatarBtn {
        margin-left: 0;
    }

    .examples {
        gap: 8px;
    }

    .example {
        width: 100%;
        border-radius: 10px;
    }

    .modalWindow {
        padding: 22px;
    }
}
