body, html {
    font-family: Arial, sans-serif;
}

.kruzok{
  height: 50px;
  width: 50px;
  background-color: #2FC22B;
  border-radius: 50%;
  display: inline-block;
}

.onas_but{
    text-decoration: none;
    color:white;
}
.zaciatok {
        position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1010;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.nadpis {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 35px;
    color: #2FC22B;
    font-weight: 600;
}

.o_nas {
        border: 0.01px solid #74D67F;
    padding-top: 10px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 10px;
    font-size: 20px;
    color: white;
    border-radius: 5px;
    background-color: #74D67F;
    position: absolute;
    right: 5%;
    display: flex;
    font-weight: 600;
    align-items: center;
    cursor: pointer;
}




nav{
  position: fixed; /* Kľúčová zmena: Fixné pozicovanie */
    top: 70px;       /* Začína presne 70px od vrchu, čo je výška .zaciatok */
    left: 0;
    width: 100%;     /* Celá šírka */
    z-index: 1000;   /* Pod hlavičkou, ale nad obsahom */

    /* Pôvodné štýly: */
    background: #74D77F;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding-right: 30px;
}
.fotka-popis {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px; 
    margin-bottom: 10px; 
}
.fotka-popis img {
    min-width: 65px;
    width: 65px; 
    height: 65px;
    border-radius: 50%; 
    object-fit: cover; 
}
.popis-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.meno {
    font-weight: 700;
    font-size: 20px;
}
.specifikacia {
    font-size: 14px;
}
.okres {
    font-size: 14px;
    font-weight: 600;
}
.fotky-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.fotky {
    width: 100%;
    height: 100px;
    border-radius: 5px; 
    overflow: hidden; 
    flex: 1; 
}
.fotky img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 5px; 
}

.ponuky {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 stĺpce rovnaké šírky */
    gap: 20px; /* medzera medzi boxami */
    padding: 20px;
    margin-top: 140px;
}

.box {
    background-color: #D3EED3; 
    border: none; 
    border-radius: 10px; 
    padding: 15px; 
    display: flex;
    flex-direction: column;
}

.search-nav {
    padding-left:40px;
    background-color: #74D77F; 
    border-radius: 5px; 
    display: flex; 
    align-items: center;
}

.search-input {
    background-color: white; 
    border: none; 
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 10px 15px 10px 15px; 
    font-size: 16px;
    flex-grow: 1; 
    color: #808080;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}


.search-input::placeholder {
    color: #a0a0a0; 
    opacity: 1;
}



.search-icon {
    background-color: white; 
    padding: 6px 10px;
    font-size: 20px; 
    color: #808080; 
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.filter-bar {
    display: flex;
    gap: 15px;
    padding: 10px;
    

}

.filter-button {
    background-color: white; 
    color: black; 
    border: none; 
    border-radius: 20px; 
    padding: 8px 15px; 
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #f0f0f0; 
}

.user-menu-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-navstevnik {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: white;
    border-radius: 10px;
    padding: 5px 10px 5px 10px;
    font-weight: 500;
}

.user-icon {
    width: 30px; 
    height: 30px;
    border-radius: 50%; 

}


.hamburger-menu {
    width: 30px; 
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 4px;
    background-color: #626F5F;
    border-radius: 2px;
}

.druha_ciarka{
    width: 20px;
}
.prelink{
   all: unset; /* Zruší všetky defaultné štýly odkazu (farbu, podčiarknutie, kurzor) */
    cursor: pointer;
}

/* Kontajner pre oba boxy */
.user-menu-section {
    display: flex;
    align-items: center;
    gap: 10px; /* Medzera medzi boxom s menom a boxom s menu */
}

/* Box 2: Hamburger tlačidlo */
.hamburger-button {
    background-color: #74D77F;
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.hamburger-button:hover {
    background-color: #74D77F;;
}

/* Pozicovanie dropdownu pod tlačidlom */
.user-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%; 
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 2000;
    overflow: hidden;
}

/* Ostatné štýly (prelinky, show trieda) zostávajú rovnaké ako predtým */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #74D77F;;
}

.show {
    display: block;
}

.arrow {
    font-size: 10px; /* Šípka by mala byť o niečo menšia ako text */
    color: #626F5F; /* Farba ladiaca s tvojím hamburger menu */
    transition: transform 0.3s;
}



/* ════════════════════════════════════════════════
   MOBILNÝ RESPONSIVE DIZAJN
   ════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .ponuky {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .nadpis { font-size: 26px; }
    .o_nas  { font-size: 15px; padding: 8px 18px; }

    .filter-bar { gap: 8px; padding: 6px; }
    .filter-button { font-size: 13px; padding: 6px 10px; }

    .bar-navstevnik { padding: 5px 14px; font-size: 13px; }

    /* Profil stránka */
    .profile-container { grid-template-columns: 1fr; gap: 20px; padding: 20px 14px 40px; }
    .profile-card { padding: 22px 18px; }
    .profile-name { font-size: 24px; }
    .profile-image { width: 90px; height: 90px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── Mobil (≤ 600px) ── */
@media (max-width: 600px) {

    /* Header – logo v strede, o nás vpravo */
    .zaciatok {
        padding: 0 12px;
        height: 52px;
        justify-content: center;
    }
    .nadpis { font-size: 20px; gap: 7px; }
    .kruzok { width: 30px; height: 30px; }
    .o_nas {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
    }

    /* Nav – 2 riadky:
       riadok 1: search (flex:1) + user-menu
       riadok 2: filter-bar (celá šírka) */
    nav {
        top: 52px;
        padding: 0;
        flex-wrap: wrap;
        align-items: center;
    }
    .search-nav {
        flex: 1;
        padding-left: 8px;
        min-width: 0;
        order: 1;
    }
    .user-menu-section {
        order: 2;
        padding-right: 8px;
    }
    .filter-bar {
        order: 3;
        width: 100%;
        gap: 4px;
        padding: 4px 8px 5px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #74D77F;
        box-sizing: border-box;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-button { font-size: 11px; padding: 5px 8px; white-space: nowrap; }

    .search-input {
        font-size: 13px;
        padding: 7px 7px;
        min-width: 0;
        width: 100%;
    }
    .search-icon { padding: 4px 7px; font-size: 15px; }
    .bar-navstevnik { padding: 4px 8px; font-size: 11px; gap: 3px; }
    .user-icon { width: 22px; height: 22px; }
    .hamburger-button { padding: 4px 7px; }
    .hamburger-menu { width: 22px; height: 22px; }

    /* Ponuky – margin = header(52) + nav riadok1(~38) + nav riadok2(~30) */
    .ponuky {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        margin-top: 130px !important;
    }

    /* Kartička */
    .box { padding: 12px; border-radius: 10px; }
    .fotka-popis img { width: 52px; height: 52px; }
    .meno { font-size: 16px; }
    .specifikacia, .okres { font-size: 12px; }
    .fotky { height: 75px; }

    /* Stránkovanie skupín */
    .btn-group-nav { width: 42px; height: 42px; font-size: 20px; }
    .group-info { font-size: 13px; }
    .group-dot { width: 10px; height: 10px; }

    /* Stránkovanie webu */
    .page-nav { gap: 6px; padding: 14px 10px 36px; }
    .page-nav a, .page-nav span { width: 34px; height: 34px; font-size: 13px; }
    .page-nav .page-prev, .page-nav .page-next { padding: 0 10px; font-size: 13px; }

    /* Aktívne filtre */
    .active-filters { padding: 6px 12px 0; gap: 6px; margin-top: 130px !important; }
    .filter-tag { font-size: 12px; padding: 3px 10px; }

    /* Profil stránka */
    .profile-container {
        grid-template-columns: 1fr;
        padding: 12px 10px 40px;
        gap: 16px;
    }
    .profile-card { padding: 18px 14px; }
    .profile-name { font-size: 22px; }
    .profile-image { width: 80px; height: 80px; }
    .profile-header-section { gap: 14px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .btn-page { width: 36px; height: 36px; font-size: 18px; }

    /* Lightbox */
    .lightbox-img { max-width: 95vw; max-height: 60vh; }
    .lightbox-nav { width: 38px; height: 38px; font-size: 22px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 14px; right: 14px; font-size: 26px; }

    /* Admin */
    .admin-section { padding: 16px 12px; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 7px 8px; }
    .btn-danger { padding: 5px 10px; font-size: 12px; }

    /* O nás */
    .onas-card { padding: 24px 16px; }
    .onas-logo h1 { font-size: 26px; }
    .onas-text { font-size: 14px; }
}

/* ── Veľmi malé mobily (≤ 380px) ── */
@media (max-width: 380px) {
    .nadpis { font-size: 18px; }
    .o_nas { font-size: 11px; padding: 5px 8px; }
    .ponuky { padding: 8px; gap: 8px; }
    .meno { font-size: 15px; }
    .fotka-popis img { width: 44px; height: 44px; }
    .fotky { height: 60px; }
}

/* ── Oprava body padding pre mobil ── */
@media (max-width: 600px) {
    body { font-size: 14px; }
}