:root {
    --primary: #ff6b6b;
    --secondary: #5d4037;
    --bg-warm: #fff9e6;
    --white: #ffffff;
    --light-border: rgba(93, 64, 55, 0.1);
}
* { margin:0; padding:0; box-sizing:border-box; font-family:'Quicksand',sans-serif; }

body { background:rgb(255,249,230); color:#333; }


.nadpis{
text-align: center;color:#FF6B6B;    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 5px 0;
}
.nadpisnadpohladnicou{
text-align: left;color:#FF6B6B;    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 5px 0;
}
.lightbox-content {
    display: flex;
    flex-direction: column; /* Uloží prvky pod seba (obrázok hore, footer dole) */
    align-items: center;    /* Vycentruje obrázok aj footer horizontálne na stred */
    justify-content: center;
    max-width: 90%;
    max-height: 80vh;
}

/* Obrázok */
#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 70vh; /* Necháme priestor pod ním pre tlačidlo */
    object-fit: contain;
}

/* Footer pod obrázkom */
.lightbox-footer {
    width: 100%;
    text-align: center;     /* Vycentruje text/tlačidlo vo vnútri */
    margin-top: 15px;       /* Medzera medzi obrázkom a tlačidlom */
}
/* Samotné tlačidlo */
.send-btn {
    display: inline-block;  /* Aby reagovalo na text-align: center */
    padding: 12px 24px;
    background-color: #ff4757; /* Vaša farba */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.send-btn:hover {
    background-color: #ff6b81;
}
.info-bar {
    background:#fff;
    padding:10px;
    border-bottom:1px solid #eee;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    font-size:14px;
}

/* BUTTON */
.mobile-menu-btn {
    display:none;
    background:white;
    padding:10px 15px;
    margin:10px;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
}

/* LAYOUT */
.container {
    max-width:1200px;
    margin:auto;
    display:flex;
    gap:20px;
    padding:20px;
}


.sidebar {
    width: 25%;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: 0.3s;
}

/* názov (ak existuje h3) */
.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 8px;
}

/* zoznam */
.sidebar ul {
    list-style: none;
    padding-left: 0;
}

/* položky */
.sidebar li {
    margin: 6px 0;
}

/* linky */
.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

/* hover efekt */
.sidebar a:hover {
    background: var(--bg-warm);
    color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.15);
}

/* aktívna kategória */
.sidebar a.active {
    background: var(--primary);
    color: #fff;
}
/* MOBILE SIDEBAR FIX (Hruškové menu) */
.overlay-bg {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    z-index:98;
}

.sidebar {
    transition:0.3s;
}

.gallery { width:85%;    padding: 20px;     background:rgb(255,249,230);}

.photo-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:15px;
}

.photo-item {
    background:white;
    border-radius:14px;
    overflow:hidden;
    cursor:pointer;
}

.img-wrapper {
    height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    padding:10px;
}

.img-wrapper img {
    max-width:100%;
    max-height:95%;
    object-fit:contain;
}

.zoom-icon {
    position:absolute;
    top:10px;
    right:10px;
    background:white;
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:2;
}

/* LIGHTBOX */
.lightbox {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.92);
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.lightbox img {
    max-width:85%;
    max-height:85vh;
    border:4px solid white;
}

.close-btn {
    position:absolute;
    top:20px;
    right:25px;
    font-size:50px;
    color:white;
    cursor:pointer;
}

.nav-btn {
    background:rgba(255,255,255,0.2);
    border:none;
    color:white;
    font-size:30px;
    width:50px;
    height:50px;
    border-radius:50%;
    cursor:pointer;
}
.info-bar {
    background: #fef0c7;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-border);
}
/* Hlavná hlavička */
.main-header {
    background: var(--white);
    padding: 10px 0;/* ZMENA TU: zmenšením tohto čísla sa header "stlačí" */
    border-bottom: 1px solid var(--light-border);
}

.header-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    gap: 20px;
}

.logo-img {
    max-width: 150px;
    height: auto;
}

.hero-text-center {
    text-align: center;
}
  .pagination-info {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    display: block;
    width: 100%;
    }
.hero-text-center h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 5px 0;
}
.nadpis{
text-align: center;color:#FF6B6B;    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 5px 0;
}
.hero-text-center h1 span { color: var(--primary); }
.hero-text-center p { font-size: 0.95rem; opacity: 0.8; }
.badge { color: var(--primary); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }

.header-right {
    text-align: right;
}
.container.header-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    gap: 20px;
}
.photo-info {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
       gap: 8px;              /* 👈 MEDZERA medzi textom a obálkou */
    padding-bottom: 8px; 
}

.send-icon {
    background-color: var(--primary); /* Červený krúžok */
    color: white !important; /* Biela obálka */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Aby to bol krúžok */
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.2);
}

.photo-item img {
    transition: transform 0.3s ease;
}

.photo-item .overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item .send-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.photo-item:hover .overlay {
    opacity: 1;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item:hover .send-icon {
    transform: scale(1.2) rotate(-10deg);
    background-color: gray;
}
/* --- EXTRA KOMPAKTNÉ STRÁNKOVANIE --- */
.pagination-wrapper {
    margin: 20px 0; /* Zmenšený vonkajší okraj */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px; /* Minimálne medzery */
    background: #fff;
    padding: 6px 12px; /* Tenší biely pásik */
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--light-border);
}

.page-num, .page-btn {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.8rem; /* Menšie písmo */
    width: 30px;  /* Zmenšený priemer krúžku z 40px na 30px */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.page-num.active {
    background-color: var(--primary);
    color: white;
}

.page-btn {
    width: auto;
    padding: 0 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    flex-wrap: wrap;   /* 👈 DÔLEŽITÉ */
}
/* obal pre PHP výstup (biela lišta) */
.pagination-container center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
/* samotné čísla / linky z PHP */
/* samotné prvky */
.pagination-container a,
.pagination-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--light-border);
    background: #fff;
    color: var(--secondary);
    white-space: nowrap; /* 👈 aby sa nelámali písmená */
}

/* aktívna stránka */
.pagination-container .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.scheduled-box {
    display: none;
}

.scheduled-box.show {
    display: block;
}
/* hover efekt */
.pagination-container a:hover {
    background: var(--bg-warm);
    color: var(--primary);
    transform: translateY(-2px);
}

/* INFO text (napr. "strana 2 z 10") */
.pagination-container .info {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #888;
}
/* --- UPRAVENÝ JEMNÝ FOOTER --- */
.footer-main {
    background-color: #FEF0C7; /* Jemnejšia, nekričiaca farba */
    color: var(--secondary);
    padding: 40px 0 0 0; /* Zmenšená výška */
    margin-top: 60px;
    border-top: 1px solid var(--light-border); /* Jemná linka namiesto hrubej */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px; /* Zmenšený priestor */
}

.footer-brand .logo {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.footer-brand .logo span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 280px;
}

.footer-links h4, 
.footer-social h4 {
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-social .social-icons {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Spodná línia pätičky - veľmi nenápadná */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    text-align: center;
    font-size: 0.75rem;
}

.footer-bottom p {
    opacity: 0.6;
}
/* WRAPPER */
.send-page-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ĽAVÁ STRANA - obrázok */
.postcard-preview-side {
    flex: 1;
    max-width: 45%;
}

.sticky-preview {
    position: relative;
    top: 20px;
}

.preview-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: #fff;
    padding: 10px;
}

.preview-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* PRAVÁ STRANA - formulár */
.form-side {
    flex: 1;
    max-width: 55%;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* GRID formulára */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* INPUTY */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--light-border);
    font-size: 0.9rem;
}

/* FULL WIDTH prvky */
.full-width {
    grid-column: span 2;
}

/* RADIO + CHECKBOX */
.radio-option,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

/* ČAS */
.time-selection {
    background: var(--bg-warm);
    padding: 15px;
    border-radius: 12px;
}

.time-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.time-unit {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* CAPTCHA */
.captcha-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    border-radius: 8px;
    border: 1px solid var(--light-border);
}

/* BUTTON */
.btn-send {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-send:hover {
    background: #ff5252;
    transform: translateY(-2px);
}
/* MOBILE FIX */
@media (max-width: 768px) {

    /* 🔥 ZRUŠENIE FLEX LAYOUTU */
    .container {
        display: block !important;
        padding: 10px;
    }

    /* HEADER */
    .container.header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-img {
        margin: 0 auto;
    }

    /* SIDEBAR */
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100%;
        z-index: 100;
        overflow-y: auto;
        background: #fff;
        border-radius: 0;
        padding: 20px;
    }

    .sidebar.active {
        left: 0;
    }

    .overlay-bg.active {
        display: block;
    }

    /* GALÉRIA */
    .gallery {
        width: 100%;
        padding: 10px;
    }

    /* PAGINATION */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 20px;
    }

    .page-num,
    .page-btn {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .page-btn {
        width: auto;
        padding: 0 10px;
        font-size: 0.7rem;
        border-radius: 18px;
    }

    .pagination-container {
        padding: 10px 5px;
    }

    .pagination-info {
        font-size: 0.7rem;
        margin-top: 6px;
        color: #888;
    }

    /* 🔥 FORMULÁR FIX */
    .send-page-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .postcard-preview-side,
    .form-side {
        width: 100%;
        max-width: 100%;
    }

    .form-side {
        padding: 15px;
        box-shadow: none;
    }

    .sticky-preview {
        position: relative;
        top: 0;
    }

    /* GRID NA 1 STĹPEC */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    /* INPUTY – dôležité pre mobil */
    .form-input {
        font-size: 16px; /* zabráni zoomu na iPhone */
    }

    /* ČAS */
    .time-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    /* CAPTCHA */
    .captcha-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}