/* Šablona One Page — Portia v6 */

:root {
    --op-dark:    #0b0f1a;
    --op-darker:  #060a12;
    --op-accent:  #6366f1;       /* indigo */
    --op-accent2: #a855f7;       /* purple */
    --op-light:   #f8fafc;
    --op-text:    #1e293b;
    --op-muted:   #64748b;
    --op-card-bg: #ffffff;
    --op-card-border: #e2e8f0;
    --op-radius:  1rem;
    --op-nav-h:   68px;
}

/* ================================================================ Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--op-nav-h) + 8px); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--op-text); background: #fff; margin: 0; }

/* ================================================================ Navigace */
.op-navbar {
    height: var(--op-nav-h);
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
}
.op-navbar--solid {
    background: rgba(11, 15, 26, .95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,.4);
}
.op-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.02em;
}
.op-nav-link {
    color: rgba(255,255,255,.75) !important;
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .01em;
    position: relative;
    transition: color .2s ease;
}
.op-nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--op-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .2s ease;
}
.op-nav-link:hover,
.op-nav-link.active { color: #fff !important; }
.op-nav-link:hover::after,
.op-nav-link.active::after { transform: scaleX(1); }

/* Bootstrap scroll-spy aktivní stav */
.navbar-nav .nav-link.active { color: #fff !important; }
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ================================================================ Hero */
.op-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--op-darker) 0%, #1a1040 50%, var(--op-dark) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
/* Překrytí pokud má bg-image */
.op-hero[style*="background-image"]::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(11,15,26,.85) 0%, rgba(99,102,241,.4) 100%);
}
.op-hero__content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; }

.op-hero__title {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.op-hero__title--sm {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: .5rem;
}
.op-hero__sub {
    color: rgba(255,255,255,.75);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
}
.op-hero__body {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto 2rem;
}
.op-hero--small { min-height: 38vh; padding-top: var(--op-nav-h); }

/* Scroll cue — animovaná šipka dolů */
.op-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    margin-top: 2rem;
    animation: op-bounce 2s infinite;
    transition: border-color .2s, color .2s;
}
.op-scroll-cue:hover { border-color: #fff; color: #fff; }
.op-scroll-cue span {
    display: block;
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}
@keyframes op-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ================================================================ Sekce */
.op-section { padding: 6rem 0; }
.op-section--alt { background: var(--op-light); }
.op-section--dark { background: var(--op-darker); }
.op-section__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
    position: relative;
}
.op-section__title::after {
    content: '';
    display: block;
    width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--op-accent), var(--op-accent2));
    border-radius: 2px;
    margin-top: .5rem;
}
.op-section__title--light { color: #fff; }
.op-section__title--light::after { background: linear-gradient(90deg, var(--op-accent2), #fff); }
.op-section__lead { color: var(--op-muted); margin-bottom: 1.5rem; }

/* ================================================================ Karty */
.op-card {
    background: var(--op-card-bg);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.op-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99,102,241,.12);
}
.op-card--dark {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.08);
}
.op-card--dark .op-card__title { color: #fff; }
.op-card--dark .op-card__sub   { color: rgba(255,255,255,.6); }
.op-card--dark .op-card__link  { color: var(--op-accent2); }
.op-card__img-wrap { overflow: hidden; max-height: 200px; }
.op-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.op-card:hover .op-card__img-wrap img { transform: scale(1.04); }
.op-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.op-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.op-card__sub { color: var(--op-muted); font-size: .9rem; flex: 1; }
.op-card__link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--op-accent);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: gap .15s;
}
.op-card__link:hover { color: var(--op-accent2); text-decoration: underline; }

/* ================================================================ Kontakt */
.op-contact-list { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .9rem; }
.op-contact-list li { padding: .25rem 0; }
.op-contact-list a { color: var(--op-accent); text-decoration: none; }
.op-contact-list a:hover { text-decoration: underline; }

/* ================================================================ Datum novinek */
.op-news-date { font-size: .8rem; color: var(--op-accent); font-weight: 600; margin-bottom: .4rem; letter-spacing: .04em; text-transform: uppercase; }

/* ================================================================ Obsah editoru */
.op-content img { max-width: 100%; height: auto; border-radius: .75rem; margin: 1rem 0; }
.op-content h2, .op-content h3 { font-weight: 700; margin-top: 1.75rem; }
.op-content a { color: var(--op-accent); }
.op-content blockquote {
    border-left: 4px solid var(--op-accent);
    padding-left: 1.25rem;
    color: var(--op-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

/* ================================================================ Tlačítka a zpět */
.op-btn {
    display: inline-block;
    padding: .65rem 1.75rem;
    background: linear-gradient(135deg, var(--op-accent), var(--op-accent2));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.op-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.op-back-link { color: var(--op-accent); text-decoration: none; font-weight: 500; }
.op-back-link:hover { text-decoration: underline; }

/* ================================================================ 404 */
.op-404-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; color: rgba(255,255,255,.15); line-height: 1; }

/* ================================================================ Patička */
.op-footer {
    background: var(--op-darker);
    border-top: 1px solid rgba(255,255,255,.06);
    color: var(--op-muted);
    font-size: .875rem;
}
.op-footer-link { color: rgba(255,255,255,.5); text-decoration: none; }
.op-footer-link:hover { color: #fff; }

/* ================================================================ Tlačítko zpět nahoru */
.op-back-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--op-accent), var(--op-accent2));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(99,102,241,.4);
}
.op-back-top--visible { opacity: 1; transform: translateY(0); }
.op-back-top:hover { filter: brightness(1.1); }

/* ================================================================ Reveal animace */
.op-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.op-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}
/* Kaskádové zpoždění pro karty v řadě */
.col-md-6.op-reveal:nth-child(2), .col-lg-4.op-reveal:nth-child(2) { transition-delay: .1s; }
.col-md-6.op-reveal:nth-child(3), .col-lg-4.op-reveal:nth-child(3) { transition-delay: .2s; }
.col-md-6.op-reveal:nth-child(4), .col-lg-4.op-reveal:nth-child(4) { transition-delay: .3s; }

/* ================================================================ Responzivita */
@media (max-width: 767px) {
    .op-section { padding: 4rem 0; }
    .op-hero__content { padding-top: 90px; }
}

/* Formulářová pole pro dark téma */
.op-input {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 8px;
}
.op-input:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--op-accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
}
.op-input::placeholder { color: rgba(255,255,255,.4); }

/* --- Galerie --- */
.gallery-album-card { overflow: hidden; transition: transform .2s; }
.gallery-album-card:hover { transform: translateY(-4px); }
.gallery-album-thumb { position: relative; height: 200px; overflow: hidden; background: rgba(255,255,255,.05); }
.gallery-album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-album-card:hover .gallery-album-thumb img { transform: scale(1.05); }
.gallery-album-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; opacity: .3; }
.gallery-album-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 20px; }
.gallery-thumb { position: relative; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.05); aspect-ratio: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-thumb:hover img { transform: scale(1.07); }
.gallery-thumb-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 4px 6px; transform: translateY(100%); transition: transform .2s; }
.gallery-thumb:hover .gallery-thumb-caption { transform: translateY(0); }
.gallery-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.gallery-lb-inner { max-width: 90vw; max-height: 90vh; text-align: center; }
.gallery-lb-inner img { max-width: 100%; max-height: 80vh; border-radius: 4px; }
.gallery-lb-caption { color: #e2e8f0; margin-top: .5rem; font-size: .9rem; }
.gallery-lb-close, .gallery-lb-prev, .gallery-lb-next { position: absolute; background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.gallery-lb-close { top: 16px; right: 16px; }
.gallery-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.gallery-lb-next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.gallery-lb-close:hover, .gallery-lb-prev:hover, .gallery-lb-next:hover { background: rgba(255,255,255,.25); }
