/* =========================================================
   ROZLOŽENIE STRÁNKY (doplnok k spoločnému body v common.css)
   ========================================================= */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    flex-grow: 1;
}

/* =========================================================
   HLAVIČKA (HEADER) + LOGO
   ========================================================= */
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: flex-end;
    align-items: center;
    padding: 0;
    position: relative;
    height: 70px;
}

.logo {
    position: absolute;
    left: 0;
    top: 5px;
    height: 100px;
    width: auto;
    z-index: 200;
}

@media (max-width: 480px) {
    .logo { height: 75px; }
}

/* =========================================================
   PREPÍNAČ JAZYKOV
   ========================================================= */
.lang-switcher {
    display: flex;
    gap: 12px;
    margin-right: 20px;
    align-items: center;
    z-index: 1000;
}

.lang-switcher a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.lang-switcher img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lang-switcher a.inactive {
    opacity: 0.4;
    filter: grayscale(100%);
}

.lang-switcher a.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--accent-purple);
}

.lang-switcher a:hover {
    opacity: 0.8;
    filter: grayscale(20%);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .lang-switcher { margin-right: 15px; gap: 8px; }
    .lang-switcher img { width: 24px; height: 17px; }
}

/* =========================================================
   HLAVNÝ OBSAH / BANNER / TLAČIDLO FILTRA
   ========================================================= */
main {
    text-align: center;
}

main h2 {
    color: var(--text-primary);
}

.custom-banner {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-teal));
    color: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem auto;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.custom-banner p {
    margin: 0.2rem 0;
}

.filter-button {
    background-color: var(--accent-purple);
    color: var(--bg-dark);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 2rem;
}

.filter-button:hover {
    transform: scale(1.05);
}

/* Hlavný H1 nadpis stránky (predtým inline style) */
.page-heading {
    color: var(--accent-purple);
    font-size: 1.2rem;
    margin: 20px 0;
}

/* =========================================================
   GALÉRIA A KARTY
   ========================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-content: center;
}

.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);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.15);
}

.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;
}

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

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

.card-badges-top-left {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

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

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

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

.status-badge.offline {
    background-color: #832350;
    color: #fff;
    border: 1px solid #555;
}

.status-badge.busy {
    background-color: #ad1519;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
    color: #fff;
}

.top-badge {
    background-color: #b30909;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.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;
    line-height: 1.2;
}

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

.card-updated {
    font-size: 0.75rem;
    color: #777;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Hláška, keď nie sú žiadne inzeráty (predtým inline style) */
.no-ads-message {
    text-align: center;
    grid-column: 1 / -1;
    color: #888;
}

@media (min-width: 550px) {
    .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); }
}

/* =========================================================
   SEO TEXTOVÁ SEKCIA (predtým inline štýly)
   ========================================================= */
.seo-content-section {
    padding: 0px 5%;
    color: #888;
    font-size: 0.9em;
    line-height: 1.6;
    border-top: 0px solid #333;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.seo-content-section h2 {
    color: #bb86fc;
    font-size: 1.3em;
    margin-top: 20px;
    text-align: center;
}

/* =========================================================
   SEKCIA "NAPOSLEDY VIDENÉ" (predtým inline štýly)
   ========================================================= */
.recently-viewed-section {
    margin-top: 60px;
    margin-bottom: 20px;
    border-top: 1px solid #333;
    padding-top: 40px;
    text-align: center;
}

.recently-viewed-section h2 {
    color: #bb86fc;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* =========================================================
   PÄTIČKA (FOOTER)
   ========================================================= */
footer {
    background-color: var(--bg-light);
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

/* =========================================================
   MODÁLNE OKNO (FILTER)
   ========================================================= */
.modal-backdrop {
    display: none;
    position: fixed;
    z-index: 1040;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: none;
}

.btn-success { background-color: #176344; color: white; }
.btn-danger  { background-color: #AD1519; color: white; }

.filter-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-options a {
    padding: 6px 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.filter-options a:hover {
    background-color: var(--accent-purple);
    color: var(--bg-dark);
}

.filter-options a.active {
    background-color: var(--accent-purple);
    color: var(--bg-dark);
    font-weight: bold;
}

.filter-reset-btn {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
}

/* =========================================================
   ANIMÁCIE
   ========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
