/*
Theme Name: Zámecká oční ambulance
Theme URI: https://zameckaocniambulance.cz
Author: Zámecká oční ambulance
Author URI: https://zameckaocniambulance.cz
Description: One-page WordPress šablona s rozbalovacími aktualitami a editovatelnými ordinačními hodinami
Version: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ocni-ordinace
*/

/* RESET + ZÁKLAD */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9fb;
}

/* HLAVIČKA A NAVIGACE */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* RESPONSIVITA MENU */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: #667eea;
        padding: 1rem 2rem;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* OBSAH A SEKCÍ STYLY */
.hero {
    background: url("images/uvod.jpg") center top / cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    min-height: 40vh;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Editable content sections */
.editable-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.editable-section h2 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.editable-section h3 {
    color: #764ba2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.editable-section p {
    margin-bottom: 1rem;
}

.editable-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Services grid - pro WordPress bloky */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* WordPress Columns support pro služby */
.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wp-block-column {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.wp-block-column:hover {
    transform: translateY(-5px);
}

.wp-block-column h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.wp-block-column img,
.wp-block-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wp-block-column p {
    margin-bottom: 1rem;
}

/* KONTAKT */
.contact-info {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button,
input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

button:hover,
input[type="submit"]:hover {
    transform: scale(1.05);
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.success-message {
    display: none;
    background: #48bb78;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* WordPress specifické třídy */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* AKTUALITY SEKCE */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.news-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-content {
    color: #4a5568;
    line-height: 1.6;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

.no-news {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: #718096;
}

.more-news-link {
    text-align: center;
    margin-top: 2rem;
}

.more-news-link a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    cursor: pointer;
}

.more-news-link a:hover {
    transform: scale(1.05);
}

/* Skryté aktuality */
.hidden-news {
    display: none;
    margin-top: 2rem;
}

.hidden-news.visible {
    display: block;
}

.less-news-link {
    text-align: center;
    margin-top: 2rem;
    display: none;
}

.less-news-link.visible {
    display: block;
}

.less-news-link a {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.less-news-link a:hover {
    background: #cbd5e0;
    transform: scale(1.05);
}

/* CAROUSEL / GALERIE */
.photo-carousel {
    margin: 3rem 0;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #667eea;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #667eea;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 300px;
    }
    
    .carousel-button {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }
}

/* ROZŠÍŘENÉ KONTAKTY */
.contact-info {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-info strong {
    display: inline-block;
    min-width: 150px;
    color: #2d3748;
}

.contact-hours {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.contact-hours h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.contact-hours table {
    width: 100%;
    border-collapse: collapse;
}

.contact-hours td {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.contact-hours tr:last-child td {
    border-bottom: none;
}

.contact-hours .day {
    font-weight: 600;
    color: #4a5568;
    width: 40px;
}

.contact-hours .time {
    color: #718096;
}

.contact-hours .doctor {
    color: #667eea;
    font-style: italic;
}

.contact-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.95rem;
}

.contact-map {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-map img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* CENÍK */
.pricing-table {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.pricing-table h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table th {
    background: #f7fafc;
    color: #2d3748;
    font-weight: 600;
}

.pricing-table tr:hover {
    background: #f7fafc;
}

.pricing-table .price {
    text-align: right;
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pricing-table table {
        font-size: 0.9rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem 0.5rem;
    }
}
