/* ==================================================
   NEWSLETTER — přihlašovací stránka odběru novinek
   Modrá paleta webu (viz style.css :root). Bez nových barev mimo proměnné.
================================================== */

.newsletter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── Přihlašovací karta ─────────────────────────── */
.newsletter-card {
    background: var(--white, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 32px;
}

.newsletter-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    margin-bottom: 16px;
}

.newsletter-card h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.newsletter-intro {
    margin: 0 0 22px;
    color: var(--muted-text);
    line-height: 1.6;
}

/* ── Stavová hláška ─────────────────────────────── */
.newsletter-status {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.55;
    border: 1px solid var(--border-light);
}
.newsletter-status--ok {
    background: #eaf7ef;
    border-color: #bfe6cd;
    color: #1c6b3a;
}
.newsletter-status--info {
    background: var(--primary-light);
    border-color: var(--border-light);
    color: var(--primary-dark);
}
.newsletter-status--error {
    background: #fdecec;
    border-color: #f5c2c2;
    color: #a32525;
}

/* ── Formulář ───────────────────────────────────── */
.nl-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.newsletter-input-row {
    display: flex;
    gap: 10px;
}

.newsletter-input-row input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 15px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: #f8fbff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.newsletter-input-row input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 194, 0.12);
}

.newsletter-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.newsletter-submit:hover { background: var(--primary-dark); }
.newsletter-submit:active { transform: translateY(1px); }
.newsletter-submit:disabled { opacity: 0.7; cursor: progress; }

.nl-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nl-spin 0.7s linear infinite;
}
@keyframes nl-spin { to { transform: rotate(360deg); } }

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--muted-text);
    line-height: 1.5;
}
.newsletter-consent input {
    margin-top: 2px;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: var(--primary-color);
}
.newsletter-consent a { color: var(--primary-color); }

.newsletter-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--muted-text);
}
.newsletter-note svg { flex: 0 0 auto; color: var(--primary-color); }

/* ── Boční panel "co posíláme" ──────────────────── */
.newsletter-side {
    background: linear-gradient(160deg, var(--primary-light) 0%, #f6f9fd 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
}
.newsletter-side h3 {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: var(--primary-dark);
}
.newsletter-perks {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.newsletter-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}
.newsletter-perks svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--primary-color);
}
.newsletter-side-foot {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--muted-text);
}
.newsletter-side-foot a { color: var(--primary-color); }

/* ── Responsivita ───────────────────────────────── */
@media (max-width: 820px) {
    .newsletter-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .newsletter-card { padding: 24px; }
    .newsletter-input-row { flex-direction: column; }
    .newsletter-submit { width: 100%; }
}

/* ==================================================
   THEME-CLEAN – kompaktní/plochý redesign (b.648)
================================================== */
.theme-clean .newsletter-card { border-radius: var(--radius-lg); box-shadow: 0 1px 4px rgba(0, 74, 173, 0.05); }
.theme-clean .newsletter-side { border-radius: var(--radius-lg); }
.theme-clean .newsletter-status { border-radius: var(--radius-md); }
.theme-clean .newsletter-input-row input[type="email"] { border-radius: var(--radius-md); }
.theme-clean .newsletter-submit { border-radius: var(--radius-md); }

@media (min-width: 851px) {
    .theme-clean .newsletter-card { padding: 24px; }
    .theme-clean .newsletter-card h2 { font-size: 1.3rem; }
    .theme-clean .newsletter-side { padding: 22px; }
}
