* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Shimmer loading animace */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton loading cards */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-card::after {
    content: '';
    display: block;
    margin: 12px 15px;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: #f8f9fa;
    border-bottom: 3px solid #28a745;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

header.hidden {
    transform: translateY(-100%);
}

/* Kompenzace pro fixed header */
body {
    padding-top: 80px;
}

.logo {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(90deg,
        #1e7e34 0%,
        #28a745 25%,
        #5ddb6a 50%,
        #28a745 75%,
        #1e7e34 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
}

.login-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* Hero sekce */
.hero {
    text-align: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(90deg,
        #1e7e34 0%,
        #28a745 25%,
        #5ddb6a 50%,
        #28a745 75%,
        #1e7e34 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 10px auto;
    max-width: 900px;
    padding: 0 20px;
    gap: 10px;
}

.search-bar input[type="text"] {
    padding: 12px 16px;
    flex: 1;
    min-width: 250px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.search-button {
    padding: 12px 24px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    white-space: nowrap;
}

.search-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Checkboxy pod vyhledáváním */
.search-checkboxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 10px auto;
    max-width: 900px;
    padding: 0 20px;
}

/* Checkbox pro oblečení */
.clothing-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.clothing-checkbox-wrapper:hover {
    border-color: #28a745;
    background: #f8f9fa;
}

.clothing-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #28a745;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.clothing-checkbox-wrapper input[type="checkbox"]:checked + .checkbox-icon {
    background: #28a745;
}

.clothing-checkbox-wrapper input[type="checkbox"]:checked + .checkbox-icon::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.clothing-checkbox-wrapper i {
    color: #28a745;
    font-size: 16px;
}

/* Panel filtrů oblečení */
.clothing-filters-panel {
    display: none;
    max-width: 1000px;
    margin: 20px auto;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

.clothing-filters-panel.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-header {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.filters-header i {
    color: #28a745;
}

.filters-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group.full-width {
    flex: 1 1 100%;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-clear {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-search {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #218838;
    transform: translateY(-2px);
}

.categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px auto;
    max-width: 1000px;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* nový styl pro odkazovanou kategorii */
.categories a.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 91px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.categories a.category:hover,
.categories a.category.active {
    transform: translateY(-2px);
    border-color: #28a745;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.15);
    background: #28a745;
}

.categories a.category:hover i,
.categories a.category:hover p,
.categories a.category.active i,
.categories a.category.active p {
    color: white;
}

.categories a.category i {
    font-size: 26px;
    color: #28a745;
    margin-bottom: 5px;
}

.categories a.category p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.products {
    padding: 20px;
    min-height: 60vh;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.15);
    border-color: #28a745;
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: scale(1.05);
}

.product-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 42px;
}

.product-price {
    font-weight: 700;
    color: #28a745;
    font-size: 18px;
    text-align: left;
}

.product-location {
    font-size: 12px;
    color: #888;
    text-align: left;
}

.product-location i {
    color: #28a745;
}

/* Hamburger menu icon (skryté na desktopu) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* User hamburger menu (viditelný jen na mobilu když je user přihlášen) */
.user-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.user-hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* MOBILNÍ ZOBRAZENÍ */
@media (max-width: 768px) {
    /* Kompenzace pro fixed header na mobilu */
    body {
        padding-top: 75px;
    }

    /* Hlavička */
    header {
        padding: 12px 15px;
        flex-wrap: wrap;
        position: fixed;
    }

    .logo {
        font-size: 22px;
    }

    /* Hamburger viditelný na mobilu */
    .hamburger {
        display: flex;
        order: 2;
    }

    /* User hamburger - skrýt v mobilním zobrazení */
    .user-hamburger {
        display: none !important;
    }

    /* AuthBtn na mobilu */
    #authBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Mobilní položky uživatele - zobrazit jako normální tlačítka */
    .mobile-user-items {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        order: 999; /* Zobrazit až na konci */
    }

    .mobile-user-items a {
        width: 100%;
        display: block;
    }

    /* Navigace - skrytá defaultně na mobilu */
    nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column; /* Změněno z row na column pro lepší rozložení */
        background: white;
        padding: 15px;
        margin-top: 10px;
        border-top: 1px solid #ddd;
        gap: 10px;
    }

    /* Navigace zobrazená když je menu otevřené */
    nav.active {
        display: flex;
    }

    /* Odkazy v řádku (O nás, RollPage, Nápověda) */
    nav a {
        margin: 5px;
        padding: 8px 10px;
        font-size: 13px;
        text-align: center;
        white-space: nowrap;
    }

    /* Tlačítka pod sebou, přes celou šířku */
    nav .login-btn {
        margin: 8px 0 0 0;
        width: 100%;
        flex-basis: 100%;
    }

    /* Kategorie - flexbox s centrováním na mobilu */
    .categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 0 12px;
        margin: 12px auto;
    }

    .categories a.category {
        min-width: auto;
        padding: 16px 8px;
    }

    .categories a.category:hover,
    .categories a.category.active {
        transform: translateY(-2px);
        border-color: #28a745;
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.15);
        background: #28a745;
    }

    .categories a.category:hover i,
    .categories a.category:hover p,
    .categories a.category.active i,
    .categories a.category.active p {
        color: white;
    }

    .categories a.category i {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .categories a.category p {
        font-size: 13px;
        font-weight: 700;
    }

    /* Vyhledávání */
    .search-bar {
        padding: 0 15px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .search-bar input[type="text"] {
        flex: 1 1 100%;
        min-width: 100%;
        font-size: 18px;
        padding: 16px 18px;
    }

    .search-button {
        flex: 1 1 100%;
        padding: 16px 24px;
        font-size: 18px;
        font-weight: 700;
    }

    /* Checkboxy pod vyhledáváním - na mobilu vedle sebe, menší (60%) */
    .search-checkboxes {
        display: flex !important;
        flex-direction: row !important;
        padding: 0 15px;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .search-checkboxes .clothing-checkbox-wrapper {
        width: auto !important;
        max-width: none;
        flex: 0 1 auto;
    }

    /* Checkboxy na mobilu - zmenšené na 60% */
    .clothing-checkbox-wrapper {
        padding: 6px 10px !important;
        min-height: 30px !important;
        gap: 6px !important;
        font-size: 11px !important;
        width: auto !important;
        max-width: none !important;
    }

    .checkbox-icon {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        border-width: 2px !important;
    }

    .clothing-checkbox-wrapper input[type="checkbox"]:checked + .checkbox-icon::after {
        font-size: 10px !important;
    }

    .clothing-checkbox-wrapper i {
        font-size: 12px !important;
    }

    .clothing-checkbox-wrapper span:not(.checkbox-icon) {
        font-size: 11px !important;
    }

    /* Hero sekce - mobil */
    .hero {
        padding: 18px 12px;
    }

    .hero h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    /* Sekce produktů */
    .products {
        padding: 12px 0;
    }

    .products h2 {
        padding: 0 12px;
        font-size: 20px;
    }

    /* Produkty - 2 sloupce na mobilu */
    .product-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 15px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .product {
        width: 100%;
        box-sizing: border-box;
    }

    .product img {
        height: 150px;
    }

    .product-content {
        padding: 12px 14px;
        gap: 6px;
    }

    .product-title {
        font-size: 14px;
        min-height: 40px;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }

    .product-price {
        font-size: 17px;
        font-weight: 800;
    }

    .product-location {
        font-size: 12px;
    }
}


/* VELMI MALÉ MOBILY (< 480px) */
@media (max-width: 480px) {
    /* Logo ještě menší */
    .logo {
        font-size: 20px;
    }

    /* Kategorie - flexbox centrováno na velmi malých mobilech */
    .categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 0 10px;
    }

    .categories a.category {
        padding: 13px 5px;
    }

    .categories a.category:hover,
    .categories a.category.active {
        transform: translateY(-2px);
        border-color: #28a745;
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.15);
        background: #28a745;
    }

    .categories a.category:hover i,
    .categories a.category:hover p,
    .categories a.category.active i,
    .categories a.category.active p {
        color: white;
    }

    .categories a.category i {
        font-size: 23px;
        margin-bottom: 5px;
    }

    .categories a.category p {
        font-size: 12px;
    }

    /* Hero */
    .hero h1 {
        font-size: 20px;
    }

    /* Search bar */
    .search-bar {
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .search-bar input[type="text"] {
        flex: 1 1 100%;
        font-size: 16px;
    }

    .search-button {
        flex: 1 1 100%;
        font-size: 16px;
    }

    .search-checkboxes {
        display: flex !important;
        flex-direction: row !important;
        padding: 0 10px;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    .search-checkboxes .clothing-checkbox-wrapper {
        width: auto !important;
        max-width: none;
        flex: 0 1 auto;
    }

    /* Ještě menší na velmi malých mobilech */
    .clothing-checkbox-wrapper {
        padding: 5px 8px !important;
        min-height: 28px !important;
        gap: 5px !important;
        font-size: 10px !important;
    }

    .checkbox-icon {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
    }

    .clothing-checkbox-wrapper input[type="checkbox"]:checked + .checkbox-icon::after {
        font-size: 9px !important;
    }

    .clothing-checkbox-wrapper i {
        font-size: 11px !important;
    }

    .clothing-checkbox-wrapper span:not(.checkbox-icon) {
        font-size: 10px !important;
    }

    /* Produkty */
    .product-list {
        padding: 15px 10px;
        gap: 8px;
    }

    .product-title {
        font-size: 13px;
        min-height: 38px;
    }

    .product-price {
        font-size: 16px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 45px;
}

.pagination button:hover:not(:disabled) {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.pagination button.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: bold;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .dots {
    padding: 10px 5px;
    color: #999;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #28a745;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #999;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px 15px 10px;
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    text-align: left;
    margin-bottom: 12px;
}

.footer-section h3 {
    color: #28a745;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.footer-section p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 4px;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 12px;
}

.footer-section a:hover {
    color: #28a745;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 8px;
    color: #95a5a6;
    font-size: 11px;
}

/* User dropdown menu */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.user-dropdown a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    color: #dc3545;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
        padding: 0 15px;
    }

    /* Footer - kompaktní na mobilu */
    footer {
        padding: 20px 15px 15px;
        margin-top: auto;
        font-size: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .footer-section h3 {
        font-size: 14px;
        margin: 0 0 8px 0;
    }

    .footer-section p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-section a {
        font-size: 12px;
        line-height: 1.6;
        display: inline-block;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-bottom {
        padding-top: 10px;
        font-size: 11px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    /* User dropdown na mobilu */
    .user-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        min-width: 180px;
        z-index: 9999 !important;
    }

    .user-dropdown.active {
        display: block !important;
    }
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    max-width: 600px;
    z-index: 9999;
    animation: slideInDown 0.5s ease, slideOutUp 0.5s ease 4.5s;
    animation-fill-mode: forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-left: 5px solid;
}

.flash-message.flash-success .flash-content {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95) 0%, rgba(32, 201, 151, 0.95) 100%);
    border-left-color: #155724;
    color: white;
}

.flash-message.flash-error .flash-content {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95) 0%, rgba(200, 35, 51, 0.95) 100%);
    border-left-color: #721c24;
    color: white;
}

.flash-message.flash-warning .flash-content {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 171, 0, 0.95) 100%);
    border-left-color: #856404;
    color: #212529;
}

.flash-message.flash-info .flash-content {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.95) 0%, rgba(13, 110, 253, 0.95) 100%);
    border-left-color: #004085;
    color: white;
}

.flash-message i {
    font-size: 24px;
    flex-shrink: 0;
}

.flash-message span {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.flash-close {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
    flex-shrink: 0;
}

.flash-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .flash-message {
        top: 80px;
        min-width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        transform: none;
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideOutUp {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-30px);
        }
    }

    .flash-content {
        padding: 14px 16px;
        gap: 10px;
    }

    .flash-message i {
        font-size: 20px;
    }

    .flash-message span {
        font-size: 14px;
    }

    .flash-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

/* AUTH MODALS - Mobile-Friendly Styles */
#loginModal,
#registerModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

#loginModal > div,
#registerModal > div {
    background: white !important;
    padding: 30px !important;
    border-radius: 10px !important;
    max-width: 400px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

@media (max-width: 768px) {
    #loginModal,
    #registerModal {
        padding: 10px !important;
        align-items: flex-start !important;
        padding-top: 30px !important;
    }

    #loginModal > div,
    #registerModal > div {
        padding: 20px !important;
        max-width: 100% !important;
        width: calc(100% - 20px) !important;
        margin: 0 auto !important;
        max-height: calc(100vh - 60px) !important;
    }

    #loginModal h2,
    #registerModal h2 {
        font-size: 22px !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    #loginModal input,
    #registerModal input,
    #loginModal button,
    #registerModal button {
        font-size: 16px !important;
        padding: 12px !important;
    }

    #loginModal form > div,
    #registerModal form > div {
        margin-bottom: 15px !important;
    }

    #loginModal label,
    #registerModal label {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
}

@media (max-width: 480px) {
    #loginModal > div,
    #registerModal > div {
        padding: 15px !important;
        width: calc(100% - 10px) !important;
    }

    #loginModal h2,
    #registerModal h2 {
        font-size: 20px !important;
    }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid #28a745;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 25px 20px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #ff6600;
    color: white;
}

.cookie-btn-accept:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.cookie-btn-decline {
    background: #e0e0e0;
    color: #333;
}

.cookie-btn-decline:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: #28a745;
    border: 2px solid #28a745;
}

.cookie-btn-settings:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px 15px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
    }

    .cookie-consent-text h3 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px;
    }
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 30px 0;
    padding: 20px;
}

.pagination-info {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-link {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0 12px;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.page-link.active {
    background: #ff6600;
    border-color: #ff6600;
    color: white;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.page-link.active:hover {
    transform: none;
}

.page-link-next {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link-next:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile pagination */
@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        gap: 12px;
    }

    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }
}

/* Povinná pole - větší červené hvězdičky */
.form-group.required label::after {
    content: " *";
    color: #dc3545;
    font-size: 20px;
    font-weight: bold;
    vertical-align: super;
    line-height: 0;
}
