/*
Theme Name: Hurghada Dovolená
Theme URI: https://hurghadadovolena.cz
Author: Hurghada Dovolená
Author URI: https://hurghadadovolena.cz
Description: WordPress šablona pro web o dovolené v Hurghadě u moře. Osobní, přátelský design zaměřený na fotografie a důvěryhodnost ubytování.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hurghada-theme
Tags: beach, vacation, egypt, hurghada, accommodation, photography
*/

/* ========================================================================
   CSS Reset & Základní styly
   ======================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fdfdfb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1e88a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #156d87;
}

/* ========================================================================
   Layout Structure
   ======================================================================== */

.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background: linear-gradient(135deg, #1e88a8 0%, #2da5c8 100%);
    padding: 1.5rem 0;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.site-title a:hover {
    color: #ffe5b4;
}

.site-description {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0.25rem 0 0;
    font-weight: 300;
}

.site-main {
    flex: 1;
    padding: 2rem 0;
}

.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 0rem 0 1rem;
    border-top: none;
    margin-top: auto;
    color: rgba(255,255,255,0.85);
}

.site-footer a {
    color: #5dade2;
}

.site-footer a:hover {
    color: #85c1e9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-area {
    width: 100%;
}

/* Layout s postranním panelem */
.has-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .has-sidebar {
        grid-template-columns: 2fr 1fr;
    }
}

/* ========================================================================
   Navigation
   ======================================================================== */

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.15);
    color: #ffe5b4;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* ========================================================================
   Content
   ======================================================================== */

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.entry-title a {
    color: #2c3e50;
}

.entry-title a:hover {
    color: #1e88a8;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-content > * + * {
    margin-top: 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
    color: #666;
}

/* Post thumbnail */
.post-thumbnail {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Articles listing */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

article {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e8eef3;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

article:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

article:last-child {
    border-bottom: none;
}

/* ========================================================================
   Pagination
   ======================================================================== */

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.pagination .current {
    background-color: #1e88a8;
    color: #fff;
    border-color: #1e88a8;
}

/* ========================================================================
   Sidebar & Widgets
   ======================================================================== */

.sidebar {
    font-size: 0.9375rem;
}

.widget {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1e88a8;
    color: #2c3e50;
}

.widget-content {
    color: #555;
    line-height: 1.6;
}

.widget-content a {
    color: #1e88a8;
    font-weight: 500;
}

.widget-content a:hover {
    color: #156d87;
    text-decoration: underline;
}

/* Widget menu */
.widget-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-menu li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget-menu li:last-child {
    border-bottom: none;
}

.widget-menu li a {
    color: #555;
    display: block;
    transition: all 0.2s ease;
    padding-left: 0.5rem;
}

.widget-menu li a:hover {
    color: #1e88a8;
    padding-left: 1rem;
}

/* Recent posts widget */
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list li a {
    color: #2c3e50;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.recent-posts-list li a:hover {
    color: #1e88a8;
}

.recent-posts-list .post-date {
    font-size: 0.8125rem;
    color: #999;
    display: block;
}

/* Categories widget */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list li a {
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.categories-list li a:hover {
    color: #1e88a8;
}

.category-count {
    font-size: 0.8125rem;
    color: #999;
    background: #f0f0f0;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
}

/* Info widget */
.widget-info {
    background: linear-gradient(135deg, #e8f5f9 0%, #f0f9fc 100%);
    border-left: 4px solid #1e88a8;
}

/* Contact widget */
.widget-contact {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe5b4 100%);
    border-left: 4px solid #f39c12;
}

/* CTA Button Widget */
.widget-cta {
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 2rem;
}

.widget-cta:hover {
    box-shadow: none;
}

.cta-button {
    display: block;
    text-align: center;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cta-button-orange {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border: 3px solid #d68910;
}

.cta-button-orange:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243,156,18,0.3);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.25rem 0;
}

/* ========================================================================
   404 Page
   ======================================================================== */

.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================================================
   Utility Classes
   ======================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================================
   Hurghada Theme - Custom Styles
   ======================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #1e88a8 0%, #2da5c8 50%, #f39c12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #f39c12;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243,156,18,0.4);
}

/* Features Section */
.features-section {
    padding: 3rem 0;
    background-color: #f8fbfd;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.feature-description {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* GLightbox Custom Styling */
.glightbox-clean .gslide-description {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.glightbox-clean .gdesc-inner {
    font-size: 1rem;
    line-height: 1.6;
}

/* WordPress výchozí galerie - přepsání stylů */
.wp-block-gallery,
.blocks-gallery-grid,
.gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 2rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wp-block-gallery .blocks-gallery-item,
.gallery .gallery-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    aspect-ratio: 4/3 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    transition: box-shadow 0.3s ease !important;
    margin: 0 !important;
    width: auto !important;
}

.wp-block-gallery .blocks-gallery-item:hover,
.gallery .gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.wp-block-gallery .blocks-gallery-item a,
.gallery .gallery-item a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.wp-block-gallery .blocks-gallery-item img,
.gallery .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    border-radius: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.wp-block-gallery .blocks-gallery-item:hover img,
.gallery .gallery-item:hover img {
    transform: scale(1.1) !important;
}

/* WordPress gallery caption */
.gallery .gallery-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
    color: #fff !important;
    padding: 1.5rem !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

.gallery .gallery-item:hover .gallery-caption {
    transform: translateY(0) !important;
}

/* Loading spinner pro galerii */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(30, 136, 168, 0.2);
    border-top-color: #1e88a8;
    border-radius: 50%;
    animation: gallery-spinner 0.8s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item.loaded::before {
    opacity: 0;
    animation: none;
}

.gallery-item img {
    background: #f0f0f0;
}

@keyframes gallery-spinner {
    to { transform: rotate(360deg); }
}

/* Responsivní úpravy pro galerii */
@media (max-width: 768px) {
    .gallery-grid,
    .gallery,
    .wp-block-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .gallery-overlay,
    .gallery-caption {
        padding: 1rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .gallery,
    .wp-block-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #1e88a8 0%, #2da5c8 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(30,136,168,0.2);
}

.contact-box h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.contact-box a {
    color: #ffe5b4;
    font-weight: 600;
}

.contact-box a:hover {
    color: #fff;
}

/* Testimonials */
.testimonial {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #1e88a8;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: #2c3e50;
}

/* Info boxes */
.info-box {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.info-box.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

/* Price tag */
.price-tag {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: #1e88a8;
    background: #e8f5f9;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar na mobilu pod obsahem */
    .has-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}

