﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
}

/* Bootstrap Navbar - Responzivní menu */
.navbar {
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
}

.navbar-brand {
    text-decoration: none;
}

.navbar-brand img {
    max-height: 120px;
    width: auto;
}

/* Brand text - název a motto pod sebou */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3c72;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.brand-motto {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

/* Menu odkazy */
.navbar-nav .nav-link {
    color: #333;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    font-size: 1rem;
}

.navbar-nav .nav-link:hover {
    color: #2a5298;
}

/* Burger button styling */
.navbar-toggler {
    border: 2px solid #2a5298;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 60, 114, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 50px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-motto {
        font-size: 0.65rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-motto {
        font-size: 0.6rem;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 0rem 2rem;
    color: #1e3c72;
}

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.2;
    }

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: #4a5568;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.search-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-container .input-group {
    display: flex;
    flex-direction: column;
}

.search-container .input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.search-container .input-group select,
.search-container .input-group input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.search-container .input-group select:focus,
.search-container .input-group input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

.search-button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(42, 82, 152, 0.4);
}

.features {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.stats {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
    color: white;
}

.stat-item {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.footer-section p,
.footer-section a {
    color: #666;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: #2a5298;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #666;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem 0rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .search-title {
        font-size: 1.3rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Rozbalovací filtr na stránce výsledků */
#filterCollapse .card-body {
    background-color: #f8f9fa;
}

#filterCollapse .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

#filterCollapse .form-select,
#filterCollapse .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#filterCollapse .form-select:focus,
#filterCollapse .form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.card-header .btn-link:hover {
    text-decoration: none;
}

.card-header .btn-link:focus {
    outline: none;
    box-shadow: none;
}