/* Základní nastavení */
:root {
    --primary-color: #4a6d7c;
    --secondary-color: #a1b5c1;
    --accent-color: #e3a587;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gray-color: #6c757d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Tlačítka */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header a navigace */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.navbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar li {
    position: relative;
}

.navbar a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar a:hover, .navbar a.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.navbar a i {
    margin-right: 5px;
}

/* Hero sekce */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Featured Posts */
.featured-posts {
    padding: 50px 20px;
    text-align: center;
}

.featured-posts h2 {
    margin-bottom: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.post-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.read-more:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.read-more:hover:after {
    transform: scaleX(1);
}

.view-all {
    margin-top: 30px;
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 20px;
    text-align: center;
    margin: 50px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    margin-right: 0;
}

.footer-logo h3 {
    color: var(--light-text);
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--light-text);
    padding: 15px;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-link {
    color: var(--accent-color);
    margin-left: 15px;
    text-decoration: underline;
}

/* Blog stránka */
.blog-page {
    padding: 50px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-post .post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post .post-content {
    padding: 30px;
    text-align: center;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
}

/* O nás stránka */
.about-page {
    padding: 50px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
    text-align: center;
}

.about-image {
    flex: 1;
    max-width: 600px;
}

.about-text {
    flex: 1;
}

.team-section {
    margin-bottom: 50px;
    text-align: center;
}

.team-section h3 {
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h4 {
    margin: 15px 0 5px;
}

.team-member p {
    color: var(--gray-color);
    padding: 0 15px 15px;
}

.mission-section {
    text-align: center;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value {
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.value i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Galerie stránka */
.gallery-page {
    padding: 50px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-filter {
    margin-bottom: 30px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: var(--light-text);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Kontaktní stránka */
.contact-page {
    padding: 50px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    color: var(--light-text);
    margin-bottom: 30px;
    text-align: center;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--accent-color);
}

.info-item h4 {
    color: var(--light-text);
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.contact-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.checkbox-group {
    display: flex;
    align-items: flex-start;
    grid-column: span 2;
}

.form-group.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-group:nth-child(5), .form-group:nth-child(6), .form-group:last-child {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--accent-color);
}

.map-section {
    margin-bottom: 50px;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.btn-modal-close {
    margin-top: 20px;
}

/* Post stránka */
.post-page {
    padding: 50px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.post-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.post-text {
    padding: 30px;
}

.post-image-container {
    margin: 30px 0;
    text-align: center;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.image-caption {
    font-style: italic;
    color: var(--gray-color);
    margin-top: 10px;
    font-size: 0.9rem;
}

.post-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tag {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.post-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-bg);
    border-radius: 50%;
    transition: var(--transition);
}

.share-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.post-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-nav-links {
    display: flex;
    gap: 15px;
}

.prev-post, .next-post, .back-to-blog {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.prev-post:hover, .next-post:hover, .back-to-blog:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.prev-post i, .back-to-blog i {
    margin-right: 5px;
}

.next-post i {
    margin-left: 5px;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 20px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.related-post {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.related-post h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.related-post p {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.categories ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.categories ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.categories ul li a:hover {
    padding-left: 5px;
    color: var(--accent-color);
}

/* Responsivní design */
@media (max-width: 992px) {
    .post-page {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group:nth-child(5), .form-group:nth-child(6), .form-group:last-child {
        grid-column: span 1;
    }
    
    .about-story {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        width: 100%;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .blog-post .post-image {
        width: 100%;
        height: 200px;
    }
    
    .post-main-image {
        height: 200px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
}
