/* --- MODERNÍ DEFINICE (Inspirováno Praha.eu) --- */
:root {
    --primary-color: #2c5f2d; /* Blanenská lesní */
    --primary-hover: #1e4220;
    --accent-color: #ff9f1c;  /* Akcentní oranžová */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --card-radius: 16px;      /* Moderní velké zaoblení */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05); /* Jemný stín */
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12); /* Výraznější stín */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fcfcfc; /* Téměř bílá, čistá */
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- NAVIGACE (Čistá, bílá) --- */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.6rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin-left: 1rem;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* --- HERO SEKCE (Velký úvod) --- */
.hero-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a8a4b 100%);
    padding: 4rem 0 5rem 0; /* Více místa */
    margin-bottom: -3rem; /* Aby karty "vjely" do hlavičky */
    color: white;
    border-radius: 0 0 30px 30px; /* Moderní zakřivení dole */
    position: relative;
    z-index: 1;
}

/* --- KARTY AKCÍ (Moderní styl) --- */
.card-event {
    border: none;
    border-radius: var(--card-radius);
    background: white;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
    top: 0;
}

.card-event:hover {
    transform: translateY(-8px); /* Efekt zvednutí */
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-event:hover .card-img-top {
    transform: scale(1.05); /* Jemné přiblížení fotky */
}

/* Datum jako odznak na fotce (Velmi moderní) */
.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--text-dark);
    min-width: 60px;
}

.date-day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: var(--primary-color);
}

.date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

/* Obsah karty */
.card-body {
    padding: 1.5rem;
}

.location-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.card-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--primary-color);
}

.category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- FILTRY (Boční panel) --- */
.filter-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
}

.custom-list-group .list-group-item {
    border: none;
    background: transparent;
    padding: 8px 15px;
    margin-bottom: 5px;
    border-radius: 50px !important; /* Pilulkový tvar */
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.2s;
}

.custom-list-group .list-group-item:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.custom-list-group .list-group-item.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(44, 95, 45, 0.3);
}

/* Tlačítka */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px; /* Kulatá tlačítka */
    padding: 10px 25px;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}