/*
Theme Name: stranka
Theme URI: https://smisek05.net/
Author: SmiSek
Author URI: https://smisek05.net
Description: sablona is designed to be flexible,
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.0
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stranka
Tags: block-theme, one-column, accessibility-ready, custom-colors,
custom-menu, editor-style, featured-images, full-site-editing,
rtl-language-support, sticky-post, threaded-comments,
translation-ready, wide-blocks
*/

/* Reset a základní styly */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--content-width: 80%;
	--wide-width: 80%;
	--border-radius: 0.5rem;
	--border-radius-small: 0.375rem;
	--transition: all 0.2s ease;
	--shadow-light: 0 1px 3px 0 rgb(0 0 0 / 0.1);
	--shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1);
	--shadow-dark: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	
}

/* Hlavní layout */
.wp-site-blocks {
	padding: var(--wp--preset--spacing--20);
	max-width: none;
}

/* Template parts */
.wp-block-template-part {
	margin-bottom: var(--wp--preset--spacing--30);
}

.wp-block-template-part:last-child {
	margin-bottom: 0;
}

/* Navigace */
.wp-block-navigation {
	font-weight: 500;
}

.wp-block-navigation__container {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-navigation-item a {
	text-decoration: none;
	padding: var(--wp--preset--spacing--10);
	transition: var(--transition);
}

.wp-block-navigation-item a:hover,
.wp-block-navigation-item a:focus {
	background-color: var(--wp--preset--color--col-6);
	outline: 2px solid var(--wp--preset--color--col-2);
	outline-offset: 2px;
}

/* Template Parts - specifické styly */
.template-part-header {
    border: var(--border-header);
    border-radius: var(--radius-header);
    margin-bottom: var(--wp--preset--spacing--30);
    background: var(--wp--preset--color--col-2);
}

.template-part-footer {
    border: var(--border-footer);
    border-radius: var(--radius-footer);
    margin-top: var(--wp--preset--spacing--30);
    background: var(--wp--preset--color--col-5);
}



/* Výjimky pro bloky, které nepotřebují border */
.wp-block-paragraph:empty,
.wp-block-spacer,
.wp-block-separator {
    border: none !important;
    padding: 0 !important;
}

/* Hover efekty */
.template-part-header:hover {
    border-color: var(--wp--preset--color--col-3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.wp-block-post-content > *:hover {
    border-color: var(--wp--preset--color--col-3);
    box-shadow: var(--wp--preset--shadow--md);
    transition: all 0.2s ease;
}

/* Focus styles */
*:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Responzivní design */
@media (max-width: 768px) {
	.wp-site-blocks {
		padding: var(--wp--preset--spacing--10);
	}
	
	.wp-block-navigation__container {
		flex-direction: column;
		gap: var(--wp--preset--spacing--10);
	}
}

/* Print styles */
@media print {
	.wp-block-navigation,
	.wp-block-button {
		display: none;
	}
	
	body {
		font-size: 12pt;
		line-height: 1.4;
	}
}