/* Pure Bliss — Webinare specific styles
   Doplnenie k /css/style.css; nepoužívať farby napevno, čerpať z premenných.
   Premenné z hlavného style.css: --olive, --gold, --cream, --blush, --dark, --text-secondary
*/

/* === Listing grid === */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .webinars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .webinars-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* === Webinar card === */
.webinar-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(42, 35, 26, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
    border: 1px solid rgba(201, 169, 110, 0.12);
}
.webinar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(42, 35, 26, 0.12);
}

.webinar-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #C9A96E 0%, #706034 100%);
    overflow: hidden;
}
.webinar-card-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.webinar-card-cover-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #FDF8F0; font-family: 'Great Vibes', cursive; font-size: 4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
    pointer-events: none;
}

.webinar-card-tags {
    position: absolute; top: 12px; left: 12px; right: 12px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.webinar-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.95);
    color: #706034;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.webinar-tag-online { background: #706034; color: #FDF8F0; }
.webinar-tag-live { background: #C0392B; color: #fff; animation: pulse 1.6s infinite; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, .55); }
    50% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); }
}

.webinar-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .65rem;
}
.webinar-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: #2A231A;
    margin: 0;
}
.webinar-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}
.webinar-card-title a:hover { color: #706034; }

.webinar-card-lecturer {
    font-size: .9rem;
    color: #706034;
    font-weight: 500;
    letter-spacing: .02em;
}

.webinar-card-meta {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .9rem;
    color: var(--text-secondary, #6b6357);
    margin: .25rem 0 .5rem;
}
.webinar-card-meta-row {
    display: flex; align-items: center; gap: .55rem;
}
.webinar-card-meta-row svg {
    width: 16px; height: 16px; flex-shrink: 0; color: #C9A96E;
}

.webinar-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 169, 110, 0.18);
}
.webinar-card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #706034;
    line-height: 1;
}
.webinar-card-price.free { color: #2A231A; }

.webinar-card-seats {
    display: inline-flex; align-items: center; gap: 6px;
    background: #FDF8F0;
    color: #2A231A;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid rgba(201, 169, 110, 0.25);
}
.webinar-card-seats.low {
    background: #FFF4ED;
    color: #B85C2A;
    border-color: rgba(184, 92, 42, 0.3);
}
.webinar-card-seats.full {
    background: #F4E8E8;
    color: #8B3A3A;
    border-color: rgba(139, 58, 58, 0.3);
}

.webinar-card-cta {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: .25rem;
}

/* === Listing states === */
.webinars-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #6b6357);
    font-size: 1.05rem;
}
.webinars-loading::after {
    content: '';
    display: inline-block;
    width: 18px; height: 18px;
    margin-left: .6rem; vertical-align: -3px;
    border: 2px solid rgba(112, 96, 52, 0.25);
    border-top-color: #706034;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.webinars-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #FDF8F0;
    border-radius: 18px;
    border: 1px dashed rgba(201, 169, 110, 0.4);
}
.webinars-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #2A231A;
    margin: 0 0 .5rem;
}
.webinars-empty p {
    color: var(--text-secondary, #6b6357);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.webinars-empty .empty-actions {
    display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
}

.webinars-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #FFF4ED;
    border-radius: 18px;
    color: #8B4513;
    border: 1px solid rgba(184, 92, 42, 0.25);
}

/* === Detail layout === */
.webinar-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 960px) {
    .webinar-detail { grid-template-columns: 1fr; gap: 2rem; }
}

.webinar-detail-main { min-width: 0; }

.webinar-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem;
    background: #FDF8F0;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 110, 0.2);
}
.webinar-meta-item {
    display: flex; gap: .75rem; align-items: flex-start;
}
.webinar-meta-item-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #706034;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(112, 96, 52, .1);
}
.webinar-meta-item-icon svg { width: 18px; height: 18px; }
.webinar-meta-item-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #706034;
    font-weight: 600;
    margin-bottom: .15rem;
}
.webinar-meta-item-value {
    font-size: 1rem;
    color: #2A231A;
    font-weight: 500;
    line-height: 1.4;
}

.webinar-lecturer {
    display: flex; gap: 1.25rem; align-items: center;
    padding: 1.25rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    margin: 1.5rem 0;
}
.webinar-lecturer-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #C9A96E;
}
.webinar-lecturer-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin: 0 0 .25rem;
    color: #2A231A;
}
.webinar-lecturer-info p {
    margin: 0;
    color: var(--text-secondary, #6b6357);
    font-size: .92rem;
    line-height: 1.5;
}

.webinar-section {
    margin-top: 2rem;
}
.webinar-section h2,
.webinar-section h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #2A231A;
    margin: 0 0 .75rem;
}
.webinar-section h2 { font-size: 1.7rem; }
.webinar-section h3 { font-size: 1.35rem; }
.webinar-section p { line-height: 1.7; color: #2A231A; }
.webinar-section ul { padding-left: 1.25rem; line-height: 1.75; }
.webinar-section li { margin-bottom: .35rem; }

/* === Sticky registration card === */
.webinar-register-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 12px 40px rgba(42, 35, 26, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
}
@media (max-width: 960px) {
    .webinar-register-card { position: static; }
}

.webinar-register-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #706034;
    line-height: 1;
    text-align: center;
    margin-bottom: .35rem;
}
.webinar-register-price.free { color: #2A231A; }
.webinar-register-price small {
    display: block;
    font-size: .9rem;
    color: var(--text-secondary, #6b6357);
    font-weight: 400;
    margin-top: .35rem;
}

.webinar-register-seats {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}

.webinar-register-status {
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.webinar-register-status.live {
    background: #FFEEEE;
    color: #C0392B;
    border: 1px solid rgba(192, 57, 43, .3);
}
.webinar-register-status.completed {
    background: #EEEEEE;
    color: #555;
}

.webinar-storno-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-secondary, #6b6357);
}

/* === Detail page hero — small variant === */
.page-hero-webinar {
    padding-bottom: 3.5rem;
}
.page-hero-webinar h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}
.page-hero-webinar .webinar-hero-tags {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: center;
}

/* === Detail loading/error === */
.webinar-detail-loading,
.webinar-detail-error {
    text-align: center;
    padding: 4rem 1.5rem;
}
.webinar-detail-error h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #2A231A;
}

/* === Container narrow (zaregistrovany.html, cancel.html) === */
.container-narrow {
    max-width: 760px;
    margin: 0 auto;
}

/* === Webinar registration form === */
.webinar-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 110, 0.18);
    box-shadow: 0 6px 24px rgba(42, 35, 26, 0.06);
}

.webinar-form .form-checkbox {
    flex-direction: row;
    align-items: flex-start;
}
.webinar-form .checkbox-label {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    font-size: .88rem;
    line-height: 1.5;
    cursor: pointer;
    color: #2A231A;
}
.webinar-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px; height: 18px;
    flex-shrink: 0;
    accent-color: #706034;
    cursor: pointer;
}
.webinar-form .checkbox-label a {
    color: #706034;
    text-decoration: underline;
}
.webinar-form .form-checkbox.has-error {
    background: #FFF4ED;
    padding: .65rem .8rem;
    border-radius: 8px;
    border: 1px solid #C0392B;
}

/* === Summary box (paid registration preview) === */
.webinar-register-summary {
    background: #FDF8F0;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: .35rem;
}
.webinar-register-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    border-bottom: 1px dashed rgba(201, 169, 110, 0.25);
    font-size: .92rem;
}
.webinar-register-summary-row:last-of-type {
    border-bottom: none;
}
.webinar-register-summary-row .label {
    color: #706034;
    font-weight: 600;
    flex-shrink: 0;
}
.webinar-register-summary-row .value {
    color: #2A231A;
    text-align: right;
}
.webinar-register-summary-note {
    margin: .65rem 0 0;
    font-size: .82rem;
    color: var(--text-secondary, #6b6357);
    line-height: 1.45;
    font-style: italic;
}

/* === Confirmation page === */
.confirmation-container {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(42, 35, 26, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
}
@media (max-width: 640px) {
    .confirmation-container { padding: 1.5rem; }
}

.confirmation-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    margin-bottom: 1.5rem;
}
.confirmation-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A96E 0%, #706034 100%);
    color: #FDF8F0;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(112, 96, 52, 0.25);
}
.confirmation-icon svg {
    width: 32px; height: 32px;
}
.confirmation-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    color: #2A231A;
    margin: 0 0 .5rem;
}
.confirmation-email {
    margin: 0;
    color: var(--text-secondary, #6b6357);
    font-size: .95rem;
}

.confirmation-webinar {
    background: #FDF8F0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201, 169, 110, 0.18);
}
.confirmation-webinar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #2A231A;
    margin: 0 0 .75rem;
}
.confirmation-webinar-meta {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.confirmation-meta-row {
    display: flex; align-items: center; gap: .55rem;
    font-size: .92rem;
    color: #2A231A;
}
.confirmation-meta-row svg {
    width: 16px; height: 16px;
    color: #C9A96E;
    flex-shrink: 0;
}

/* === Bank info card (paid) === */
.confirmation-bank-card {
    background: linear-gradient(135deg, #FDF8F0 0%, #fff 100%);
    border: 2px solid #C9A96E;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.15);
}
.confirmation-bank-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    color: #706034;
    margin: 0 0 .5rem;
    display: flex; align-items: center; gap: .5rem;
}
.confirmation-bank-card h3::before {
    content: '';
    display: inline-block;
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23706034' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}
.confirmation-bank-intro {
    color: #2A231A;
    font-size: .95rem;
    margin: 0 0 1.1rem;
    line-height: 1.55;
}
.confirmation-bank-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .55rem 1.25rem;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 110, 0.2);
}
.confirmation-bank-list dt {
    font-weight: 600;
    color: #706034;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.confirmation-bank-list dd {
    margin: 0;
    color: #2A231A;
    font-size: .95rem;
    word-break: break-all;
}
.confirmation-bank-list code {
    background: #FDF8F0;
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: .92rem;
    color: #2A231A;
    border: 1px solid rgba(201, 169, 110, 0.25);
}
.confirmation-bank-note {
    margin: 0;
    font-size: .85rem;
    color: var(--text-secondary, #6b6357);
    font-style: italic;
    line-height: 1.5;
}
@media (max-width: 540px) {
    .confirmation-bank-list {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
    .confirmation-bank-list dt { margin-top: .65rem; }
    .confirmation-bank-list dt:first-child { margin-top: 0; }
}

/* === Info card (free) === */
.confirmation-info-card {
    background: rgba(90, 143, 90, 0.08);
    border: 1px solid rgba(90, 143, 90, 0.25);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.confirmation-info-card p {
    margin: 0;
    color: #2A231A;
    line-height: 1.55;
}

/* === Confirmation actions === */
.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
    justify-content: center;
}
.confirmation-actions .btn {
    flex: 1 1 auto;
    min-width: 180px;
    text-align: center;
}
@media (max-width: 540px) {
    .confirmation-actions .btn { min-width: 100%; }
}
.confirmation-tech {
    text-align: center;
    color: var(--text-secondary, #6b6357);
    font-size: .85rem;
    font-style: italic;
    margin: 1rem 0 0;
}

/* === Cancel form intro === */
.cancel-intro {
    margin-bottom: 2rem;
}
.cancel-intro p { line-height: 1.65; }
.cancel-note {
    background: #FFF4ED;
    border: 1px solid rgba(184, 92, 42, 0.25);
    border-radius: 10px;
    padding: .9rem 1.1rem;
    color: #8B4513;
    font-size: .92rem;
}
.cancel-note a {
    color: #8B4513;
    text-decoration: underline;
}

