/* ============================================
   Umění na zakázku — Hlavní styly
   Richer fine-art gallery design
   ============================================ */

/* Fonty: custom OTF (Jaroslav / TT Bluescreens) záměrně nenačítáme —
   web od začátku běžel na fallback serif (Georgia) a tento vzhled je finální.
   Font stacky níže nechávají 'Jaroslav'/'TT Bluescreens' jako no-op. */

/* Reset & základ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'TT Bluescreens', 'Georgia', serif;
    color: #2c2c2c;
    background: #f7f6f2;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   Dekorativní prvky
   ============================================ */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(180, 160, 130, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(160, 140, 120, 0.06) 0%, transparent 60%);
}

/* ============================================
   Vstupní brána (Gate)
   ============================================ */
.page-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(180, 160, 130, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(160, 140, 120, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, #f5f4ef 0%, #eae8e0 100%);
}

.gate__container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

.gate__logo {
    font-family: 'Jaroslav', serif;
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.05;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.gate__subtitle {
    font-family: 'TT Bluescreens', serif;
    font-size: 1rem;
    color: #999;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.gate__form {
    max-width: 340px;
    margin: 0 auto;
}

.gate__field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0.4rem 0.5rem 0.4rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.gate__field:focus-within {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.gate__input {
    flex: 1;
    font-family: 'TT Bluescreens', serif;
    font-size: 1rem;
    border: none;
    background: transparent;
    outline: none;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    padding: 0.6rem 0;
}

.gate__input::placeholder {
    color: #bbb;
    letter-spacing: 0.05em;
}

.gate__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #1a1a1a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gate__submit:hover {
    background: #333;
    transform: scale(1.05);
}

.gate__error {
    color: #b44;
    font-size: 0.9rem;
    margin-top: 1.25rem;
    letter-spacing: 0.02em;
}

/* ============================================
   Portfolio umělce — Header
   ============================================ */
.page-artist {
    background: #f7f6f2;
}

.artist-header {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 2rem 0;
}

.artist-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #aaa;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    margin-bottom: 2.5rem;
}

.artist-header__back span {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.artist-header__back:hover {
    color: #555;
}

.artist-header__back:hover span {
    border-color: #999;
}

.artist-header__name {
    font-family: 'Jaroslav', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.artist-header__desc {
    font-size: 1.15rem;
    color: #666;
    max-width: 620px;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Kontakty */
.artist-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.artist-contacts__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #888;
    padding: 0.4rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.artist-contacts__item:hover {
    color: #333;
    border-color: #aaa;
    background: rgba(255,255,255,0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.artist-contacts__item--instagram:hover { color: #c13584; border-color: #c13584; }
.artist-contacts__item--facebook:hover { color: #1877f2; border-color: #1877f2; }
.artist-contacts__item--email:hover { color: #2a9d8f; border-color: #2a9d8f; }
.artist-contacts__item--phone:hover { color: #e76f51; border-color: #e76f51; }

.artist-contacts__item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.artist-contacts__item:hover svg {
    opacity: 1;
}

/* Divider */
.artist-header__divider {
    max-width: 960px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d5d3cb 20%, #d5d3cb 80%, transparent);
}

/* ============================================
   Portfolio — Sekce a Masonry
   ============================================ */
.portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.portfolio__section {
    margin-bottom: 5rem;
}

/* Hlavička sekce */

.portfolio__category {
    font-family: 'Jaroslav', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
    position: relative;
    display: inline-block;
}

.portfolio__category::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: #c4a97d;
}

.portfolio__category-desc {
    font-size: 1.05rem;
    color: #888;
    line-height: 1.7;
    margin-top: 1rem;
}

.portfolio__section-header {
    max-width: 700px;
    margin-bottom: 2.5rem;
    padding-left: 0.25rem;
}

/* Formátovaný textový obsah kategorie */
.portfolio__content {
    margin-top: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid #e8e6df;
    max-width: 700px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.85;
}

.portfolio__content h1,
.portfolio__content h2,
.portfolio__content h3,
.portfolio__content h4 {
    font-family: 'Jaroslav', serif;
    color: #2c2c2c;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.portfolio__content h2 { font-size: 1.4rem; }
.portfolio__content h3 { font-size: 1.2rem; }
.portfolio__content h4 { font-size: 1.05rem; }
.portfolio__content h1:first-child,
.portfolio__content h2:first-child,
.portfolio__content h3:first-child,
.portfolio__content h4:first-child {
    margin-top: 0;
}

.portfolio__content p {
    margin-bottom: 1em;
}

.portfolio__content p:last-child {
    margin-bottom: 0;
}

.portfolio__content strong,
.portfolio__content b {
    color: #333;
    font-weight: 600;
}

.portfolio__content em,
.portfolio__content i {
    font-style: italic;
}

.portfolio__content a {
    color: #8b7355;
    border-bottom: 1px solid #d5cbb8;
    transition: color 0.2s, border-color 0.2s;
}

.portfolio__content a:hover {
    color: #5a4a35;
    border-color: #8b7355;
}

.portfolio__content ul,
.portfolio__content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.portfolio__content li {
    margin-bottom: 0.4em;
}

.portfolio__content ul li {
    list-style-type: disc;
}

.portfolio__content ol li {
    list-style-type: decimal;
}

.portfolio__content blockquote {
    border-left: 3px solid #c4a97d;
    padding: 0.75em 0 0.75em 1.25em;
    margin: 1.5em 0;
    color: #777;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    background: rgba(196, 169, 125, 0.04);
}

.portfolio__content pre,
.portfolio__content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    background: #f0ede6;
    border-radius: 3px;
    padding: 0.15em 0.4em;
}

.portfolio__content pre {
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.portfolio__content hr {
    border: none;
    border-top: 1px solid #e0ddd5;
    margin: 2em 0;
}

/* Masonry Grid — CSS Columns (Pinterest style) */
.masonry {
    columns: 3;
    column-gap: 20px;
}

.masonry__item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: #e8e6df;
}

.masonry__link {
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.masonry__link img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0, 0.15, 1), filter 0.5s;
}

.masonry__link:hover img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

.masonry__caption {
    font-family: 'TT Bluescreens', serif;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.6rem 0.6rem;
    line-height: 1.3;
}

/* Prázdné portfolio */
.portfolio__empty {
    text-align: center;
    padding: 8rem 2rem;
    color: #aaa;
    font-size: 1.15rem;
    font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    border-top: 1px solid #e5e3db;
    padding: 2rem 2rem;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer__logo {
    font-family: 'Jaroslav', serif;
    font-size: 0.95rem;
    color: #bbb;
    letter-spacing: 0.02em;
}

.site-footer__copy {
    font-size: 0.8rem;
    color: #ccc;
    letter-spacing: 0.05em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .masonry {
        columns: 2;
        column-gap: 16px;
    }

    .masonry__item {
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .artist-header {
        padding: 2rem 1.5rem 0;
    }

    .portfolio {
        padding: 1.5rem 1rem 3rem;
    }

    .masonry {
        columns: 2;
        column-gap: 10px;
    }

    .masonry__item {
        border-radius: 3px;
        margin-bottom: 10px;
    }

    .artist-contacts {
        gap: 0.4rem;
    }

    .artist-contacts__item {
        font-size: 0.8rem;
        padding: 0.3rem 0.65rem;
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 380px) {
    .masonry {
        columns: 1;
        column-gap: 0;
    }

    .masonry__item {
        margin-bottom: 16px;
    }
}

/* ============================================
   GLightbox overrides
   ============================================ */
.glightbox-clean .gslide-description {
    background: transparent !important;
}

.glightbox-clean .gslide-title {
    font-family: 'TT Bluescreens', serif !important;
    color: #fff !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 400 !important;
}

.goverlay {
    background: rgba(15, 15, 12, 0.92) !important;
}
