/* ===================================================== RESET & ROOT ===================================================== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root { --header-h: 50px; --red: #db1010; --bg-dark: #000; --panel: rgba(0, 0, 0, 0.72); --panel-border: rgba(255, 255, 255, 0.18); --panel-soft: rgba(255, 255, 255, 0.04); --text-muted: #bbb; --badge-bg: #db1010; }

html, body { min-height: 100%; max-width: 100vw; overflow-x: hidden; font-family: 'Open Sans', sans-serif; color: #fff; background: url('../images/bg_page.jpg') center / cover fixed no-repeat; }

/* ===================================================== LAYOUT & CONTENT WRAPPERS ===================================================== */ .page { max-width: 1200px; margin: 2rem auto; background: rgba(0, 0, 0, 0.35); border-radius: 18px; }

.main { background: #13265c; color: #fff; padding: 1rem; }

.main h1, .page-head h1, .page-head h2, .content-box h2, .content-box h3 { color: var(--red); }

.page-section, .page-section-narrow { width: 100%; }

.page-section-narrow { max-width: 900px; margin: 0 auto; }

.page-head { margin-bottom: 1.2rem; }

.page-head p { color: var(--text-muted); font-size: 0.95rem; }

.content-box { max-width: 900px; margin: 0 auto 1rem; padding: 1.4rem 1.8rem; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; }

.content-box p, .content-box li { font-size: 0.98rem; line-height: 1.75; }

.content-box ul, .content-box ol { margin: 0 0 1rem 1.2rem; }

/* ===================================================== HEADER & NAVIGATION ===================================================== */ .site-header { position: fixed; inset: 0 auto auto 0; width: 100%; height: var(--header-h); background: var(--bg-dark); z-index: 4000; display: flex; align-items: center; }

.site-header-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 1.2rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

.nav-toggle span { width: 26px; height: 3px; margin: 5px 0; background: #fff; display: block; transition: 0.3s; }

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }

.nav-toggle.active span:nth-child(2) { opacity: 0; }

.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-nav { display: flex; align-items: center; gap: 1.2rem; }

.desktop-nav, .desktop-nav .nav-auth, .mobile-nav, .mobile-nav .nav-auth { display: flex; align-items: center; gap: 1.2rem; }

.desktop-nav a, .mobile-nav a, .header-user-logged a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }

.desktop-nav a:hover, .mobile-nav a:hover, .header-user-logged a:hover { color: var(--red); }

.desktop-nav a.active, .mobile-nav a.active { color: var(--red); }

.desktop-nav .nav-auth { gap: 1.2rem; padding-left: 0.9rem; border-left: 2px solid #b30000; }

.mobile-nav { display: none; flex-direction: column; background: rgba(0, 0, 0, 0.95); padding: 1rem; }

.mobile-nav .nav-auth { flex-direction: column; gap: 0.6rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 2px solid #b30000; }

.header-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.header-login-btn, .login-btn, .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.45rem 0.75rem; font-size: 0.85rem; font-weight: 600; color: #fff; background: #ed0909; border: 1px solid #444; border-radius: 8px; text-decoration: none; cursor: pointer; transition: all 0.2s ease; }

.login-btn:hover, .btn-primary:hover, .header-login-btn:hover { background: #333; border-color: var(--red); color: var(--red); }

.header-user-logged { display: flex; align-items: center; gap: 12px; }

.header-user-logged img { width: 33px; height: 33px; border-radius: 50%; object-fit: cover; border: 3px solid #39d353; }

.btn-primary { border-radius: 999px; padding: 10px 18px; background: var(--bg-dark); border-width: 2px; }

.btn-primary:hover { color: var(--red); border-color: var(--red); }

/* Mobile header adjustments */ @media (max-width: 768px) { :root { --header-h: 64px; }

.site-header-inner { padding: 0 14px; }

.nav-toggle { display: block; }

.nav-toggle span { margin: 6px 0; }

.header-nav, .desktop-nav { display: none; }

.mobile-nav.open { display: flex; position: fixed; top: var(--header-h); left: 0; width: 70%; height: calc(100vh - var(--header-h)); border-radius: 0; z-index: 2999; }

.page { margin: 0 auto; padding-top: var(--header-h); border-radius: 0; } }

@media (min-width: 769px) { .page { margin-top: var(--header-h); }

.main { padding: 1.4rem; }

.header-login-btn { padding: 0.7rem 1.2rem; border-radius: 10px; } }

/* ===================================================== HERO ===================================================== */ .hero { position: relative; height: 32vh; min-height: 220px; overflow: hidden; }

.hero-slides, .hero-slide, .hero-overlay, .hero-home-link { position: absolute; inset: 0; }

.hero-slides { z-index: 0; }

.hero-slide { background-repeat: no-repeat; background-position: center 35%; background-size: cover; opacity: 0; transition: opacity 2s ease; }

.hero-slide.active { opacity: 1; }

.hero-home-link { z-index: 2; display: block; pointer-events: auto; }

.hero-overlay { z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 0 20px 30px; background: rgba(0, 0, 0, 0.45); text-align: left; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); pointer-events: none; }

.hero-overlay .logo-link, .hero-overlay .slogan { pointer-events: auto; position: relative; z-index: 4; }

.logo { width: 100%; max-width: 90px; margin-bottom: 0.6rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }

.slogan { font-size: 0.8rem; letter-spacing: 0.12em; margin-bottom: 0.15rem; }

@media (min-width: 769px) { .hero { height: 60vh; }

.hero-slide { background-position: center 30%; }

.hero-overlay { justify-content: flex-start; padding: 45px 0 0 45px; }

.logo { max-width: 145px; }

.slogan { font-size: 0.85rem; margin-bottom: 0.3rem; } }

/* ===================================================== HOME HELPERS ===================================================== */ .image-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: center; }

.image-grid img { width: 100%; border-radius: 10px; display: block; }

.home-events { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 12px; }

.ig-grid { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.ig-grid a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.35); transition: transform 0.12s ease, border-color 0.2s ease; }

.ig-grid a:hover { transform: translateY(-1px); border-color: rgba(219, 16, 16, 0.45); }

.ig-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ===================================================== AUTH POPUP ===================================================== */ .auth-popup { position: fixed; inset: 0; z-index: 5000; display: none; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.8); }

.auth-popup.open { display: flex; }

.auth-box { width: 90%; max-width: 420px; padding: 2rem; background: #111; border-radius: 14px; position: relative; }

.close-auth { position: absolute; top: 0.8rem; right: 0.8rem; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

.auth-tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; }

.auth-tab { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; color: #aaa; cursor: pointer; }

.auth-tab.active { color: #fff; border-color: var(--red); }

/* login / register panely */ .auth-form { display: none; flex-direction: column; gap: 1rem; }

.auth-form.active { display: flex !important; }

/* skutečná uvnitř auth-form */ .auth-form form { display: flex; flex-direction: column; gap: 1rem; }

/* zapomenuté heslo apod. */ .auth-box form:not(.auth-form) { display: flex; flex-direction: column; gap: 1rem; }

.auth-form input, .auth-form textarea, .auth-form form input, .auth-form form textarea, .auth-box form input, .auth-box form textarea, .admin-form input, .admin-form select, #forumContent, .chat-search, .profiles-filters input[type='text'] { width: 100%; padding: 0.6rem 0.75rem; border-radius: 10px; border: none; font: inherit; background: #fff; color: #000; }

.auth-label { font-size: 0.8rem; color: #ddd; }

.birthdate-hint, .password-hint, .auth-box .form-hint { margin-top: 6px; font-size: 0.75rem; line-height: 1.35; color: var(--text-muted); }

.auth-form button, .auth-form form button, .auth-box form button, #forumForm button, .profile-btn, .profile-btn-danger, .profile-chat-btn, #sendBtn { width: 100%; border: none; border-radius: 10px; background: var(--red); color: #fff; font-weight: 600; padding: 10px 22px; cursor: pointer; transition: all 0.3s ease; }

.auth-form button:hover, .auth-form form button:hover, .auth-box form button:hover, #forumForm button:hover, .profile-btn:hover, .profile-btn-danger:hover, .profile-chat-btn:hover, #sendBtn:hover { background: #2b2b2b; color: var(--red); }

.auth-box form button { margin-top: 0.8rem; }

/* heslová pole + ikonka oka */ .password-row, .password-row-popup, #loginPasswordWrap { position: relative; width: 100%; }

.password-row input, .password-row-popup input, #loginPasswordWrap input, .profile-password .password-row input { width: 100%; padding: 0.75rem 2.8rem 0.75rem 0.9rem; border-radius: 10px; border: none; background: #fff; color: #000; font-size: 0.95rem; }

.password-row .toggle-password, .password-row-popup .toggle-password, #loginPasswordWrap .toggle-password, .profile-password .toggle-password { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 26px; height: 26px; display: inline-flex !important; align-items: center; justify-content: center; background: transparent !important; border: none !important; padding: 0 !important; margin: 0; cursor: pointer; color: #666 !important; z-index: 5; }

.password-row .toggle-password:hover, .password-row-popup .toggle-password:hover, #loginPasswordWrap .toggle-password:hover, .profile-password .toggle-password:hover { color: #111 !important; }

.password-row .toggle-password svg, .password-row-popup .toggle-password svg, #loginPasswordWrap .toggle-password svg, .profile-password .toggle-password svg, .password-row .toggle-password i, .password-row-popup .toggle-password i, #loginPasswordWrap .toggle-password i, .profile-password .toggle-password i { width: 18px; height: 18px; pointer-events: none; display: block; }

.forgot-password-wrap { margin-top: 12px; text-align: center; line-height: 1.5; }

.forgot-password-link { display: inline-block; color: #bbb; font-size: 0.9rem; text-decoration: none; transition: color 0.2s ease; }

.forgot-password-link:hover { color: var(--red); text-decoration: underline; }

/* =====================================================
FORUM & BAZAAR (Sjednocený layout)
===================================================== */

/* Základní mřížka pro DESKTOP (2 sloupce) */
.forum {
 padding: 0 1rem 2rem;
 color: #fff;
 max-width: 1200px !important; /* Širší pro dva sloupce */
 margin: 0 auto;
 display: grid;
 grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); /* Vlevo 2/3, Vpravo 1/3 */
 gap: 28px;
 align-items: flex-start;
}

/* Hlavička fóra (Roztažená přes celou šířku) */
.forum-header {
 grid-column: 1 / -1;
 text-align: center;
 margin-bottom: 2rem;
}

#forumTitle {
 font-size: 2.2rem;
 margin-bottom: 0.5rem;
 color: #fff;
 text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

#forumDescription {
 color: #aaa;
 font-size: 1rem;
 margin-bottom: 1.5rem;
}

.forum-divider {
 height: 1px;
 background: rgba(255, 255, 255, 0.1);
 margin: 1.5rem auto;
 width: 80%;
}

.forum-tabs {
 display: flex;
 justify-content: center;
 flex-wrap: wrap;
 gap: 12px;
}

.forum-tab {
 background: transparent;
 color: #ccc;
 border: 1px solid #555;
 padding: 8px 20px;
 border-radius: 20px;
 font-weight: 600;
 font-size: 0.95rem;
 cursor: pointer;
 transition: all 0.2s ease;
}

.forum-tab:hover {
 border-color: var(--red);
 color: #fff;
}

.forum-tab.active {
 background: var(--red);
 border-color: var(--red);
 color: #fff;
 box-shadow: 0 4px 10px rgba(219, 16, 16, 0.3);
}

/* Hlavička fóra na DESKTOPU (Zarovnání vlevo/vpravo) */
@media (min-width: 769px) {
 .forum-header {
   display: grid;
   grid-template-columns: 1fr auto;
   grid-template-rows: auto auto;
   align-items: center;
   text-align: left;
   margin-bottom: 2.5rem;
 }
 
 #forumTitle { grid-column: 1; grid-row: 1; margin-bottom: 0.2rem; }
 #forumDescription { grid-column: 1; grid-row: 2; margin-bottom: 0; }
 .forum-tabs { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
 .forum-divider { display: none; }
}

/* =====================================================
Levý sloupec: Seznam příspěvků a inzerátů
===================================================== */
.forum-box {
 grid-column: 1;
 background: transparent;
 border: none;
 padding: 0;
 margin-bottom: 0;
}

.forum-posts {
 display: flex;
 flex-direction: column;
 gap: 16px;
}

/* Jednotlivý příspěvek (Karta) */
.forum-post {
 background: rgba(255, 255, 255, 0.04);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 12px;
 padding: 18px 20px;
 transition: transform 0.2s ease, border-color 0.2s ease;
}

.forum-post:hover {
 background: rgba(255, 255, 255, 0.06);
 border-color: rgba(255, 255, 255, 0.2);
}

.forum-post.mine {
 border-left: 4px solid var(--red);
 background: rgba(219, 16, 16, 0.05);
}

.forum-post-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 12px;
 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
 padding-bottom: 10px;
}

.forum-post-author {
 color: var(--red);
 font-weight: 700;
 font-size: 1.05rem;
}

.forum-post-date {
 font-size: 0.8rem;
 color: #888;
}

.forum-post-content {
 color: #e2e8f0;
 line-height: 1.6;
 white-space: pre-wrap;
 font-size: 0.95rem;
}

.forum-post-actions {
 margin-top: 15px;
 text-align: right;
}

.forum-delete-btn {
 background: transparent;
 border: 1px solid #e74c3c;
 color: #e74c3c;
 padding: 6px 14px;
 border-radius: 15px;
 font-size: 0.8rem;
 font-weight: bold;
 cursor: pointer;
 transition: all 0.2s;
}

.forum-delete-btn:hover {
 background: #e74c3c;
 color: #fff;
}

.forum-user-link {
 cursor: pointer;
 color: var(--red);
}

.forum-user-link:hover {
 color: var(--red);
 text-decoration: underline;
}

/* =====================================================
Pravý sloupec: Formulář pro vkládání (Sticky na PC)
===================================================== */
#forumComposer, #bazaarComposer {
 grid-column: 2;
 position: sticky;
 top: 80px; /* Drží okno ukotvené při scrollování stránkou dolů */
}

#forumComposer {
 background: rgba(0, 0, 0, 0.25);
 border: 1px solid rgba(255, 255, 255, 0.1);
 padding: 20px;
 border-radius: 12px;
}

#forumForm {
 display: flex;
 flex-direction: column;
 gap: 12px;
}

#forumContent {
 width: 100%;
 min-height: 100px;
 padding: 15px;
 border-radius: 8px;
 border: 1px solid #444;
 background: #111;
 color: #fff;
 font-family: inherit;
 font-size: 0.95rem;
 resize: vertical;
 line-height: 1.5;
}

#forumContent:focus {
 outline: none;
 border-color: var(--red);
}

#forumForm button {
 align-self: flex-end;
 padding: 10px 24px;
 background: var(--red);
 color: #fff;
 border: none;
 border-radius: 20px;
 font-weight: 600;
 font-size: 1rem;
 cursor: pointer;
 transition: background 0.2s;
}

#forumForm button:hover {
 background: #c62828;
}

.bazaar-composer-box {
 padding: 16px;
 border-radius: 14px;
 background: var(--panel-soft);
 display: grid;
 gap: 14px;
}

.bazaar-form {
 display: grid;
 gap: 12px;
}

/* =====================================================
Styly inzerátů Bazaru
===================================================== */
.bazaar-detail {
 margin-top: 1rem;
}

.bazaar-card {
 display: grid;
 grid-template-columns: 120px 1fr;
 align-items: center;
 gap: 16px;
 border-radius: 16px;
 background: var(--panel-soft);
 border: 1px solid rgba(255, 255, 255, 0.14);
 padding: 16px;
 cursor: pointer;
}

.bazaar-thumb-wrap {
 width: 120px;
 height: 120px;
 border-radius: 12px;
 overflow: hidden;
 background: rgba(255, 255, 255, 0.06);
}

.bazaar-thumb {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.bazaar-card-body {
 display: grid;
 gap: 8px;
}

.bazaar-card-top {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 gap: 10px;
}

.bazaar-title {
 font-size: 1.05rem;
}

.bazaar-price {
 font-weight: 700;
 white-space: nowrap;
}

.bazaar-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 opacity: 0.9;
}

.bazaar-seller-row {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 12px;
}

.bazaar-avatar {
 width: 28px;
 height: 28px;
 border-radius: 50%;
 object-fit: cover;
}

.bazaar-detail-card {
 margin-top: 14px;
 padding: 16px;
 border-radius: 14px;
 background: var(--panel-soft);
 display: grid;
 gap: 16px;
}

.bazaar-detail-gallery {
 display: grid;
 gap: 10px;
 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bazaar-detail-gallery img {
 width: 100%;
 aspect-ratio: 1 / 1;
 object-fit: cover;
 border-radius: 12px;
}

/* Akční tlačítka v Bazaru (Upravit / Smazat) */
.bazaar-actions {
display: flex;
gap: 10px;
margin-top: 15px;
flex-wrap: wrap;
}

/* Společný základ pro obě tlačítka (BEZ NICKU AUTORA) */
.bazaar-edit-btn,
.bazaar-delete-btn,
.forum-delete-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 14px;
border-radius: 15px;
font-size: 0.85rem;
font-weight: bold;
text-decoration: none !important;
cursor: pointer;
transition: all 0.2s ease;
background: transparent;
}

/* Upravit (Modrá) */
.bazaar-edit-btn {
border: 1px solid #3498db;
color: #3498db !important;
}

.bazaar-edit-btn:hover {
background: #3498db;
color: #fff !important;
}

/* Smazat (Červená) */
.bazaar-delete-btn,
.forum-delete-btn {
border: 1px solid #e53935;
color: #e53935 !important;
}

.bazaar-delete-btn:hover,
.forum-delete-btn:hover {
background: #e53935;
color: #fff !important;
}

/* =====================================================
MOBILNÍ ZOBRAZENÍ (Vše pod sebe + Rolovací okno)
===================================================== */
@media (max-width: 980px) {
 .forum {
   display: flex;
   flex-direction: column;
   max-width: 900px !important;
 }

 /* Scrollovací okénko pro příspěvky i inzeráty na mobilu */
 .forum-box {
   max-height: 60vh;
   overflow-y: auto;
   background: #1e1e1e;
   border: 1px solid #333;
   border-radius: 12px;
   padding: 12px;
   margin-bottom: 1.5rem;
 }

 /* Zrušení lepícího efektu pro formulář na mobilu - zařadí se dospod */
 #forumComposer, #bazaarComposer {
   position: static;
   width: 100%;
   margin-top: 0;
 }
}

@media (max-width: 700px) {
 .bazaar-card {
   grid-template-columns: 1fr;
 }

 .bazaar-thumb-wrap {
   width: 100%;
   height: 220px;
 }

 .bazaar-seller-row {
   flex-direction: column;
   align-items: flex-start;
 }
}

/* ===================================================== PROFILE – COMMON ===================================================== */ .profile-wrapper { max-width: 960px; margin: 0 auto; width: 100%; }

.profile-box, .profile-box-dark { background: rgba(0, 0, 0, 0.25); border-radius: 14px; padding: 1.5rem 2rem 2rem; }

.profile-row, .profile-data-row { display: flex; justify-content: space-between; gap: 12px; padding: 0.4rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; }

.profile-row:last-child, .profile-data-row:last-child { border-bottom: none; }

.profile-label, .data-label { color: #aaa; font-size: 0.9rem; }

.data-value { color: #fff; font-weight: 600; font-size: 0.95rem; }

.profile-btn { margin-top: 1.4rem; }

.profile-btn-danger { background: #7a0000; }

.profile-msg { margin-top: 0.6rem; font-size: 0.85rem; min-height: 1.2em; }

.profile-avatar, .chat-avatar, .profile-card-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; display: block; background: rgba(255, 255, 255, 0.08); }

.profile-avatar-ring, .board-avatar-ring, .profile-card-avatar-ring, .user-avatar-ring { width: 86px; height: 86px; min-width: 86px; border-radius: 50%; padding: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }

.profile-avatar-ring.is-online, .board-avatar-ring.is-online, .profile-card-avatar-ring.is-online, .user-avatar-ring.is-online { background: #39d353; }

.profile-avatar-ring.is-offline, .board-avatar-ring.is-offline, .profile-card-avatar-ring.is-offline, .user-avatar-ring.is-offline { background: #c62828; }

.profile-avatar-ring img, .board-avatar, .profile-card-avatar, .user-avatar-ring img, #userAvatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.profile-name-link, .board-name-link, .profile-name, .chat-name, .profile-name-text { color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; }

.profile-name-link:hover, .board-name-link:hover, .chat-name:hover { color: var(--red); text-decoration: underline; }

.profile-check, .profiles-check, .admin-check { display: flex !important; align-items: center; gap: 10px !important; }

.profile-media-block { display: flex; flex-wrap: wrap; gap: 14px; }

/* Oprava galerie pod avatarem v profilech */
.profile-gallery-grid {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 12px;
align-items: stretch;
justify-items: center;
width: 100%;
}

.gallery-tile {
width: 100px !important;
height: 100px !important;
aspect-ratio: 1 / 1 !important;
border-radius: 12px !important;
margin: 0 !important;
flex-shrink: 0 !important;
}

@media (min-width: 769px) {
/* Na desktopu klidně vedle sebe do jednoho sloupce, pokud je to levý panel */
.profile-left-column .profile-gallery-grid {
  grid-template-columns: 1fr !important; 
  justify-items: center;
}
}

.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

.gallery-tile-add { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border: 1px dashed rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }

.gallery-delete-btn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; }

.gallery-lightbox { position: fixed; inset: 0; z-index: 6000; }

.gallery-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); }

.gallery-lightbox-box { position: relative; z-index: 2; width: min(90vw, 900px); height: min(80vh, 700px); margin: 5vh auto; display: flex; align-items: center; justify-content: center; }

.gallery-lightbox-box img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }

.gallery-lightbox-close, .gallery-lightbox-arrow { position: absolute; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; }

.gallery-lightbox-close { top: -8px; right: 0; width: 40px; height: 40px; font-size: 1.5rem; }

.gallery-lightbox-arrow { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 1.5rem; }

.gallery-lightbox-arrow.left { left: 8px; }

.gallery-lightbox-arrow.right { right: 8px; }

.profile-social-links { 
display: grid; 
grid-template-columns: repeat(3, minmax(0, 1fr)); 
gap: 12px; 
margin-top: 35px; 
}

/* STYL TLAČÍTEK SOCIÁLNÍCH SÍTÍ - Černý základ */
.profile-social-links a,
.profile-social-links button,
.profile-social-links .profile-btn { 
display: inline-flex; 
align-items: center; 
justify-content: center; 
border-radius: 20px; 
padding: 8px 22px; 
text-decoration: none !important; 
font-weight: 600; 
background: #000000; /* Černé pozadí */
color: #ffffff !important; 
border: 1px solid #333333; /* Jemná tmavá linka v základu, aby tlačítko při hoveru neposkočilo */
text-align: center;
transition: all 0.2s ease-in-out;
cursor: pointer;
}

/* HOVER EFEKT - Červená linka */
.profile-social-links a:hover,
.profile-social-links button:hover,
.profile-social-links .profile-btn:hover { 
border-color: #e53935; /* Červená linka při najetí */
box-shadow: 0 0 8px rgba(229, 57, 53, 0.2); /* Volitelný jemný červený přesvit (můžeš smazat, pokud nechceš) */
}

/* mobil – 2 sloupce */ 
@media (max-width: 768px) { 
.profile-social-links { 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  justify-items: stretch; 
} 
}

#editAboutMe, #editLookingFor { 
width: 100%; 
margin-top: 8px; 
padding: 12px; 
border-radius: 6px; 
border: 1px solid rgba(150, 150, 150, 0.4); 
background: rgba(255, 255, 255, 0.05); 
color: inherit; 
font: inherit; 
line-height: 1.5; 
resize: vertical; 
transition: border-color 0.2s ease-in-out; 
box-sizing: border-box; /* Zajišťuje, že se pole nevylomí z rámečku */
}

#editAboutMe:focus, #editLookingFor:focus { 
outline: none; 
border-color: #007bff; 
background: rgba(255, 255, 255, 0.1); 
}

/* ===================================================== PROFILE – COVER ===================================================== */ .profile-cover-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; padding: 32px 28px; min-height: 280px; margin-bottom: 20px; border-radius: 12px; background-color: #1e293b; background-size: cover; background-position: center; }

.cover-content { display: flex; align-items: center; gap: 15px; }

/* Obal pro avatar (Zabrání odjetí a zdeformování) */ .cover-avatar-area { width: 160px !important; height: 160px !important; min-width: 160px !important; min-height: 160px !important; flex-shrink: 0 !important; padding: 0 !important; margin: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; border: none !important; background: transparent !important; }

.cover-avatar-area .profile-avatar { width: 100% !important; height: 100% !important; border-radius: 50% !important; border: 4px solid #2b3245 !important; background-color: #1e2532 !important; object-fit: cover !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important; margin: 0 !important; display: block !important; }

.cover-avatar-area.is-online .profile-avatar { border-color: #2ecc71 !important; }

.cover-avatar-area.is-offline .profile-avatar { border-color: #e74c3c !important; }

.cover-info-area h2 { margin: 0 0 5px; font-size: 2.5rem; font-weight: 700; color: #fff; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }

.cover-info-area .user-online-status { color: #94a3b8; font-size: 0.95rem; }

.cover-actions-area .start-chat-btn { background-color: #e53935 !important; color: #fff !important; border-radius: 25px; padding: 10px 25px; font-weight: bold; font-size: 1rem; border: none; box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3); }

/* ===================================================== Moje úpravy profilu (Vlastní profil) ===================================================== */

/* ZÁKLAD PRO MOBIL (Vše na střed) */ #myCoverBox { margin: 0 auto 20px auto; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }

#myCoverBox .cover-content { flex-direction: column; align-items: center; gap: 12px; }

#myCoverBox .cover-avatar-area, #myCoverBox .cover-info-area { display: flex; flex-direction: column; align-items: center; }

#myCoverBox .cover-info-area h2 { margin: 14px 0 0; font-size: 2.2rem; }

#myCoverBox .user-online-status { display: none; }

#myCoverBox .cover-actions-area { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }

/* ZÁKLAD PRO DESKTOP (Avatar vlevo, tlačítka vpravo) */
@media (min-width: 769px) { 
#myCoverBox { 
  flex-direction: row; 
  align-items: center; /* Drží to hezky uprostřed na výšku */
  justify-content: space-between; 
  text-align: left; 
}

#myCoverBox .cover-content { 
  flex-direction: row; 
  max-width: 60%; 
  margin-right: auto; 
}

#myCoverBox .cover-content > div { 
  flex-direction: row !important; /* Dává avatar a jméno vedle sebe */ 
  align-items: center; 
  gap: 18px; 
}

#myCoverBox .cover-info-area { 
  align-items: flex-start; 
}

#myCoverBox .cover-actions-area { 
  align-items: flex-end; 
  margin-left: auto; 
} 
}

/* Tělo profilu */ .profile-body-grid { display: grid; grid-template-columns: 130px 1fr; gap: 20px; }

.profile-box-dark { background: #161d31; color: #cbd5e1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }

#rowUserAboutMe, #rowUserLookingFor { flex-direction: column !important; align-items: flex-start !important; margin-top: 25px; }

.text-section-title { font-weight: bold; font-size: 1.05rem; color: #fff; margin-bottom: 8px; }

.text-section-content { color: #cbd5e1; line-height: 1.6; }

.profile-back-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }

.profile-back-link:hover { color: var(--red); text-decoration: underline; }

/* Galerie – desktop sloupec, mobil 2×2 */ .gallery-vertical { display: flex; flex-direction: column; align-items: center; gap: 15px; }

.gallery-vertical .gallery-tile { width: 120px !important; height: 120px !important; aspect-ratio: 1 / 1 !important; margin: 0 auto !important; }

/* ===================================================== PROFILES & CHAT LISTS ===================================================== */ .profiles-header { margin-bottom: 20px; }

.profiles-header h1 { margin: 0 0 6px; }

.profiles-filters { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }

.profiles-section { margin-bottom: 28px; }

.profiles-section + .profiles-section { margin-top: 34px; }

.profiles-list, .chat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.profile-card-main, .chat-card-main, .board-card-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }

.profile-card-right, .board-card-actions, .chat-card-actions { margin-left: auto; display: flex; gap: 8px; flex-direction: column; }

.profile-status.online, .status-online { color: #39d353; font-weight: 600; }

.profile-status.offline, .status-offline { color: #bbb; }

.profile-offline-badge { color: #bbb; font-weight: 600; }

.profile-online-badge { color: #39d353; font-weight: 600; }

.profiles-empty, .chat-empty { grid-column: 1 / -1; padding: 22px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.22); text-align: center; opacity: 0.8; }

.chat-card { min-height: 120px; background: transparent; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.18); }

.profile-chat-btn, .chat-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 40px; padding: 0 16px; border-radius: 999px; background: #111; color: #fff; }

.chat-btn:hover { background: #333; }

.chat-row, .chat-card { position: relative; }

.chat-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 10px; background: #1f1f1f; border-bottom: 1px solid #444; cursor: pointer; transition: background 0.2s; }

.chat-row:hover { background: #222; }

.chat-row-name { font-size: 16px; font-weight: 600; color: #fff; }

.chat-row-badge, .chat-badge, .chat-unread-badge { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--badge-bg); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; display: inline-flex; align-items: center; justify-content: center; }

.chat-unread-badge { min-width: 22px; height: 22px; padding: 0 6px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }

/* chat detail */ .chat { width: 100%; max-width: 1000px; margin: 20px auto; display: flex; flex-direction: column; height: 70vh; }

.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: #000; }

.chat-with { flex: 1; }

.chat-back { margin-left: auto; border: 2px solid var(--red); background: transparent; color: #fff; border-radius: 20px; padding: 6px 12px; font-weight: 600; cursor: pointer; }

.chat-back:hover { background: #222; color: var(--red); }

.chat-box { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; border-radius: 12px; border: 1px solid #333; background: #1e1e1e; display: flex; flex-direction: column; gap: 10px; }

.chat-message { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; position: relative; }

.chat-message.me { align-self: flex-end; background: var(--red); border-bottom-right-radius: 4px; }

.chat-message.other { align-self: flex-start; background: #333; border-bottom-left-radius: 4px; }

.chat-time { margin-top: 4px; font-size: 11px; opacity: 0.7; text-align: right; }

.chat-delete { position: absolute; top: 4px; right: 8px; font-size: 12px; cursor: pointer; display: none; }

.chat-message.me:hover .chat-delete { display: block; }

.chat-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; background: #2a2a2a; border-top: 1px solid #444; padding: 12px; box-sizing: border-box; }

#chatInput { width: 100%; max-width: 100%; resize: vertical; /* ať jde zvětšit výšku */ min-height: 52px; }

#sendBtn { align-self: flex-end; width: auto; padding: 8px 20px; }

.chat-day-separator { position: relative; text-align: center; margin: 15px 0; font-size: 13px; color: #aaa; }

.chat-day-separator::before, .chat-day-separator::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: #444; }

.chat-day-separator::before { left: 0; }

.chat-day-separator::after { right: 0; }

.chat-page-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; }

.chat-search-wrap { margin-left: auto; }

.chat-search { height: 44px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #000; }

.chat-search:focus { outline: none; border-color: #999; }

/* ===================================================== CALENDAR ===================================================== */ .calendar { color: #fff; }

.calendar-list { display: flex; flex-direction: column; gap: 18px; }

.calendar-event { display: block; position: relative; padding: 14px 70px 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease; }

.calendar-event:hover { transform: translateY(-1px); }

.calendar-event.is-ours { background: rgba(5, 10, 30, 0.75); border-color: rgba(60, 90, 180, 0.55); }

.calendar-event.is-ours:hover { background: rgba(5, 10, 30, 0.88); border-color: rgba(120, 150, 255, 0.75); }

.calendar-event.is-other { background: rgba(20, 20, 20, 0.75); }

.calendar-event.is-other:hover { background: rgba(30, 30, 30, 0.88); }

.calendar-event-link, .calendar-event-link:visited { color: #fff; text-decoration: none; }

.calendar-event-link:hover { color: var(--red); }

.event-date, .event-name { color: #fff; font-weight: 700; }

.event-meta-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; line-height: 1.4; color: #fff; }

.event-place, .event-time { opacity: 0.9; color: #fff; }

.meta-sep { padding: 0 6px; opacity: 0.45; color: #fff; }

.event-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }

.event-icn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 14px; line-height: 28px; cursor: pointer; }

.event-icn:hover { border-color: var(--red); color: var(--red); }

.org-badge { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; }

.org-badge img { width: 100%; height: 100%; object-fit: contain; }

.calendar-divider { height: 1px; margin: 18px 0 10px; background: rgba(255, 255, 255, 0.14); }

.archive-toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: none; color: #fff; font-weight: 700; cursor: pointer; padding: 8px 0; }

.archive-toggle:hover { color: var(--red); }

.archive-arrow { display: inline-block; width: 14px; transition: transform 0.15s ease; }

.archive-toggle.open .archive-arrow { transform: rotate(90deg); }

.archive-box { display: none; margin-top: 10px; }

.archive-box.open { display: block; }

@media (min-width: 769px) { .calendar-event.is-ours { width: 66.666%; margin-right: auto; }

.calendar-event.is-other { width: 66.666%; margin-left: auto; } }

/* ===================================================== 
 LINKS / PARTNERS 
===================================================== */ 
.links-section .links-grid { 
display: grid; 
gap: 1.2rem; 
grid-template-columns: repeat(3, 1fr); 
margin-top: 1.2rem; 
}

.links-section a.partner { 
display: flex; 
flex-direction: column; 
text-decoration: none; 
color: #fff; 
border-radius: 12px; 
overflow: hidden; 
background: rgba(0, 0, 0, 0.35); 
border: 1px solid rgba(255, 255, 255, 0.14); 
transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease; 
}

.links-section a.partner:hover { 
transform: translateY(-1px); 
border-color: rgba(219, 16, 16, 0.45); 
background: rgba(0, 0, 0, 0.45); 
}

.links-section .partner-logo { 
height: 120px; 
padding: 14px 16px; 
background: #000; 
border-bottom: 1px solid rgba(0, 0, 0, 0.12); 
display: flex; 
align-items: center; 
justify-content: center; 
}

.links-section .partner-logo img { 
max-width: 180px; 
max-height: 90px; 
width: 100%; 
object-fit: contain; 
}

/* OPRAVA: Přidáno h3, aby se to zarovnalo na střed */
.links-section a.partner h2,
.links-section a.partner h3 { 
margin: 0; 
padding: 12px 16px 6px; 
font-size: 1.05rem; 
font-weight: 700; 
text-align: center; 
}

.links-section a.partner p { 
margin: 0; 
padding: 0 16px 12px; 
font-size: 0.92rem; 
line-height: 1.5; 
color: #cfcfcf; 
text-align: center; 
display: -webkit-box; 
-webkit-line-clamp: 3; 
-webkit-box-orient: vertical; 
overflow: hidden; 
}

.links-group-title { 
margin: 1.6rem 0 0.8rem; 
font-size: 1.1rem; 
font-weight: 700; 
color: var(--red); 
}

/* ===================================================== DOWNLOADS & BOARD ===================================================== */ .downloads-list, .board-list { display: grid; gap: 16px; }

.download-card { flex-wrap: wrap; }

.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.board-card.is-online { border-color: rgba(57, 211, 83, 0.45); }

.board-card.is-offline { border-color: rgba(198, 40, 40, 0.4); }

.board-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.board-role { color: #bbb; line-height: 1.25; }

.board-chat-btn { margin-top: 0; }

.board-chat-btn:hover { background: #a30000; }

.download-modal { position: fixed; inset: 0; z-index: 5000; }

.download-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }

.download-modal-box { position: relative; z-index: 2; max-width: 900px; max-height: 80vh; margin: 5vh auto; padding: 24px; border-radius: 16px; background: #fff; color: #000; overflow: auto; }

.download-modal-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #000; }

/* ===================================================== ADMIN FORMS ===================================================== */ .admin-panel { margin-bottom: 1.2rem; padding: 1rem; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.14); }

.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin-top: 0.8rem; }

.admin-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: #ddd; }

.admin-check { grid-column: 1 / -1; align-items: center; gap: 0.6rem !important; }

.admin-form button { grid-column: 1 / -1; justify-self: start; }

/* ===================================================== FOOTER ===================================================== */ .footer { background: #000; padding: 1.2rem 1.5rem; text-align: left; }

.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }

.footer-left { display: flex; flex-direction: column; gap: 8px; }

.footer-copy { margin: 0; color: #fff; font-weight: 600; }

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

.footer-links a { color: #bbb; text-decoration: none; font-size: 0.95rem; }

.footer-links a:hover { color: var(--red); text-decoration: underline; }

.footer-social ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }

.footer-social a { display: flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; font-weight: 600; }

.footer-social a:hover { color: var(--red); }

.footer-social i { font-size: 18px; line-height: 1; }

@media (max-width: 768px) { .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

.footer-links { flex-direction: column; gap: 8px; }

.footer-social span { display: none; } }

/* ===================================================== ICON FONT ===================================================== */ @font-face { font-family: 'icomoon'; src: url('../fonts/icomoon.woff') format('woff'); }

[class^='icon-'], [class*=' icon-'] { font-family: 'icomoon'; font-style: normal; font-weight: normal; }

.icon-facebook2:before { content: '\ea91'; }

.icon-instagram:before { content: '\ea92'; }

.icon-whatsapp:before { content: '\ea93'; }

/* ===================================================== LANGUAGE SWITCHER & MISC ===================================================== */ .lang-switcher-circles { display: inline-flex; align-items: center; gap: 12px; }

.lang-circle { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; line-height: 1; transition: transform 0.2s ease, background 0.2s ease; }

.lang-circle:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }

/* hide Google translate bar */ body { top: 0 !important; }

.skiptranslate, .goog-te-banner-frame, .goog-tooltip, .goog-tooltip:hover, .goog-text-highlight { display: none !important; }

/* honeypot */ .hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===================================================== RESPONSIVE TWEAKS ===================================================== */ @media (max-width: 900px) { .links-section .links-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) { .content-box { padding: 1rem; }

.content-box p, .content-box li { font-size: 0.92rem; }

.image-grid { grid-template-columns: 1fr; }

.profiles-list, .chat-grid { grid-template-columns: 1fr; }

.profile-card, .board-card { flex-direction: row; }

.profile-cover-box { flex-direction: column; align-items: center; text-align: center; padding: 20px; }

.cover-content { flex-direction: column; }

.cover-actions-area { width: 100%; margin-top: 20px; }

.cover-actions-area .start-chat-btn { width: 100%; }

.profile-body-grid { grid-template-columns: 1fr; }

.gallery-vertical { display: grid !important; grid-template-columns: repeat(2, minmax(110px, 1fr)); justify-items: center; gap: 12px; overflow: visible !important; padding-bottom: 0 !important; }

.gallery-vertical .gallery-tile { width: 110px !important; height: 110px !important; flex-shrink: 0 !important; }

.profile-data-row { flex-wrap: wrap !important; }

.profile-data-row .data-value { max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }

.chat { max-width: 100%; margin: 0; height: calc(100vh - 140px); padding: 10px; }

.chat-header { position: sticky; top: 0; z-index: 5; }

.chat-box { -webkit-overflow-scrolling: touch; }

.chat-message { max-width: 95%; font-size: 15px; } }

@media (max-width: 700px) { .profiles-filters { grid-template-columns: 1fr; } }

@media (max-width: 480px) { #headerUserLogged { gap: 4px !important; }

#headerNickLink { max-width: 60px !important; font-size: 0.9rem !important; }

#logoutBtn { font-size: 0.85rem !important; padding-left: 2px !important; }

.profile-wrapper { padding: 10px !important; } }

@media (min-width: 700px) { .chat-grid, .profiles-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 760px) { .profiles-filters { grid-template-columns: 1fr 1fr auto; align-items: end; } }

@media (min-width: 900px) { .chat-grid, .profiles-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1100px) { .chat-grid, .profiles-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* === Profil – layout hlavičky === */

/* Mobil (zůstává centrovaný) */ #myCoverBox { flex-direction: column; align-items: center; text-align: center; gap: 18px; }

#myCoverBox .cover-content { width: 100%; display: flex; justify-content: center; }

#myCoverBox .cover-content > div { display: flex; flex-direction: column; align-items: center; gap: 12px; }

#myCoverBox .cover-actions-area { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Desktop – avatar vlevo, informace a tlačítka vpravo */ @media (min-width: 769px) { #myCoverBox { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }

#myCoverBox .cover-content { flex: 1; display: flex; align-items: flex-end; justify-content: flex-start; margin-right: auto; }

#myCoverBox .cover-content > div { flex-direction: row; align-items: center; gap: 18px; }

#myCoverBox .cover-content > div:first-child { display: flex; align-items: center; gap: 18px; margin-left: 0; /* drží avatar u levého okraje */ }

#myCoverBox .cover-info-area { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

#myCoverBox .cover-actions-area { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 12px; margin-left: auto; }

#myCoverBox .cover-actions-area > div { display: flex; gap: 10px; justify-content: flex-end; } }

@media (min-width: 769px) { #myCoverBox .cover-content { max-width: 25%; flex: 1; justify-content: flex-start; margin-right: auto; /* stáhne celý blok ke středu doleva */ }

#myCoverBox .cover-content > div { margin-left: 0 !important; /* odstraní případné zarovnání na střed */ }

#myCoverBox .cover-avatar-area { margin-left: 0; } }

/* u starších pravidel byla hranice 420px – tímhle ji zrušíme */ @media (min-width: 769px) { .chat { max-width: 1000px; }

.chat-form { max-width: 100%; }

#chatInput { max-width: none; } }

.home-news-box { margin-top: 1.2rem; }

.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 1rem; }

.home-news-card { position: relative; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(5,10,30,0.75); padding: 16px; transition: transform .12s ease, border-color .2s ease; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }

.home-news-card:hover { transform: translateY(-2px); border-color: rgba(120,150,255,0.6); }

.home-news-card h3 { margin: 0; font-size: 1.1rem; color: #fff; }

.home-news-card p { margin: 0; color: rgba(255,255,255,0.85); line-height: 1.5; font-size: 0.95rem; }

.admin-news-card img { width: 100%; aspect-ratio: 4 / 5; /* Změněno z 16/9 na 4:5 */ object-fit: cover; border-radius: 8px; border: 1px solid #eee; }

.home-news-thumb { width: 100%; aspect-ratio: 4 / 5; /* Změněno z 16/9 na 4:5 */ object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); }

.home-news-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.24); color: #fff; background: transparent; text-decoration: none; font-weight: 600; transition: background .15s ease, border-color .15s ease; }

.home-news-btn:hover { background: rgba(255,255,255,0.1); border-color: #db1010; color: #fff; }

.archive-wrapper { margin-top: 1.2rem; }

/* Mobil – 1 sloupec */ @media (max-width: 768px) { .home-news-grid { grid-template-columns: 1fr; } }

.admin-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.admin-news-card { border: 1px solid #eee; border-radius: 10px; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.admin-news-card h3 { margin: 0; font-size: 1.1rem; color: #2c3e50; }

.admin-news-card p { margin: 0; color: #555; line-height: 1.4; }

.admin-news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }

.admin-news-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) { .admin-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 600px) { .admin-news-grid { grid-template-columns: 1fr; } }

/* Tlačítka sociálních sítí / .btn-outline-red { display: inline-flex; align-items: center; justify-content: center; background-color: #000; color: #fff; border: 1px solid var(--red); padding: 8px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; / Aby se nerozdělil text uvnitř tlačítka */ }

.btn-outline-red:hover { background-color: #111; box-shadow: 0 0 8px rgba(219, 16, 16, 0.4); }

/* Obal pro tlačítka (v profilu a v patičce) / .profile-social-links, .profile-actions-left { display: flex; flex-wrap: wrap; / Zásadní pro zalamování na mobilu / gap: 12px; / Větší rozestupy mezi tlačítky / justify-content: flex-start; / Zarovnání doleva */ }

/* Mobilní úpravy pro tlačítka / @media (max-width: 768px) { .btn-outline-red { padding: 10px 16px; / Větší dotyková plocha / font-size: 0.85rem; / Trochu menší text, aby se jich vešlo víc */ } }

.board-name-link { background: transparent !important; border: none !important; padding: 0; margin: 0; color: #fff !important; cursor: pointer; font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; outline: none; }

.board-name-link:hover { color: var(--red) !important; text-decoration: underline; }

/* Základ pro mobil - 1 sloupec */ .chat-grid, .profiles-list, .board-list { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* Tablet - 2 sloupce */ @media (min-width: 700px) { .chat-grid, .profiles-list, .board-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Desktop - 3 sloupce */ @media (min-width: 1100px) { .chat-grid, .profiles-list, .board-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 768px) { .links-grid, .links-section .links-grid, div.links-grid { display: grid !important; grid-template-columns: 1fr !important; } }

/* Zákaz dlouhého stisku (stahování) fotek na mobilech / .gallery-tile img, #galleryLightboxImage, .profile-cover-box img { -webkit-touch-callout: none; / iOS Safari / -webkit-user-select: none; / Safari / -khtml-user-select: none; / Konqueror HTML / -moz-user-select: none; / Firefox / -ms-user-select: none; / Internet Explorer/Edge / user-select: none; -webkit-user-drag: none; / Zákaz přetažení myší na PC */ }

/* Stylování tlačítka pro nahrávání souborů (Bazar, Admin, atd.) / input[type="file"] { font-family: inherit; font-size: 0.9rem; color: #bbb; / Barva textu vedle tlačítka */ }

/* Pseudo-element, kterým se styluje přímo samotné tlačítko uvnitř inputu */ input[type="file"]::file-selector-button { background-color: #000; color: #fff; border: 1px solid var(--red); padding: 8px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-right: 12px; transition: all 0.2s ease; }

input[type="file"]::file-selector-button:hover { background-color: #111; box-shadow: 0 0 8px rgba(219, 16, 16, 0.4); }

/* ===================================================== FIX: PERFEKTNĚ KULATÝ AVATAR V PROFILU A USER.HTML ===================================================== */

/* Obal avataru (aby se nedeformoval podle okolí) */ .cover-avatar-area { width: 160px !important; height: 160px !important; min-width: 160px !important; min-height: 160px !important; flex-shrink: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; display: block !important; }

/* Samotná fotka (vždy čtverec, oříznutá do kruhu) / .cover-avatar-area .profile-avatar { width: 100% !important; height: 100% !important; object-fit: cover !important; / Toto zajistí, že se fotka ořízne a nedeformuje */ object-position: center !important; border-radius: 50% !important; border: 4px solid #2b3245 !important; background-color: #1e2532 !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important; display: block !important; margin: 0 !important; }

/* Barvy prstence podle aktivity */ .cover-avatar-area.is-online .profile-avatar { border-color: #2ecc71 !important; }

.cover-avatar-area.is-offline .profile-avatar { border-color: #e74c3c !important; }

/* --- PROFILY, CHAT A VEDENÍ (KARTY) --- */
.chat-card,
.profile-card,
.board-card { 
display: flex; 
align-items: center; 
padding: 16px 20px; 
min-height: 120px;
border-radius: 12px;
position: relative;
box-sizing: border-box; 
margin-bottom: 15px; 
/* --- NOVÝ VZHLED PODLE FÓRA --- */
background: rgba(255, 255, 255, 0.04); 
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: none;
transition: all 0.2s ease;
}

.chat-card:hover,
.profile-card:hover,
.board-card:hover { 
/* --- HOVER PODLE FÓRA --- */
background: rgba(255, 255, 255, 0.06); 
border-color: rgba(255, 255, 255, 0.2) !important; 
}

/* Zajištění správné mezery mezi avatarem a textem */
.profile-card-main,
.chat-card-main,
.board-card-main {
display: flex;
align-items: center;
gap: 18px; 
min-width: 0;
flex: 1;
}

/* --- ZÁKAZ ZALAMOVÁNÍ VĚKU / ROLE / JMEN --- */
.profile-info,
.board-info {
display: flex;
flex-direction: column; /* Jméno nahoře, věk/role dole */
justify-content: center;
}

.profile-info span,
.profile-age,
.board-role {
white-space: nowrap !important; /* Nikdy se nezalomí! */
color: #aaa;
font-size: 0.9rem;
margin-top: 4px;
}

/* --- LIKVIDACE ŠEDÉHO BOXU (VEDENÍ) --- */
.board-name-link {
background: transparent !important;
border: none !important;
padding: 0 !important;
color: #fff !important;
font-size: 1.1rem;
font-weight: 700;
text-align: left;
cursor: pointer;
font-family: inherit;
white-space: nowrap;
}

.board-name-link:hover {
color: #e53935 !important;
text-decoration: underline;
}

/* --- CHAT (ŘÁDKY) --- */
.chat-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-radius: 10px;
cursor: pointer;
position: relative;
margin-bottom: 10px;
/* --- NOVÝ VZHLED PODLE FÓRA --- */
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1); /* Udělal jsem rámeček kolem celého řádku, ne jen dole */
transition: all 0.2s ease;
}

.chat-row:hover {
/* --- HOVER PODLE FÓRA --- */
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Zarovnání textu CHAT a čísla s novými zprávami vedle sebe */
a[data-page="chats"], 
button[data-page="chats"],
.chat-link, 
.nav-item-chat {
display: inline-flex !important;
align-items: center !important;
justify-content: center;
flex-direction: row !important; 
gap: 6px !important; 
}

.chat-badge, 
.chat-unread-badge {
display: inline-flex !important;
margin: 0 !important;
flex-shrink: 0; 
}

/* Tlačítka pro úpravu profilu a hesla */
.btn-outline-red {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 20px;
border: 1px solid #e53935; 
background: transparent;   
color: #fff;               
font-weight: 600;
font-size: 0.9rem;
border-radius: 20px;       
cursor: pointer;
transition: all 0.2s ease;
}

.btn-outline-red:hover {
background: #e53935; 
color: #fff;
}

/* --- ROZLOŽENÍ SEZNAMŮ (DVA VEDLE SEBE) --- */
.profiles-list,
.board-list,
.chat-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr)); /* Udělá přesně 2 stejně široké sloupce */
gap: 18px; /* Mezera mezi kartami */
}

/* Karta v mřížce už nepotřebuje margin-bottom, protože mezery dělá "gap" v gridu */
.chat-card,
.profile-card,
.board-card {
margin-bottom: 0 !important; 
}

/* --- MOBILNÍ ZOBRAZENÍ (Na malém displeji se vrátí pod sebe) --- */
@media (max-width: 850px) {
.profiles-list,
.board-list,
.chat-grid {
  grid-template-columns: 1fr; /* Na mobilu a tabletu zase jen jeden sloupec */
}
}

.profile-card-avatar, 
.board-avatar {
cursor: pointer;
}

/* --- REDESIGN AKTUALIT NA ŘÁDKY (LMC) --- */
.home-news-grid {
display: flex !important;
flex-direction: column;
gap: 16px;
}

/* Řádková karta */
.home-news-card-row {
display: flex;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
overflow: hidden;
transition: transform 0.2s, background 0.2s;
}

.home-news-card-row:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.07);
}

/* Levá část: Náhledový obrázek */
.news-row-img-wrap {
flex: 0 0 160px;
height: 120px;
overflow: hidden;
cursor: pointer;
background: #0d0d0d;
display: flex;
align-items: center;
justify-content: center;
}

.news-row-thumb {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}

.news-row-thumb.fallback-logo {
object-fit: contain;
width: 70%;
height: 70%;
opacity: 0.5;
}

.news-row-img-wrap:hover .news-row-thumb {
transform: scale(1.05);
}

/* Pravá část: Info a tlačítko */
.news-row-info {
padding: 12px 15px;
display: flex;
flex-direction: column;
justify-content: space-between;
flex-grow: 1;
min-width: 0; /* Zabrání přetečení */
}

.news-row-info h3 {
margin: 0 0 4px 0 !important;
font-size: 1.1rem;
color: #fff;
font-weight: 600;
cursor: pointer;
line-height: 1.3;
}

.news-row-info h3:hover {
color: #e53935; /* Zvýraznění při najetí */
}

/* Oříznutí textu na max 2 řádky s třemi tečkami */
.news-row-text {
margin: 0 0 8px 0 !important;
font-size: 0.85rem;
color: #bbb;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}

.news-row-footer-action {
display: flex;
justify-content: flex-start;
}

/* Malé červené tlačítko Více zde */
.btn-news-more {
background: #e53935; /* Červená z admin panelu */
color: #fff !important;
border: none;
padding: 5px 12px;
font-size: 0.75rem;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: background 0.2s;
}

.btn-news-more:hover {
background: #b71c1c;
}

/* --- STYL POP-UP OKNA (MODAL) --- */
.news-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
display: none;
align-items: center;
justify-content: center;
z-index: 99999; /* Musí být nad vším */
padding: 15px;
}

.news-modal-overlay.active {
display: flex;
}

.news-modal-content {
background: #1e1e1e;
border: 1px solid rgba(255, 255, 255, 0.1);
width: 100%;
max-width: 680px;
border-radius: 8px;
position: relative;
overflow: hidden;
box-shadow: 0 12px 40px rgba(0,0,0,0.6);
animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
from { opacity: 0; transform: translateY(15px); }
to { opacity: 1; transform: translateY(0); }
}

.news-modal-close {
position: absolute;
top: 8px;
right: 14px;
color: #888;
font-size: 32px;
font-weight: bold;
cursor: pointer;
z-index: 100;
transition: color 0.2s;
}

.news-modal-close:hover {
color: #fff;
}

.news-modal-grid {
display: grid;
grid-template-columns: 1fr;
}

@media (min-width: 600px) {
.news-modal-grid {
  grid-template-columns: 1.2fr 1.8fr;
}
}

.news-modal-img-wrap {
height: 180px;
background: #0d0d0d;
}

@media (min-width: 600px) {
.news-modal-img-wrap {
  height: 100%;
  min-height: 320px;
}
}

.news-modal-img-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
}

.news-modal-text-wrap {
padding: 24px;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.news-modal-text-wrap h3 {
margin: 0 0 12px 0 !important;
color: #fff;
font-size: 1.35rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
padding-bottom: 8px;
font-weight: 600;
}

.news-modal-scrollable {
color: #ccc;
font-size: 0.9rem;
line-height: 1.5;
max-height: 180px;
overflow-y: auto;
margin-bottom: 15px;
padding-right: 8px;
}

/* Custom design scrollbaru pro modal */
.news-modal-scrollable::-webkit-scrollbar {
width: 5px;
}
.news-modal-scrollable::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.15);
border-radius: 3px;
}

.news-modal-footer {
display: flex;
gap: 10px;
justify-content: flex-end;
}

/* Mobilní zobrazení - skládání pod sebe */
@media (max-width: 550px) {
.home-news-card-row {
  flex-direction: column;
}
.news-row-img-wrap {
  flex: 0 0 130px;
  width: 100%;
}
}

.remember-me-container {
       display: flex;
       align-items: center;
       justify-content: flex-start;
       gap: 8px;
       margin: 8px 0 15px 0;
       font-size: 0.85rem;
       color: #ddd;
       text-align: left;
       width: 100%;
   }

   .remember-me-container input[type="checkbox"] {
       width: auto !important;
       margin: 0 !important;
       cursor: pointer;
   }

   .remember-me-container label {
       cursor: pointer;
       user-select: none;
       line-height: 1.2;
   }

   /* Zmenšení písma v textu samotných povídek */
#povidkaContent, 
#povidkaContent p {
    font-size: 0.95rem !important; /* Původní mohlo být kolem 1.1rem nebo 1.2rem */
    line-height: 1.6;              /* Příjemná výška řádku pro čtení */
    color: #2b2b2d;                /* Světle šedá barva příjemná pro oči */
}