/* ==============================================
   /css/left_column/style.css
   Стили для левой колонки (меню)
   Работает и на светлом фоне (десктоп),
   и на тёмном (#111, мобильный off-canvas)
   ============================================== */

/* ── Общие переменные ────────────────────────── */
.sidebar.left {
    --lc-text:        #1f2937;
    --lc-muted:       #6b7280;
    --lc-border:      #e5e7eb;
    --lc-btn-bg:      #f3f4f6;
    --lc-btn-hover:   #e5e7eb;
    --lc-accent:      #e91e63;
    --lc-accent-dark: #c2185b;
}

/* На мобильном фон тёмный — переключаем переменные */
@media (max-width: 1024px) {
    .sidebar.left {
        --lc-text:        #fff;
        --lc-muted:       rgba(255,255,255,0.55);
        --lc-border:      rgba(255,255,255,0.12);
        --lc-btn-bg:      rgba(255,255,255,0.10);
        --lc-btn-hover:   rgba(255,255,255,0.18);
    }
}

/* ── Заголовок "Меню" ────────────────────────── */
.sidebar.left h2 {
    color: var(--lc-text);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lc-border);
}

/* ── Логотип + мова в один рядок ────────────── */
.lc-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--lc-border);
    margin-bottom: 8px;
}

.lc-logo-link {
    display: inline-block;
    flex-shrink: 0;
}

.lc-logo-img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* ── Перемикач мови — випадаюче меню ─────────── */
.lang-switcher {
    position: relative;
    margin: 0 !important;
    flex-shrink: 0;
}

.lang-switcher__btn {
    background: var(--lc-btn-bg);
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--lc-text);
    transition: background 0.15s;
    line-height: 1;
}

.lang-switcher__btn:hover {
    background: var(--lc-btn-hover);
}

.lang-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
}

.lang-switcher__menu.open {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.12s;
}

.lang-item:hover {
    background: #f3f4f6;
}

.lang-item--active {
    font-weight: 700;
    color: #e91e63;
}

/* На мобільному — меню вбудоване */
@media (max-width: 1024px) {
    .lc-logo-img {
        max-width: 140px;
    }

    .lang-switcher__menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        min-width: unset;
    }

    .lang-switcher__menu.open {
        display: block;
    }

    .lang-item {
        color: var(--lc-text);
        border-radius: 8px;
        padding: 8px 10px;
    }

    .lang-item:hover {
        background: var(--lc-btn-hover);
    }

    .lang-switcher__btn {
        background: var(--lc-btn-bg);
        border-color: var(--lc-border);
        color: var(--lc-text);
    }
}

/* ── Блок пользователя ───────────────────────── */
.lc-user-block {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lc-border);
}

.lc-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lc-text);
    border-radius: 8px;
    padding: 6px 8px;
    margin: -6px -8px;
    transition: background 0.15s;
}

.lc-user-link:hover {
    background: var(--lc-btn-bg);
}

/* ── Аватар — ФИКСИРОВАННЫЙ размер ──────────── */
.lc-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lc-border);
    flex-shrink: 0;
    display: block;
}

.lc-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--lc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* ── Навигация ───────────────────────────────── */
.lc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Кнопки/ссылки ───────────────────────────── */
.lc-btn {
    display: block;
    padding: 10px 13px;
    border-radius: 8px;
    background: var(--lc-btn-bg);
    color: var(--lc-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.lc-btn:hover {
    background: var(--lc-btn-hover);
}

/* Кнопка viewer — акцентная */
.lc-btn-viewer {
    background: var(--lc-accent) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
}

.lc-btn-viewer:hover {
    background: var(--lc-accent-dark) !important;
}

/* Кнопка выхода */
.lc-btn-logout {
    margin-top: 8px;
    background: transparent !important;
    border: 1px solid var(--lc-border) !important;
    color: var(--lc-muted) !important;
    font-size: 13px;
}

.lc-btn-logout:hover {
    background: var(--lc-btn-bg) !important;
    color: var(--lc-text) !important;
}

/* ── Incog кнопка ────────────────────────────── */
.lc-btn-incog {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
}

.lc-btn-incog:hover {
    opacity: .88;
    background: linear-gradient(135deg, #6d28d9, #9333ea) !important;
}

/* ── Форма auth внутри меню ──────────────────── */
.sidebar.left .auth-box {
    padding: 0;
    border: none;
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar.left .auth-box input[type="email"],
.sidebar.left .auth-box input[type="password"] {
    background: var(--lc-btn-bg);
    border: 1px solid var(--lc-border);
    color: var(--lc-text);
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 6px;
    box-sizing: border-box;
    outline: none;
}

.sidebar.left .auth-box input[type="email"]:focus,
.sidebar.left .auth-box input[type="password"]:focus {
    border-color: var(--lc-accent);
}

@media (max-width: 1024px) {
    .sidebar.left .auth-box input::placeholder {
        color: rgba(255,255,255,0.35);
    }
}

.sidebar.left .auth-box label {
    color: var(--lc-text);
    font-size: 13px;
}

.sidebar.left .auth-box button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--lc-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s;
}

.sidebar.left .auth-box button:hover {
    background: var(--lc-accent-dark);
}

.sidebar.left .auth-box input[type="radio"] {
    accent-color: var(--lc-accent);
}

.sidebar.left .auth-box input[type="checkbox"] {
    accent-color: var(--lc-accent);
}

.sidebar.left .auth-box strong {
    color: var(--lc-text);
}

/* ── Кнопка закрытия (только мобильная) ─────── */
.lc-close-btn {
    display: none;
}

@media (max-width: 1024px) {
    .lc-close-btn {
        display: block;
        text-align: right;
        font-size: 26px;
        color: rgba(255,255,255,0.7);
        cursor: pointer;
        margin-bottom: 12px;
        line-height: 1;
    }

    .lc-close-btn:hover {
        color: #fff;
    }
}

/* ── Локация ─────────────────────────────────── */
.lc-location {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lc-loc-city {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc-btn-city {
    flex: 1;
    min-width: 0;
}

.lc-loc-reset {
    font-size: 14px;
    color: var(--lc-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.lc-loc-reset:hover {
    color: var(--lc-text);
}

/* ── Месенджер wrap ──────────────────────────── */
.lc-messenger-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lc-messenger-wrap .lc-btn {
    flex: 1;
}

.lc-notif-count {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lc-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    line-height: 1.6;
    pointer-events: none;
}

.lc-notif-count.visible {
    display: block;
}