/* assets/style.css */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --accent: #3182ce;
    --accent-soft: #ebf8ff;
    --accent-dark: #2b6cb0;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--bg-page);
}

/* Layout */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: linear-gradient(135deg, #edf2ff, #ebf8ff);
    border-bottom: 1px solid var(--border-soft);
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #EBF6FF;
}

.header-inner {
    position: sticky;
	top: 0;
	z-index: 1000;
	background: #EBF6FF;
	max-width: 1550px;
	margin: auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-inner a{
	text-decoration: none;
	color: var(--text-muted);
}

.header-inner a:hover{
	text-decoration: none;
	color: var(--text-muted);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #bee3f8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.logo-cross {
    font-size: 1.4rem;
    color: var(--accent-dark);
}

.logo-text h1 {
    font-size: 1.25rem;
    margin: 0 0 0.1rem;
}

.logo-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Navigace */

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.main-nav a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav li.active a {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(49, 130, 206, 0.35);
}

.main-nav a:hover {
    background: var(--accent-soft);
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.5rem;
}

/* Hero */

.hero {
    position: relative;
    margin-top: 0.5rem;
    height: 300px;
	display: flex;
	padding: 15px;
	box-sizing: border-box; 
	background-image: url(/img/header.png);
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: auto 100%;
}

.hero-wrapper {
	width: 1250px;
	margin: 0 auto;
}

.hero-overlay {
	max-width: 500px;
    padding: 1rem 1.5rem 1.25rem;
    text-align: left;
	margin: 0;
}

.hero h2 {
    margin: 0;
    font-size: 2rem;
	color: #014f7d;
}

.hero p {
	margin: 0;
    color: var(--text-muted);
	color: white;
}

/* Content layout */

.site-main {
    flex: 1;
    padding: 2rem 1rem 3rem;
}

.content-layout {
    max-width: 1550px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr) 350px;
    gap: 1.5rem;
}

/* Bannery */

.side-banners {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner-slot {
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-soft);
    padding: 1.25rem 0.75rem;
    text-align: center;
    /*font-size: 0.85rem;*/
	font-size: 1.25rem;
    color: var(--text-muted);
    background: #ffffffaa;
    backdrop-filter: blur(6px);
}

.banner-slot img {
	margin-top: 0.5rem;
	max-width: 100%;
}

.banner-slot p{
	text-align: central;
	font-size: 1.1rem;
	padding: 0rem 0rem;
	margin: 0rem 0rem;
}

.banner-slot h4{
	text-align: central;
	font-size: 1.1rem;
	padding: 0rem 0rem;
	margin: 0.5rem 0rem;
}

.banner-slot a{
	text-decoration: none;
	color: var(--text-muted);
}

/* General un wrapped text */

p.citation {
	text-align: right;
	font-style: italic;
	margin-block-start: 0.25em;
    margin-block-end: 0em;
}

h2.caption {
	margin-block-start: 0.25em;
    margin-block-end: 0.75em;
}

/* Karty */

.content {
    min-width: 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.8rem 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.card p {
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.6;
	text-align: justify;
}

.card p.timestamp {
	text-align: right;
	font-size: 0.8rem;
	font-style: italic;
}

p.citation {
	text-align: right;
	font-style: italic;
}

.card-highlight {
    border-left: 4px solid var(--accent);
    background: linear-gradient(to right, #ffffff, #ebf8ff);
}

.simple-list {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.simple-list li {
    margin-bottom: 0.25rem;
}

.small-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card img {
	display: block;
	width: 100%;
	margin: auto;
}

.card img.imgright {
	width: 40%;
	display: block;
	padding-left: 0.75rem;
	padding-bottom: 0rem;
	float: right;
}

/* Menší karty v mřížce */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mini-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-soft);
	margin-bottom: 1.5rem;
}

.mini-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Galerie */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 200px;
}

.gallery-item figcaption {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.lightbox-content {
    position: relative;
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin-bottom: 0.75rem;
}

.lightbox-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 1.5rem 1rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #f1f5f9;
}

.footer-note {
    margin-top: 0.3rem;
    font-style: italic;
}

/* Odkazy */

a {
    color: var(--accent-dark);
}

a:hover {
    text-decoration: underline;
}

/* Tabulka Ohlasky */

table.ohlasky{
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

td.ohlasky{
	vertical-align: top;
	padding: 10px 12px;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #ddd;
}

td.col-date{ 
	width: 90px;
	border-right: 1px solid #ddd;
}
	
td.col-extra{ 
	width: 137px;
	border-left: 1px solid #ddd;
}
/* Responzivita */

@media (max-width: 1500px) {
	.content-layout {
		grid-template-columns: 300px minmax(0, 1fr) 300px;
	}
}

@media (max-width: 1250px) {
	.content-layout {
		grid-template-columns: 250px minmax(0, 1fr) 250px;
	}
}

@media (max-width: 1100px) {
    .hero {
		height: 210px;
	}
	
	.hero-wrapper{
		display: none !important;
	}
	
	.hide1100{
		display: none !important;
	}
	
	.content-layout {
        grid-template-columns: 1fr;
    }

    .side-banners-left,
    .side-banners-right {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner-slot {
        flex: 1 1 150px;
    }
}

@media (max-width: 855px) {
    .hero {
		height: 160px;
	}
	
	.header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.open {
        display: block;
        margin-top: 0.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .hero-overlay {
        padding: 1.25rem 1rem 1.8rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 640px){
  table.ohlasky, table.ohlasky tbody, table.ohlasky tr, table.ohlasky td{
    display: block;
    width: 100%;
  }

  table.ohlasky tr{
    border: 1px solid #ddd;
    border-radius: 12px;
    margin: 10px 0;
    overflow: hidden;
    background: #fff;
  }

  table.ohlasky td{
    border: 0;
    border-bottom: 1px solid #eee;
  }

  /* Top “header” of the card = date cell */
  table.ohlasky td.col-date{
    background: #f6f6f6;
    font-size: 15px;
    line-height: 1.25;
  }

  /* Main text a bit larger for phones */
  table.ohlasky td.col-main{
    font-size: 15px;
    line-height: 1.45;
  }

  /* Extra section goes last */
  table.ohlasky td.col-extra{
    border-bottom: 0;
  }
}
