/* ==========================================================================
   CLEAN CORPORATE THEME - BASE STYLES
   Čisté základní styly pro corporate glassmorphism design
   ========================================================================== */

:root {
    /* Již definováno v menu-modern.css, zde jen pro reference */
    --primary-blue: #175ee6;
    --primary-navy: #0f172a;
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --max-width: var(--theme-container-width, 1400px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--theme-font-family, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Základní typografie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: #0f4bc5;
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* Screen shell */
.screen-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page section */
.page-section {
    padding: 3rem 0;
    flex: 1 0 auto; /* Aby se roztáhl a zatlačil patičku dolů */
}

.page-section--full {
    padding: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .page-section {
        padding: 2rem 0;
    }
}

/* ==========================================================================
   GALLERY LIGHTBOX
   ========================================================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.gallery-lightbox.show {
    display: block;
}

.gallery-lightbox__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

.gallery-lightbox__container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.gallery-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-lightbox__prev {
    left: 1.5rem;
}

.gallery-lightbox__next {
    right: 1.5rem;
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox__info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem 2rem 2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.gallery-lightbox__caption {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.gallery-lightbox__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.gallery-lightbox__actions {
    flex-shrink: 0;
}

.gallery-lightbox__download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-lightbox__download:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.gallery-lightbox__download i {
    font-size: 1rem;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .gallery-lightbox__container {
        padding: 1rem;
    }
    
    .gallery-lightbox__close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-lightbox__prev,
    .gallery-lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-lightbox__prev {
        left: 1rem;
    }
    
    .gallery-lightbox__next {
        right: 1rem;
    }
    
    .gallery-lightbox__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 2rem 1rem 1rem;
    }
    
    .gallery-lightbox__caption {
        font-size: 1rem;
    }
    
    .gallery-lightbox__description {
        font-size: 0.9rem;
    }
}
