/* =========================================================
   PREMENNÉ (FARBY)
   ========================================================= */
:root {
    --bg-dark: #121212;
    --bg-light: #1e1e1e;
    --border-color: #333;
    --text-primary: #e0e0e0;
    --text-secondary: #aaa;
    --accent-purple: #bb86fc;
    --accent-teal: #03dac6;
    --accent-green: #4CAF50;
    --accent-red: #f44336;
}

/* =========================================================
   ZÁKLADNÝ LAYOUT
   ========================================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.container-loc {
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    align-content: stretch;
    align-items: start;
    flex-wrap: wrap;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--bg-light);
    font-weight: bold;
    margin: 1rem;
}

/* =========================================================
   HLAVIČKA (HEADER)
   ========================================================= */
header {
    background-color: var(--bg-light);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    height: 60px;
    width: auto;
}

/* =========================================================
   HAMBURGER MENU + VÝSUVNÝ PANEL
   ========================================================= */
.hamburger-menu {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.slide-out-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: var(--bg-light);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.slide-out-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    transform: scale(1.1);
}

.slide-out-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 4rem;
}

.slide-out-menu ul li a {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem 0;
    display: block;
    transition: color 0.2s;
}

.slide-out-menu ul li a:hover {
    color: var(--text-primary);
}

body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .slide-out-menu { transform: translateX(0); }
body.menu-open .hamburger-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger-menu span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   "DOMOV" STICKY BUBLINA (home-sticky-pill)
   ========================================================= */
@keyframes bounceHome {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

body.at-bottom #home-sticky-pill {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

@media (max-width: 480px) {
    #home-sticky-pill { top: 75px; }
}

/* =========================================================
   HLAVIČKA INZERÁTU A GRID DETAILU
   ========================================================= */
main.container {
    margin-bottom: 3rem;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.ad-header h1 {
    color: var(--text-primary);
    margin: 0;
    font-size: 2.5em;
}

.ad-header .ad-number {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-family: monospace;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-column,
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    background-color: unset;
    padding: 1.5rem;
    border-radius: 10px;
    border: 0px solid var(--border-color);
}

.info-block h2 {
    margin-top: 0;
    color: var(--accent-purple);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.ad-text p {
    white-space: normal;
    word-wrap: break-word;
}

/* =========================================================
   GALÉRIA (HLAVNÝ OBRÁZOK + NÁHĽADY)
   ========================================================= */
.gallery .main-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    background-color: #000;
    display: block;
}

.sub-images {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sub-images .sub-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.sub-images .sub-image:hover {
    border-color: var(--accent-purple);
}

/* =========================================================
   PROFIL / ROZVRH
   ========================================================= */
.profile-item,
.work-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.profile-item:last-child,
.work-schedule-item:last-child {
    border-bottom: none;
}

.profile-item strong,
.work-schedule-item span:first-child {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.availability-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 50px;
    margin-top: 1.5rem;
}

.availability-block strong {
    font-size: 1.1em;
}

.availability-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.available { background-color: var(--accent-green); }
.unavailable { background-color: var(--accent-red); }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.contact-link:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.contact-link .contact-icon {
    width: 24px;
    height: 24px;
}

.phone-link {
    background-color: #7e3d87;
    color: var(--text-primary);
    font-size: 1.2em;
    fill: white;
}

.phone-link .contact-icon {
    fill: var(--text-primary);
}

.whatsapp-button {
    background-color: #184b2b;
    color: white;
    font-size: 1.1em;
}

.whatsapp-button .contact-icon {
    fill: white;
}

.location-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px;
    color: white;
}

.location-icon {
    width: 30px;
    height: 30px;
}

.ad-navigation-bottom {
    display: none;
}

/* =========================================================
   MODÁLNA GALÉRIA (FOTKY NA CELÚ OBRAZOVKU)
   ========================================================= */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease-out;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.gallery-modal-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close, .prev, .next, .photo-counter {
    z-index: 2002;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    user-select: none;
}

.next { right: 0; }
.prev { left: 0; }
.prev:hover, .next:hover { background-color: rgba(255, 255, 255, 0.2); }

.photo-counter {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2em;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

/* =========================================================
   TLAČIDLO "HORE" + PÄTIČKA
   ========================================================= */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: var(--accent-purple);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
}

footer {
    background-color: var(--bg-light);
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.8em;
    max-width: 1200px;
    margin: 0.5rem auto;
}

/* =========================================================
   SWIPE HINT BUBLINA (ĎALŠÍ / PREDCHÁDZAJÚCI INZERÁT)
   ========================================================= */
#swipe-hint-bubble {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 2000;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    pointer-events: none;
    opacity: 0;
}

#swipe-hint-bubble.visible {
    display: flex;
    animation: fadeInOut 6s forwards;
}

#swipe-hint-bubble svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

#scroll-hint-arrow {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s, top 0.3s, bottom 0.3s;
}

#scroll-hint-arrow.visible { display: flex; opacity: 1; }
#scroll-hint-arrow.up { top: 20px; }
#scroll-hint-arrow.down { bottom: 20px; }

#scroll-hint-arrow svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* =========================================================
   RESPONZÍVNE PRAVIDLÁ (DETAIL INZERÁTU)
   ========================================================= */
@media (min-width: 992px) {
    .detail-grid { grid-template-columns: 1.8fr 1fr; align-items: start; }
    .sidebar-column { position: sticky; top: 100px; }
}

@media (max-width: 768px) {
    .ad-header h1 { font-size: 1.8em; }
}

@media (max-width: 400px) {
    .gallery .main-image { width: 100%; }
    .sub-images { width: 100%; }
    .info-block { background-color: var(--bg-light); padding: 1.5rem; border-radius: 10px; border: 1px solid var(--border-color); }
}

/* =========================================================
   SEKCIA "ĎALŠIE DIEVČATÁ" (GALÉRIA KARIET NA KONCI STRÁNKY)
   ========================================================= */
.full-gallery-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-card {
    display: block;
    position: relative;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s;
    border: 1px solid #333;
}

.gallery-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-purple);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133%;
    background-color: #000;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.no-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #222;
}

.card-badges-bottom {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
}

.card-badges-top {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.city-badge {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.70rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.status-badge.online {
    background-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.status-badge.offline {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ccc;
    border: 1px solid #555;
}

.card-info {
    padding: 10px;
    text-align: center;
    background: linear-gradient(to top, #1a1a1a, #252525);
}

.card-name {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.card-age {
    color: var(--accent-purple);
    font-weight: normal;
    font-size: 0.95rem;
    margin-left: 5px;
}

@media (min-width: 500px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}

@media (min-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (min-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

/* =========================================================
   SPODNÁ "ĎALŠIE BABY" BUBLINA
   ========================================================= */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

body.scrolled-bottom #scroll-hint-bubble {
    display: none;
}

/* =========================================================
   BÝVALÉ INLINE ŠTÝLY (presunuté z HTML atribútov style="...")
   ========================================================= */

/* "Domov" sticky bublina */
#home-sticky-pill {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-decoration: none;
}

#home-sticky-pill .pill-content {
    background: #bb86fc;
    color: #000;
    padding: 0px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounceHome 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    font-size: small;
}

/* Skryté obrázky určené len na preload/SEO alt texty */
.visually-hidden-preload {
    display: none;
}

/* Banner "čaká na schválenie" */
.pending-approval-banner {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ffeeba;
    position: relative;
    z-index: 1001;
    font-weight: bold;
}

/* Nadpis a podnadpis inzerátu */
.ad-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ad-subtitle {
    font-size: 0.4em;
    color: var(--text-secondary);
    font-weight: normal;
}

/* Odkaz "Nahlásiť inzerát" */
.report-link-wrapper {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.report-link {
    color: #555;
    font-size: 0.85em;
    text-decoration: underline;
}

/* Modálne okno nahlásenia inzerátu */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #333;
}

.modal-title {
    color: #e0e0e0;
    margin-top: 0;
}

.modal-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
}

.modal-textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
}

.btn-primary-modal {
    background: #bb86fc;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cancel-modal {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

/* Toast správa po úspešnom nahlásení */
.success-toast {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    align-items: center;
    gap: 10px;
}

/* Spodná bublina "Ďalšie baby" */
#scroll-hint-bubble {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #bb86fc;
    color: #000;
    padding: 0px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}
