/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   PASSWORD PROTECTED PAGE – Custom Styles
   Child theme: Hello Elementor Child
   
   Scopováno přes body.password-required (třída z functions.php).
   Cílí na custom formulář s třídou .custom-pw-form.
   ========================================================================== */

/* ---------- Proměnné ---------- */
:root {
    --pw-bg: #1B1B1B;
    --pw-card-bg: #2a2a2a;
    --pw-text: #e0e0e0;
    --pw-text-muted: #a0a0a0;
    --pw-accent: #EA560D;
    --pw-accent-hover: #d14c0b;
    --pw-radius: 0px;
    --pw-input-border: #555;
}

/* ---------- Pozadí stránky ---------- */
body.password-required {
    background-color: var(--pw-bg);
}

/* ---------- Centrování na střed viewportu ---------- */
body.password-required main.site-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ---------- Kontejner obsahu ---------- */
body.password-required .page-content {
    width: 100%;
    max-width: 520px;
}

/* ---------- Karta formuláře ---------- */
body.password-required .custom-pw-form {
    background-color: var(--pw-card-bg);
    padding: 48px 40px;
    border-radius: var(--pw-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* ---------- Nadpis ---------- */
body.password-required .pw-heading {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

/* ---------- Popis ---------- */
body.password-required .pw-description {
    color: var(--pw-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* ---------- Label ---------- */
body.password-required .pw-label {
    color: var(--pw-text);
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: left;
    margin-bottom: 8px;
}

/* ---------- Input – široké, centrované ---------- */
body.password-required .pw-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #fff;
    background-color: var(--pw-bg);
    border: 1px solid var(--pw-input-border);
    border-radius: var(--pw-radius);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

body.password-required .pw-input:focus {
    border-color: var(--pw-accent);
}

body.password-required .pw-input::placeholder {
    color: #666;
}

/* ---------- Tlačítko – pod inputem, celá šířka ---------- */
body.password-required .pw-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: var(--pw-accent);
    border: none;
    border-radius: var(--pw-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.password-required .pw-submit:hover {
    background-color: var(--pw-accent-hover);
}

body.password-required .pw-submit:focus-visible {
    outline: 2px solid var(--pw-accent);
    outline-offset: 2px;
}

/* ---------- Responzivita ---------- */
@media (max-width: 480px) {
    body.password-required .custom-pw-form {
        padding: 32px 20px;
    }

    body.password-required .pw-heading {
        font-size: 20px;
    }
}