/*
Theme Name: Krajská liga
Theme URI: https://example.com/
Author: Tomáš
Description: Minimalistická šablona pro krajskou ligu
Version: 1.0
Text Domain: krajska-liga
*/

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f5f5f5;
    color: #222;
    display: flex;
    flex-direction: column;
}

header,
nav,
main,
footer {
    width: 100%;
}

main {
    flex: 1;
	margin-bottom: 2rem;
}

/* Google font */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

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

/* Header */
.site-header {
    background-image: url('/wp-content/themes/krajska-liga/background_img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #9ea19e; /* fallback */
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: center; /* zarovnání na střed */
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    height: auto;
    width: 100%;
    max-width: 960px;
}

/* Navigation (UNDER header) */
.main-nav {
    background: none;
}

.nav-inner {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* MENU COLORS — FIXED */
.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 0;
}

/* Base color */
.nav-list a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

/* Hover */
.nav-list a:hover {
    color: #c00;
}

/* Active item — subtle */
.current-menu-item > a {
    color: #222;
    font-weight: 600;
}

/* Parent/ancestor — no red */
.current-menu-parent > a,
.current-menu-ancestor > a {
    color: #222;
    font-weight: 600;
}

/* Content */
.content {
    margin-top: 1.5rem;
    width: 100%;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Article header as button */
.article-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 0;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    cursor: pointer;
    font-family: 'Special Elite', 'Times New Roman', serif;
    text-align: left;
    font-size: 1.6rem;
}

.article-date {
    color: #c00;
    font-weight: 600;
}

.article-title {
    font-weight: 600;
}

/* Accordion */
.no-js .article-body {
    max-height: none;
    padding-top: 0.5rem;
}

.js .article-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
}

.js .article-body.open {
    max-height: 1000px;
    padding-top: 0.5rem;
}

/* Media inside article */
.article-media {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.image-placeholder {
    width: 160px;
    height: 100px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.text-content {
    flex: 1;
    min-width: 180px;
}

/* WordPress image alignment */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    text-align: center;
    margin: 1rem auto;
}

.wp-caption img {
    margin: 0;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.25rem;
}

/* WordPress gallery */
.gallery {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.gallery-item {
    text-align: center;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.gallery .wp-caption-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.25rem;
}

/* Gutenberg gallery */
.wp-block-gallery {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.wp-block-gallery img {
    width: 100%;
    border-radius: 4px;
}

/* Gutenberg image */
.wp-block-image {
    margin: 1.5rem 0;
}

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

.site-footer {
    background: #babdba;
    padding: 1.5rem 0;
    margin: 0;
}

.footer-inner {
    text-align: center;
    color: #222;
    font-size: 0.95rem;
}


/* Quote */
.wp-block-quote {
    border-left: 4px solid #c00;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #444;
}

/* Pullquote */
.wp-block-pullquote {
    border-top: 3px solid #c00;
    border-bottom: 3px solid #c00;
    padding: 1rem 0;
    margin: 2rem 0;
    text-align: center;
    font-style: italic;
}

/* Buttons */
.wp-block-button .wp-block-button__link {
    background: #c00;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.wp-block-button .wp-block-button__link:hover {
    background: #900;
}

/* File block */
.wp-block-file {
    margin: 1.5rem 0;
}

.wp-block-file__button {
    background: #c00;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.wp-block-file__button:hover {
    background: #900;
}

/* Table */
.wp-block-table {
    margin: 1.5rem 0;
    width: 100%;
    border-collapse: collapse;
}

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

.wp-block-table th {
    background: #eee;
    font-weight: 600;
}

/* Code */
.wp-block-code {
    background: #222;
    color: #eee;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
}

.wp-block-preformatted {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Separator */
.wp-block-separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2rem 0;
}

/* Featured image */
.wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Sticky post */
.sticky {
    border-left: 4px solid #c00;
    padding-left: 1rem;
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Loop classes */
.entry-title {
    font-family: 'Special Elite', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-content {
    margin-top: 1rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 768px) {

    .site-logo {
        width: 100%;
    }

    .nav-inner {
        flex-direction: column;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        margin-top: 0.5rem;
    }

    .nav-list.open {
        display: flex;
    }

    .article-media {
        flex-direction: column;
    }

    .image-placeholder {
        width: 100%;
        max-width: 260px;
    }
}
 

