/*
 * brand-pages.css — AutoškolaVaV brand theme: page-level styles
 *
 * Extrahované z inline <style> blokov (boli posielané v každej HTML odpovedi):
 *   - themes/brand/instructors/show.blade.php  (.instr-*, .page-head-role)
 *   - themes/brand/landing/show.blade.php      (.lp-*)
 *   - themes/brand/pages/show.blade.php        (.page-content-*, .prose-brand, .gallery-*)
 *
 * CSS custom properties (var(--paper), var(--violet) …) sú definované
 * v public/themes/brand.css :root — tento súbor sa načítava za ním.
 *
 * Kolízie selektorov medzi 3 blokmi: ŽIADNE (unikátne prefixové schémy).
 * Generované: 2026-06-30
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. INSTRUCTOR DETAIL — brand theme
   Zdroj: resources/views/themes/brand/instructors/show.blade.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Instructor detail — brand theme ───────────────────────────────────── */

.page-head-role{
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--yellow);
    margin: 0 0 10px;
    font-weight: 600;
}

/* Profile section */
.instr-profile{
    padding: 80px var(--gutter);
    background: var(--paper-warm);
}
.instr-profile-grid{
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    align-items: start;
    max-width: var(--max);
    margin: 0 auto;
}

/* Photos */
.instr-profile-photos{
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}
.instr-photo-main{
    border-radius: var(--rad-xl);
    overflow: hidden;
    background: var(--violet-soft);
    aspect-ratio: 4/5;
}
.instr-photo-main img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.instr-photo-secondary{
    border-radius: var(--rad-lg);
    overflow: hidden;
    background: var(--violet-soft);
    aspect-ratio: 4/3;
}
.instr-photo-secondary img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Photo zoom trigger (lightbox) — button obaľuje <x-responsive-image>/<img>,
   selektory `.instr-photo-main img` / `.instr-photo-secondary img` sú
   descendant selektory, takže platia aj cez tento button bez zmeny. */
.instr-photo-trigger{
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
}
.instr-photo-trigger:focus-visible{
    outline: 3px solid var(--yellow);
    outline-offset: -3px;
}
.instr-photo-zoom{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26,20,48,0);
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease;
    color: #fff;
}
.instr-photo-trigger:hover .instr-photo-zoom,
.instr-photo-trigger:focus-visible .instr-photo-zoom{
    opacity: 1;
    background-color: rgba(26,20,48,.25);
}
.instr-photo-zoom svg{
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Lightbox modal — page-scoped (nie globálny .vav-lb), lebo trigger musí byť
   <button> (klávesnicová prístupnosť), globálny systém používa bare <img>. */
.instr-lightbox{
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26,20,48,.92);
}
.instr-lightbox-stage{
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
}
.instr-lightbox-stage img{
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--rad);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.instr-lightbox-close,
.instr-lightbox-nav{
    position: absolute;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    border: 0;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease;
}
.instr-lightbox-close:hover,
.instr-lightbox-nav:hover{
    background: rgba(255,255,255,.24);
}
.instr-lightbox-close:focus-visible,
.instr-lightbox-nav:focus-visible{
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}
.instr-lightbox-close{ top: 20px; right: 20px; width: 46px; height: 46px; }
.instr-lightbox-prev,
.instr-lightbox-next{ top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.instr-lightbox-prev{ left: 20px; }
.instr-lightbox-next{ right: 20px; }
.instr-lightbox-counter{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.8);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
}
@media (max-width: 600px){
    .instr-lightbox-prev,
    .instr-lightbox-next{ width: 42px; height: 42px; }
    .instr-lightbox-prev{ left: 8px; }
    .instr-lightbox-next{ right: 8px; }
    .instr-lightbox-close{ top: 10px; right: 10px; }
}

/* Video section (voliteľné, len keď má inštruktor video_url) */
.instr-video-frame{
    margin-top: 20px;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--rad-lg);
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 16px 40px rgba(26,20,48,.16);
}
.instr-video-poster,
.instr-video-embed{
    position: absolute;
    inset: 0;
}
.instr-video-embed iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.instr-video-play{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: radial-gradient(circle at 50% 40%, var(--violet-2), var(--violet-dark));
    border: 0;
    cursor: pointer;
    color: #fff;
}
.instr-video-play svg{
    color: var(--yellow);
    transition: transform .2s ease;
}
.instr-video-play:hover svg,
.instr-video-play:focus-visible svg{
    transform: scale(1.08);
}
.instr-video-play span{
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 600;
}
.instr-video-play:focus-visible{
    outline: 3px solid var(--yellow);
    outline-offset: -3px;
}

.instr-photo-placeholder{
    border-radius: var(--rad-xl);
    aspect-ratio: 4/5;
    background: radial-gradient(circle at 30% 30%, var(--violet-soft), var(--paper-3));
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 56px;
    font-weight: 700;
    color: var(--violet);
    letter-spacing: 4px;
}

/* Content */
.instr-profile-content{
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.instr-section .eyebrow{
    margin-bottom: 10px;
}
.instr-section h2{
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.instr-section h2.h-section{
    font-size: 28px;
}
.instr-section h2 .accent{ color: var(--violet);}
.instr-bio{
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-2);
}
.instr-bio p{ margin: 0 0 14px;}
.instr-bio p:last-child{ margin-bottom: 0;}
.instr-bio-empty{
    font-size: 16px;
    color: var(--ink-3);
    font-style: italic;
}

/* Cities */
.instr-cities{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.instr-city-card{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .15s, background .15s;
}
.instr-city-card svg{
    color: var(--violet);
    flex-shrink: 0;
}
.instr-city-card:hover{
    border-color: var(--violet);
    background: var(--violet-mist);
}

/* Responsive */
@media (max-width: 900px){
    .instr-profile-grid{
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .instr-profile-photos{
        flex-direction: row;
        position: static;
    }
    .instr-photo-main{
        flex: 1;
        aspect-ratio: 1/1;
    }
    .instr-photo-secondary{
        flex: 1;
        aspect-ratio: 1/1;
    }
    .instr-photo-placeholder{
        aspect-ratio: 1/1;
        font-size: 40px;
    }
    .instr-section h2{
        font-size: 28px;
    }
    .page-head-inner{
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .page-head h1{
        font-size: 52px;
    }
}

@media (max-width: 600px){
    .instr-profile{
        padding: 48px 24px;
    }
    .instr-profile-photos{
        flex-direction: column;
    }
    .instr-photo-main{
        aspect-ratio: 4/5;
    }
    .instr-photo-secondary{
        display: none;
    }
    .page-head{
        padding: 56px 24px;
    }
    .page-head h1{
        font-size: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. GENERIC LANDING PAGE — lp-* helpers
   Zdroj: resources/views/themes/brand/landing/show.blade.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* Generic landing page layout helpers */
.lp-hero {
    padding: 72px var(--gutter);
    background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet) 100%);
    color: var(--paper);
    text-align: center;
}
.lp-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}
.lp-hero-heading {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    color: var(--paper);
}
.lp-hero-sub {
    font-size: 22px;
    font-weight: 600;
    color: var(--yellow);
    margin: 0 0 12px;
}
.lp-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 32px;
    line-height: 1.6;
}
.lp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Section wrapper */
.lp-section {
    padding: 80px var(--gutter);
}
.lp-section.lp-content,
.lp-section.lp-gallery { background: var(--paper); }
.lp-section.lp-generic { background: var(--paper-2); }
.lp-section.lp-pricing { background: var(--paper); }
.lp-section.lp-branches { background: var(--paper-2); }

/* Alternating background for consecutive content sections */
.lp-section + .lp-section.lp-content { background: var(--paper-2); }
.lp-section.lp-content + .lp-section.lp-content { background: var(--paper); }

/* Container */
.lp-container {
    max-width: 960px;
    margin: 0 auto;
}

/* Section header */
.lp-section-head {
    margin-bottom: 48px;
}
.lp-section-head .eyebrow {
    margin-bottom: 10px;
}

/* Prose (rich content) */
.lp-prose {
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px;
}
.lp-prose h2, .lp-prose h3, .lp-prose h4 {
    color: var(--ink);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.lp-prose h2 { font-size: 32px; }
.lp-prose h3 { font-size: 24px; }
.lp-prose h4 { font-size: 18px; }
.lp-prose p { margin: 0 0 16px; }
.lp-prose ul, .lp-prose ol { margin: 0 0 16px; padding-left: 24px; }
.lp-prose li { margin-bottom: 6px; }
.lp-prose strong { color: var(--ink); font-weight: 600; }
.lp-prose a { color: var(--violet); text-decoration: underline; }

/* Two-column layout */
.lp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin: 0 0 40px;
}
.lp-two-col--img-left .lp-two-col-text { order: 2; }
.lp-two-col--img-left .lp-two-col-img  { order: 1; }
.lp-two-col-img img {
    width: 100%;
    border-radius: var(--rad-md);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Stats row */
.lp-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin: 0 0 40px;
    padding: 32px;
    background: var(--violet-mist);
    border-radius: var(--rad-lg);
    border: 1px solid var(--line);
}
.lp-stat-val {
    font-size: 36px;
    font-weight: 700;
    color: var(--violet);
    line-height: 1;
    letter-spacing: -0.02em;
}
.lp-stat-label {
    font-size: 13px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* Cards grid */
.lp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 0 0 40px;
}
.lp-cards-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
}
.lp-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--rad-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.lp-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.lp-card-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.lp-card-body {
    padding: 20px;
}
.lp-card-body h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}
.lp-card-body p {
    font-size: 14px;
    color: var(--ink-2);
    margin: 0 0 8px;
    line-height: 1.5;
}
.lp-card-date {
    font-size: 12px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.lp-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--violet);
    margin-top: 8px;
    display: inline-block;
}
.lp-price-card .lp-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--violet);
    margin: 8px 0;
}

/* Inline CTA */
.lp-inline-cta {
    margin: 24px 0;
}
.lp-section-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Gallery image */
.lp-gallery-img img {
    width: 100%;
    border-radius: var(--rad);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .lp-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .lp-two-col--img-left .lp-two-col-text,
    .lp-two-col--img-left .lp-two-col-img { order: unset; }
    .lp-hero-heading { font-size: 36px; }
    .lp-section { padding: 48px var(--gutter); }
}
@media (max-width: 600px) {
    .lp-stats { gap: 20px; padding: 20px; }
    .lp-cards-grid { grid-template-columns: 1fr; }
    .lp-hero { padding: 48px 24px; }
    .lp-hero-heading { font-size: 30px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. PAGE CONTENT LAYOUT — prose, gallery, featured aside
   Zdroj: resources/views/themes/brand/pages/show.blade.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page content layout (brand prose + container + gallery + featured aside) */
.page-content-section {
    padding: 48px 0 64px;
    background: var(--paper);
}
.page-content-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0;
    display: grid;
    /* minmax(0, …), nie holé 1fr: 1fr znamená minmax(auto, 1fr) a `auto` nedovolí
       stĺpcu zmenšiť sa pod šírku obsahu, takže dlhé slovo vo vloženom HTML
       roztiahlo článok nad šírku obrazovky (2026-09-16). */
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
@media (max-width: 1280px) {
    .page-content-container { padding: 0 16px; }
}
.page-content-article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--rad-md);
    padding: 32px 40px;
    box-shadow: var(--shadow);
    width: 100%;
}
/* Break-out: sub-page content section spans viewport width (rovnako ako page-head),
   ale inner container drží 1280px max */
.page:not(.full) > .page-content-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Brand prose typography for TipTap/HTML content (subtle, default-like) */
.prose.prose-brand,
.prose-brand {
    max-width: none;
    color: #374151;
}
.prose-brand h2 {
    font-family: var(--font);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.35;
    color: var(--ink);
    margin: 28px 0 12px;
}
.prose-brand h2:first-child { margin-top: 0; }
.prose-brand .colored-title,
.prose-brand h2.colored-title {
    color: var(--violet);
}
.prose-brand h3 {
    font-family: var(--font);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    color: var(--ink);
    margin: 24px 0 10px;
}
.prose-brand h4 {
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    margin: 20px 0 8px;
}
.prose-brand p {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 16px;
}
.prose-brand a { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose-brand a:hover { color: var(--violet-2); }
.prose-brand ul, .prose-brand ol { padding-left: 24px; margin: 16px 0; }
.prose-brand li { margin: 6px 0; line-height: 1.65; color: var(--ink-2); }
.prose-brand strong { font-weight: 700; color: var(--ink); }
.prose-brand blockquote {
    border-left: 4px solid var(--violet);
    background: var(--violet-mist);
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 var(--rad) var(--rad) 0;
    font-style: italic;
    color: var(--ink);
}
.prose-brand img {
    border-radius: var(--rad-md);
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}
.prose-brand table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.prose-brand th {
    background: var(--violet-mist);
    color: var(--ink);
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid var(--violet-soft);
}
.prose-brand td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose-brand hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose-brand .colored-title { color: var(--violet); }

/* Gallery overview (parent pages) */
.page-gallery-overview { margin-top: 48px; }
.gallery-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-overview-card {
    display: block;
    border-radius: var(--rad-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.gallery-overview-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-overview-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--violet-mist); }
.gallery-overview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overview-placeholder { background: linear-gradient(135deg, var(--violet-mist), var(--violet-soft)); }
.gallery-overview-meta { padding: 14px 16px; background: var(--paper); }
.gallery-overview-meta .title { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 14px; }
.gallery-overview-meta .count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin: 0; letter-spacing: 0.5px; }

/* Page gallery items */
.page-gallery { margin-top: 48px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    display: block;
    border-radius: var(--rad-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease; }
.gallery-item:hover img { filter: brightness(1.07); }
/* gallery-item as button reset */
.gallery-item-btn { background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.gallery-item-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(26,20,48,.9), transparent);
    color: var(--paper);
    padding: 16px;
    font-size: 13px;
    font-weight: 500;
}
.gallery-item-video { aspect-ratio: 16/9; }
.gallery-video-wrap { width: 100%; height: 100%; }
.gallery-video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Featured aside */
.page-aside-featured {
    background: linear-gradient(135deg, var(--yellow-soft), rgba(255,214,51,0.1));
    border: 1px solid rgba(255,214,51,0.4);
    border-radius: var(--rad-lg);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.page-aside-featured h3 { font-family: var(--font); font-weight: 700; font-size: 20px; color: var(--ink); margin: 0; }
.page-aside-featured p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.55; }
.page-aside-featured .btn { align-self: flex-start; }

@media (max-width: 768px) {
    .page-content-section { padding: 40px var(--gutter); }
    .page-content-article { padding: 24px; }
    .prose-brand h2 { font-size: 22px; }
    .prose-brand h3 { font-size: 18px; }
    .gallery-overview-grid { grid-template-columns: 1fr; }
}

.education-registration-inline {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--violet-mist);
    border-left: 3px solid var(--violet);
    border-radius: var(--rad);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.education-registration-inline__main {
    font-weight: 700;
    color: var(--ink);
}
.education-registration-inline__note {
    font-size: 13px;
    color: var(--ink-2);
}
