/* ============================================================
   Portal fotogalerii – styl inspirovany Dropboxem
   ============================================================ */

:root {
    --akcent: #4a6274;
    --bg: #f7f7f7;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #666;
    --text-light: #aaa;
    --border: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms var(--ease);
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

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

svg { display: block; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--akcent) 90%, #fff) 0%, var(--akcent) 50%, color-mix(in srgb, var(--akcent) 90%, #000) 100%);
    text-align: center;
    padding: 60px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-logo {
    width: 180px;
    margin: 0 auto 32px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    position: relative;
}

.hero h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    position: relative;
}

.hero h1 span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.hero-claim {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 10px 24px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    position: relative;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   Galerie sekce
   ============================================================ */

.galleries {
    max-width: 960px;
    margin: -40px auto 0;
    padding: 0 24px 40px;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 20px;
    padding-left: 4px;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

.gallery-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.gallery-card.is-hidden {
    opacity: 0.5;
}

.gallery-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.gallery-info {
    flex: 1;
    min-width: 0;
}

.gallery-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-meta .dot {
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
}

.gallery-status {
    font-size: 0.75rem;
    color: #c53030;
    margin-top: 4px;
    font-weight: 500;
}

.gallery-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform var(--transition), color var(--transition);
}

.gallery-card:hover .gallery-arrow {
    transform: translateX(3px);
    color: var(--text-muted);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

/* Prazdny stav */

.empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 32px;
    text-align: center;
}

.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--text-light);
}

.empty-icon svg {
    width: 56px;
    height: 56px;
}

.empty-state h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   Info bar
   ============================================================ */

.info-bar {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.info-bar-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.info-bar-icon {
    width: 44px;
    height: 44px;
    background: #fef3e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-bar-icon svg {
    width: 22px;
    height: 22px;
    color: #f29900;
}

.info-bar-text {
    flex: 1;
    min-width: 200px;
}

.info-bar-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.info-bar-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   Kontakt
   ============================================================ */

.contact {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-left {
    flex: 1;
    min-width: 240px;
}

.contact-left h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #333;
    transition: color var(--transition);
}

.contact-item:hover {
    color: var(--akcent);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #888;
    transition: color var(--transition);
}

.contact-item:hover svg {
    color: var(--akcent);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    text-align: center;
    padding: 24px;
    font-size: 0.78rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
}

.footer a {
    color: #888;
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--akcent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
    .hero {
        padding: 40px 20px 60px;
    }

    .hero-logo {
        width: 140px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-claim {
        font-size: 0.95rem;
    }

    .galleries {
        padding: 0 16px 32px;
    }

    .gallery-card {
        padding: 16px;
    }

    .gallery-icon {
        width: 40px;
        height: 40px;
    }

    .gallery-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .info-bar {
        padding: 0 16px;
    }

    .info-bar-inner {
        padding: 20px;
    }

    .contact {
        padding: 0 16px 40px;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}
