/* WordPress Gutenberg Block Styles */
/* Přeneseno z WordPress block-library pro správné zobrazení obsahu editovaného v Gutenberg editoru */

/* === ZÁKLADNÍ BLOKY === */

/* Odstavce */
.wp-block-paragraph {
    margin-bottom: 1em;
}

.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
    float: left;
    font-size: 8.4em;
    line-height: 0.68;
    font-weight: 100;
    margin: 0.05em 0.1em 0 0;
    text-transform: uppercase;
    font-style: normal;
}

/* Nadpisy */
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* Seznamy */
.wp-block-list ul,
.wp-block-list ol {
    margin: 0 0 1.5em 1.5em;
    padding: 0;
}

.wp-block-list li {
    margin-bottom: 0.5em;
}

/* Citace */
.wp-block-quote {
    border-left: 4px solid #000;
    margin: 1.5em 0;
    padding-left: 1em;
}

.wp-block-quote cite {
    color: #6c757d;
    font-size: 0.9em;
    font-style: normal;
}

.wp-block-quote.is-style-large {
    border: none;
    padding: 0;
}

.wp-block-quote.is-style-large p {
    font-size: 1.5em;
    font-style: italic;
}

.wp-block-pullquote {
    border-top: 4px solid;
    border-bottom: 4px solid;
    margin: 1.5em 0;
    padding: 1em 0;
    text-align: center;
}

.wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

/* === ZAROVNÁNÍ === */

/* Text alignment */
.has-text-align-left {
    text-align: left !important;
}

.has-text-align-center {
    text-align: center !important;
}

.has-text-align-right {
    text-align: right !important;
}

.has-text-align-justify {
    text-align: justify !important;
}

/* === OBRÁZKY === */

.wp-block-image {
    margin: 0 0 1.5em 0;
}

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

.wp-block-image.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.wp-block-image.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.wp-block-image.aligncenter {
    text-align: center;
}

.wp-block-image.aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
}

.wp-block-image.is-style-rounded img {
    border-radius: 9999px;
}

.wp-block-image.is-style-circle-mask img {
    border-radius: 9999px;
}

/* Gallery */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery .blocks-gallery-image {
    margin: 0 1em 1em 0;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.wp-block-gallery.columns-2 .blocks-gallery-item,
.wp-block-gallery.columns-2 .blocks-gallery-image {
    width: calc(50% - 1em);
}

.wp-block-gallery.columns-3 .blocks-gallery-item,
.wp-block-gallery.columns-3 .blocks-gallery-image {
    width: calc(33.33% - 1em);
}

.wp-block-gallery.columns-4 .blocks-gallery-item,
.wp-block-gallery.columns-4 .blocks-gallery-image {
    width: calc(25% - 1em);
}

/* === TLAČÍTKA === */

.wp-block-button {
    margin-bottom: 1.5em;
}

.wp-block-button__link {
    background-color: #32373c;
    border: none;
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    padding: 0.75em 1.5em;
    text-align: center;
    text-decoration: none;
    overflow-wrap: break-word;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active {
    color: #fff;
    opacity: 0.85;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid currentColor;
    color: #32373c;
}

.wp-block-button.is-style-squared .wp-block-button__link {
    border-radius: 0;
}

/* Buttons group */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.5em;
}

.wp-block-buttons.is-content-justification-left {
    justify-content: flex-start;
}

.wp-block-buttons.is-content-justification-center {
    justify-content: center;
}

.wp-block-buttons.is-content-justification-right {
    justify-content: flex-end;
}

/* === SEPARÁTOR === */

.wp-block-separator {
    border: none;
    border-bottom: 2px solid currentColor;
    margin: 2em auto;
    max-width: 100px;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    line-height: 1;
}

.wp-block-separator.is-style-dots::before {
    content: '···';
    color: currentColor;
    font-size: 1.5em;
    letter-spacing: 2em;
    padding-left: 2em;
}

/* === SPACER === */

.wp-block-spacer {
    clear: both;
}

/* === TABULKY === */

.wp-block-table {
    margin: 0 0 1.5em 0;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    padding: 0.5em;
    border: 1px solid;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* === COLUMNS === */

.wp-block-columns {
    display: flex;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    gap: 2em;
}

.wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 781px) {
    .wp-block-columns {
        flex-direction: column;
    }
}

/* === GROUP === */

.wp-block-group {
    margin-bottom: 1.5em;
}

.wp-block-group.has-background {
    padding: 1.25em 2.375em;
}

/* === COVER === */

.wp-block-cover {
    position: relative;
    background-size: cover;
    background-position: center center;
    min-height: 430px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin-bottom: 1.5em;
}

.wp-block-cover__inner-container {
    color: #fff;
    width: 100%;
    z-index: 1;
    position: relative;
}

.wp-block-cover.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container {
    align-items: flex-start;
    justify-content: flex-start;
}

.wp-block-cover.has-custom-content-position.is-position-center-center .wp-block-cover__inner-container {
    align-items: center;
    justify-content: center;
}

/* === VIDEO === */

.wp-block-video {
    margin: 0 0 1.5em 0;
}

.wp-block-video video {
    max-width: 100%;
}

/* === EMBED === */

.wp-block-embed {
    margin: 0 0 1.5em 0;
}

.wp-block-embed iframe {
    max-width: 100%;
}

.wp-block-embed.is-type-video iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* === CODE === */

.wp-block-code {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Menlo, Consolas, monaco, monospace;
    font-size: 0.9em;
    padding: 1em;
    margin-bottom: 1.5em;
    overflow-x: auto;
}

.wp-block-code code {
    background: transparent;
    border: none;
    padding: 0;
}

.wp-block-preformatted {
    font-family: Menlo, Consolas, monaco, monospace;
    background: #f5f5f5;
    padding: 1em;
    margin-bottom: 1.5em;
    overflow-x: auto;
}

/* === BARVY === */

/* Barvy textu */
.has-text-color {
    color: inherit;
}

/* Barvy pozadí */
.has-background {
    padding: 1.25em 2.375em;
    margin-bottom: 1.5em;
}

/* WordPress výchozí paleta barev */
/* Base colors - používány TwentyTwentyFour theme */
.has-base-background-color {
    background-color: #FFFFFF !important;
}

.has-contrast-background-color {
    background-color: #111111 !important;
}

.has-accent-1-background-color {
    background-color: #FFEE58 !important;
}

.has-accent-2-background-color {
    background-color: #F6CFF4 !important;
}

.has-accent-3-background-color {
    background-color: #503AA8 !important;
}

.has-accent-4-background-color {
    background-color: #686868 !important;
}

.has-accent-5-background-color {
    background-color: #FBFAF3 !important;
}

/* Standardní WordPress paleta */
.has-pale-pink-background-color {
    background-color: #f78da7 !important;
}

.has-vivid-red-background-color {
    background-color: #cf2e2e;
}

.has-luminous-vivid-orange-background-color {
    background-color: #ff6900;
}

.has-luminous-vivid-amber-background-color {
    background-color: #fcb900;
}

.has-light-green-cyan-background-color {
    background-color: #7bdcb5;
}

.has-vivid-green-cyan-background-color {
    background-color: #00d084;
}

.has-pale-cyan-blue-background-color {
    background-color: #8ed1fc;
}

.has-vivid-cyan-blue-background-color {
    background-color: #0693e3;
}

.has-vivid-purple-background-color {
    background-color: #9b51e0;
}

.has-white-background-color {
    background-color: #ffffff;
}

.has-very-light-gray-background-color {
    background-color: #eeeeee;
}

.has-cyan-bluish-gray-background-color {
    background-color: #abb8c3;
}

.has-very-dark-gray-background-color {
    background-color: #313131;
}

.has-black-background-color {
    background-color: #000000;
}

/* Barvy textu */
.has-pale-pink-color {
    color: #f78da7;
}

.has-vivid-red-color {
    color: #cf2e2e;
}

.has-luminous-vivid-orange-color {
    color: #ff6900;
}

.has-luminous-vivid-amber-color {
    color: #fcb900;
}

.has-light-green-cyan-color {
    color: #7bdcb5;
}

.has-vivid-green-cyan-color {
    color: #00d084;
}

.has-pale-cyan-blue-color {
    color: #8ed1fc;
}

.has-vivid-cyan-blue-color {
    color: #0693e3;
}

.has-vivid-purple-color {
    color: #9b51e0;
}

.has-white-color {
    color: #ffffff;
}

.has-very-light-gray-color {
    color: #eeeeee;
}

.has-cyan-bluish-gray-color {
    color: #abb8c3;
}

.has-very-dark-gray-color {
    color: #313131;
}

.has-black-color {
    color: #000000;
}

/* === VELIKOSTI PÍSMA === */

.has-small-font-size {
    font-size: 0.875em;
}

.has-medium-font-size {
    font-size: 1.225em;
}

.has-large-font-size {
    font-size: 2.25em;
}

.has-x-large-font-size {
    font-size: 3em;
}

/* === ROZLOŽENÍ === */

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* === MEDIA & TEXT === */

.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    grid-template-rows: auto;
    gap: 2em;
    margin-bottom: 1.5em;
}

.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 50%;
}

.wp-block-media-text__media {
    margin: 0;
}

.wp-block-media-text__media img,
.wp-block-media-text__media video {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .wp-block-media-text {
        grid-template-columns: 100%;
    }
    
    .wp-block-media-text.has-media-on-the-right {
        grid-template-columns: 100%;
    }
}

/* === CLEARFIX === */

.alignleft::after,
.alignright::after {
    content: "";
    display: table;
    clear: both;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100%;
    }
    
    .alignleft,
    .alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* === WORDPRESS CORE BLOCKS === */

/* Audio */
.wp-block-audio {
    margin-bottom: 1.5em;
}

.wp-block-audio audio {
    width: 100%;
}

/* File */
.wp-block-file {
    margin-bottom: 1.5em;
}

.wp-block-file__button {
    background: #32373c;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
    padding: 0.5em 1em;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5em;
}

.wp-block-file__button:hover {
    opacity: 0.85;
}

/* Verse */
.wp-block-verse {
    font-family: inherit;
    overflow: auto;
    white-space: pre-wrap;
    margin-bottom: 1.5em;
}

/* === WORDPRESS THEME CLASSES === */

.entry-content > * {
    margin-bottom: 1.75em;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

/* Mezery mezi WordPress bloky */
.wp-block-spacer {
    clear: both;
}

/* Group bloky s pozadím */
.wp-block-group.has-background {
    padding: 1.5em 2em;
    margin-bottom: 1.75em;
}

/* Columns s mezerami */
.wp-block-columns {
    gap: 2em;
    margin-bottom: 1.75em;
}

/* Cover bloky */
.wp-block-cover {
    margin-bottom: 1.75em;
}

/* WordPress core block spacing */
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list,
.wp-block-quote,
.wp-block-image,
.wp-block-gallery,
.wp-block-video,
.wp-block-audio,
.wp-block-table,
.wp-block-code,
.wp-block-preformatted,
.wp-block-buttons,
.wp-block-separator {
    margin-bottom: 1.75em;
}

.wp-block-paragraph:last-child,
.wp-block-heading:last-child,
.wp-block-list:last-child {
    margin-bottom: 0;
}

/* === GUTENBERG SPECIFICKÉ STYLY === */

.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.is-layout-flow > * + * {
    margin-block-start: 1.5em;
}

.is-layout-constrained > * {
    max-width: var(--wp--style--global--content-size, 840px);
    margin-left: auto;
    margin-right: auto;
}

/* === BLOK KONTEJNERY === */

.wp-block-group__inner-container > * + * {
    margin-top: 1.5em;
}

/* === DOPLŇKOVÉ BLOKY === */

/* Latest Posts */
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

.wp-block-latest-posts li {
    margin-bottom: 1em;
}

/* Search */
.wp-block-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.wp-block-search__input {
    flex-grow: 1;
    min-width: 200px;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wp-block-search__button {
    background: #32373c;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 0.5em 1em;
    cursor: pointer;
}

/* === UTILITY CLASSES === */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* === CUSTOM BARVY A GRADIENTY === */

/* WordPress podporuje inline style pro custom barvy */
/* Zajistíme že inline styles fungují správně */

[style*="background-color"] {
    padding: 1.25em 2.375em;
}

/* Gradienty */
.has-background-gradient {
    background-image: var(--gradient);
}

/* Link colors */
.has-link-color a {
    color: var(--wp--style--color--link, inherit);
}

/* === BLOCK SPACING === */

/* WordPress block spacing CSS variables */
:root {
    --wp--style--block-gap: 1.75em;
}

.wp-block-group > * + * {
    margin-block-start: var(--wp--style--block-gap, 1.75em);
}

.wp-block-columns > .wp-block-column + .wp-block-column {
    margin-block-start: 0;
}

/* === RESPONSIVE SPACING === */

@media (max-width: 768px) {
    .entry-content > * {
        margin-bottom: 1.5em;
    }
    
    .has-background {
        padding: 1em 1.5em;
    }
    
    .wp-block-group.has-background {
        padding: 1em 1.5em;
    }
}

