/* =======================
   GLOBÁLNÍ STYLY
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    background: #ffffff;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    cursor: pointer;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}



/* =======================
   NAVIGACE
======================= */
nav {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-middle {
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* =======================
   LOGO
======================= */
.logo img {
    width: 110px;
    height: auto;
}

/* =======================
   SEARCHBOX
======================= */
.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    background: #f3f3f3;
    border-radius: 30px;
    padding: 8px 16px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #000000;
}

.search-box input::placeholder {
    color: #999;
}

.search-box img {
    width: 16px;
    opacity: 0.6;
}

/* =======================
   MOBILE SEARCH
======================= */
.mobile-search {
    display: none;
    position: relative;
}

.mobile-search button {
    background: none;
    border: none;
    cursor: pointer;
}

#search-popup {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 2000;
    width: 90%;
    max-width: 320px;
}

#search-popup.active {
    display: block;
}

#search-popup input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

#search-popup button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#search-popup button:hover {
    background: #fff;
    color: #000;
}


/* =======================
   TOP BAR  
======================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
}

/* =======================
   MENU
======================= */
.menu {
    background: #f3f3f3;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.menu:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.menu-img {
    width: 26px;
}

/* Menu items */
.button {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.button a {
    position: relative;
    padding: 10px 16px;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    color: #111;
}

.button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* =======================
   GRID & CARDS
======================= */
.container {
    width: 100%;    
    padding-top: 75px;
    background: #ffffff;
        
}

.popup-svg {
    width: 100%;
    height: 400px;
    pointer-events: none; /* aby klik fungoval na <a> */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px;
}

.card {
    overflow: hidden;
    
    background: transparent;
    transition: transform 0.2s, box-shadow 0.2s;

    display: flex;
    justify-content: center;  /* horizontálně */
    align-items: center;      /* vertikálně */
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    
}

.card-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card-images img {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.card-images img:hover {
    transform: scale(1.05);
}

.card-info {
    padding: 10px 15px;
}

.card-info h2 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.card-info p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.btn-close{
    display: inline-block;
    width: 100%;
    margin-top: 60px;
    padding: 12px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #fff;
    color: #000;
}

.btn-edit {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #fff;
    color: #000;
}

.image-box{
    padding: 20px;
    text-align:center;
    margin-bottom:25px;
}

.image-box svg{
    max-width:100%;
    height:auto;
    
}

/* Modern Info Box */
#infoBox {
    position: fixed;   /* nebo fixed – viz níže */
    top: 20px;            /* uprav podle potřeby */
    left: 50%;
    transform: translateX(-50%);
    
    z-index: 1000;        /* musí být vyšší než obrázek */
    
    display: none;        /* výchozí stav */
    
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Table */
#infoBox table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Header */
#infoBox th {
    background-color: #f0f4f8;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

/* Cells */
#infoBox td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    color: #5e5d5d;
}

/* Hover effect */
#infoBox tr:hover {
    background-color: #f9fbfd;
    transition: background-color 0.2s ease;
}

/* Remove last border */
#infoBox tr:last-child td {
    border-bottom: none;
}

#infoBox td a {
    display: inline-block;
    max-width: 200px;   /* nastav podle potřeby */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =======================
   FORMY
======================= */
.form {
    max-width: 500px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.form input[type="text"],
.form input[type="password"],
.form textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    outline: none;
}

.form textarea {
    min-height: 100px;
    resize: vertical;
}

.form button,
.form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.form button:hover,
.form input[type="submit"]:hover {
    background: #fff;
    color: #000;
}

/* =======================
   FOOTER
======================= */
footer {
    text-align: center;
    padding: 20px;
    border-top: 2px solid #111;
    background: #ffffff;
    font-size: 0.9rem;
    color: #000000;
}

.footer-btn {
    margin-left: 15px;
    padding: 8px 14px;
    float: right;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.footer-btn:hover {
    background-color: #555;
}

/* =======================
   RESPONSIVE (MOBIL)
======================= */
@media (max-width: 768px) {
    nav {
        grid-template-columns: auto auto;
        padding: 10px 16px;
    }

    .desktop-search {
        display: none;
    }

    .mobile-search {
        display: block;
        margin-left: auto;
    }

    .logo img {
        width: 10%;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
#search-popup {
    margin-top: 20px;
    padding: 20px;
    width: 90%;       /* šířka popupu */
    max-width: 320px; /* maximální šířka */
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
