/**
 * Hoška Tour – Vlastní CSS styly
 * ================================
 * Tailwind CSS CDN přes HTML třídy.
 * Tento soubor přidává pouze vlastní komponenty,
 * animace a efekty, které nejsou součástí Tailwindu.
 */

/* ── Navigace – glassmorphism ───────────────────── */
.nav-glass {
    background: rgba(13, 40, 69, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled {
    background: rgba(13, 40, 69, 0.97);
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

/* ── Hero sekce ─────────────────────────────────── */
.hero-section {
    overflow: hidden;
}

.hero-bg {
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=85');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0%   { transform: scale(1);     background-position: center 40%; }
    100% { transform: scale(1.06);  background-position: center 45%; }
}

/* Dekorativní kruhy – hero */
.hero-circle-1 {
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,141,227,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-circle-2 {
    position: absolute;
    bottom: -8rem;
    left: -8rem;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Animace – entrance ─────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.7s ease forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.7s 0.15s ease both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.7s 0.3s ease both;
}

.animate-slide-up-delay-3 {
    animation: slideUp 0.7s 0.45s ease both;
}

/* ── Scroll indicator ───────────────────────────── */
@keyframes bounceSlow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { opacity: 1; transform: translateY(0); }
    80%  { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; }
}

.animate-scroll-dot {
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ── Text gradient ──────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #48aaf7 0%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Vyhledávací lišta ──────────────────────────── */
.search-bar-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1rem;
}

/* ── Tour cards ─────────────────────────────────── */
.tour-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* ── Line-clamp ─────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Termíny scroll ─────────────────────────────── */
.date-item:focus-within,
.date-item:hover {
    outline: 2px solid #1e8de3;
    outline-offset: -2px;
}

/* ── Scrollbar styling ──────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── Prose (popis zájezdu) ──────────────────────── */
.prose p + p {
    margin-top: 0.75rem;
}

/* ── Responsive fixes ───────────────────────────── */
@media (max-width: 640px) {
    .hero-bg {
        background-attachment: scroll; /* parallax nefunguje dobře na iOS */
    }
    .search-bar-wrapper {
        padding: 0.75rem;
    }
}

/* ── Focus / accessibility ──────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #1e8de3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Print ──────────────────────────────────────── */
@media print {
    nav, .sticky, footer, .cta-section { display: none !important; }
    .hero-section { min-height: auto !important; }
}
