/* ===================================
   GRAV Theme: Klinická logopedie Slavětín
   Version: 1.0.1 - Fixed
   =================================== */

:root {
    --primary-color: #36c4c4;
    --primary-dark: #2ca5a5;
    --yellow-color: #f0b429;
    --text-color: #555555;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --header-bg: #4a5660;
    --nav-bg: #ffffff;
    --border-color: #e0e0e0;
    --sidebar-bg: #fafafa;
    --footer-dark: #444444;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Header */
.site-header {
    background-color: #4a5660;
    padding: 20px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo:hover .site-title {
    color: white;
}

/* Navigation */
.main-nav {
    background-color: var(--nav-bg);
    border-bottom: 3px solid var(--primary-color);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu li.active > a {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Action Bar */
.action-bar {
    display: flex;
    align-items: stretch;
    background-color: var(--bg-white);
    max-width: 1200px;
    margin: 0 auto;
}

.action-left {
    width: 250px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.follow-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.social-link {
    color: white;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
}

.action-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.5px;
    margin: 0;
}

.action-right {
    width: 250px;
    flex-shrink: 0;
    background-color: var(--yellow-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}

.more-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-white);
}

.content-wrapper {
    display: flex;
    min-height: 500px;
}

/* Sidebars */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 30px 20px;
    background-color: var(--sidebar-bg);
}

.sidebar-left {
    border-right: 1px solid var(--border-color);
}

.sidebar-right {
    border-left: 1px solid var(--border-color);
}

.widget {
    margin-bottom: 35px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Office Hours */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 400;
}

.hours-list .hours {
    font-weight: 400;
    color: var(--text-light);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 5px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: var(--primary-dark);
}

/* Posts & Categories */
.posts-list,
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.posts-list li,
.categories-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.posts-list li:last-child,
.categories-list li:last-child {
    border-bottom: none;
}

.posts-list li::before {
    content: "◉";
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.7rem;
}

.categories-list li::before {
    content: "📁";
    margin-right: 8px;
}

.count {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px 40px;
    min-width: 0;
}

.page-content,
.home-content,
.contact-content,
.services-content,
.about-content {
    max-width: 700px;
}

.content p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Home Page */
.featured-image {
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.featured-image img {
    width: 100%;
}

.featured-image figcaption {
    padding: 10px 15px;
    background-color: var(--bg-light);
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.price-table tr:nth-child(odd) {
    background-color: var(--bg-light);
}

.service-name {
    text-align: left;
}

.service-price {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

/* Footer */
.site-footer {
    background-color: var(--bg-light);
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.gdpr-link {
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.scroll-top {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.scroll-top:hover {
    background-color: var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background-color: var(--footer-dark);
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border: none;
    }

    .sidebar-left {
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-right {
        border-top: 1px solid var(--border-color);
    }

    .action-bar {
        width: 100%;
    }

    .action-left,
    .action-right {
        width: 80px;
    }

    .follow-label,
    .more-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
    }

    .action-left,
    .action-center,
    .action-right {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
    }

    .content {
        padding: 20px;
    }
}
