/**
 * Стили сайдбара для страницы мероприятия
 * Используется в show_view_sidebar.php
 */

/* ===== ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ===== */

.sidebar-content {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Figma loadout column (1279:20866): gap space/4 = 16px между блоками */
    gap: var(--space-4);
}

/* sidebar-profile-block: стили в sidebar-cards.css */
/* sidebar-profile-divider: скрыт в sidebar-cards.css */

/* Действия профиля (используют стили gc-action-button) */
.sidebar-profile-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background-color: transparent;
    border: none;
    width: 100%;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.sidebar-profile-action:hover {
    background: var(--surface-control);
    color: inherit;
    text-decoration: none;
}

/* Контент профиля (для выбранных классов, оружия, транспорта) */
.sidebar-profile-content {
    padding: var(--space-4);
    transition: background var(--transition-fast);
}

.sidebar-profile-content:hover {
    background: var(--surface-control);
}

/* Вертикальный вариант для блока с ценой и сообществом */
.sidebar-profile-vertical {
    flex-direction: column;
    align-items: stretch;
}

.sidebar-avatar-wrapper {
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-product-2);
    flex-grow: 1;
    min-width: 0;
}

/* Строка сайдбара (О мероприятии, community, price) — те же токены, что gc-list-title / gc-list-meta */
.sidebar-name {
    margin: 0;
    font-size: var(--gc-list-title-font-size);
    font-weight: 500;
    line-height: var(--gc-list-title-line-height);
    color: var(--text-primary);
}

.sidebar-role {
    font-size: var(--gc-list-meta-font-size);
    font-weight: 400;
    line-height: var(--gc-list-meta-line-height);
    color: var(--text-secondary);
    margin: 0;
}

/* ===== СООБЩЕСТВО ===== */

.sidebar-community {
    text-align: left;
    background: var(--surface-panel);
    border-radius: var(--radius-16);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.sidebar-community:hover {
    background: var(--surface-control);
}

.sidebar-community-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-community-avatar-placeholder {
    background: var(--surface-control);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-20);
    font-weight: 600;
    color: var(--text-secondary);
}

.sidebar-community-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
    min-width: 0;
}

.sidebar-community-name {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.sidebar-community-label {
    font-size: var(--font-size-14);
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-community-arrow {
    font-size: var(--font-size-14);
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.sidebar-community:hover .sidebar-community-arrow {
    transform: translateX(2px);
}

/* ===== НАСТРОЙКИ ===== */

.sidebar-settings {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-setting-card {
    background: var(--surface-panel);
    border-radius: var(--radius-16);
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {

.sidebar-setting-card:hover {
    background: var(--surface-control);
}
}

.sidebar-section-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-item-subtitle {
    font-size: var(--font-size-13);
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

/* Badge для меток - используй .gc-badge из UI Kit (badges.css) */

/* ===== КЛАССЫ ОРУЖИЯ ===== */

.sidebar-classes-content {
    gap: var(--space-6);
}

.sidebar-class-category {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar-class-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.sidebar-class-type-name {
    font-size: var(--font-size-14);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-class-type-icon {
    height: 16px;
    width: auto;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-class-name {
    font-size: var(--font-size-14);
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== ОРУЖИЕ ===== */
/* Используем .gc-list-title.gc-list-title-bold и .gc-list-meta из UI Kit */

/* ===== ТРАНСПОРТ ===== */

.sidebar-vehicle-card {
    background: var(--surface-panel);
    border-radius: var(--radius-16);
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {

.sidebar-vehicle-card:hover {
    background: var(--surface-control);
}
}

.sidebar-transport-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sidebar-vehicle-info {
    display: flex;
    flex-direction: column;
}

.sidebar-vehicle-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
}

.sidebar-vehicle-name {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    font-size: var(--font-size-15);
}

/* Автомобильный номер - используй .gc-badge-car-number из UI Kit (badges.css) */

.sidebar-address-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sidebar-address-row .gc-status-indicator {
    display: block;
    flex-shrink: 0;
    align-self: center;
    line-height: 0;
}

.sidebar-address-row .sidebar-class-name {
    font-size: var(--font-size-13);
    line-height: 1.2;
}

.sidebar-status-dot {
    background: var(--success-color);
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    flex-shrink: 0;
}

.sidebar-status-dot-blink {
    background: var(--font-accent-orange) !important;
    animation: statusBlink 2s ease-in-out infinite;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}


.sidebar-address-text {
    font-size: var(--font-size-14);
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-person {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.sidebar-person-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--radius-full);
}

.sidebar-person-avatar-placeholder {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--surface-control);
    border: 1px solid var(--border-subtle);
}

.sidebar-person-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.sidebar-person-name {
    font-size: var(--font-size-15);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-person-role {
    font-size: var(--font-size-14);
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-person-address {
    font-size: var(--font-size-13);
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== КНОПКИ ДОБАВЛЕНИЯ ===== */
/* Используются UI Kit компоненты: .gc-action-button (см. action-button.css) */

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

@media (max-width: 991px) {
    .sidebar-content {
        max-width: none;
        padding: 0;
    }

    /* Только колонка сайдбара мероприятия — не трогать компактные .sidebar-avatar в карточках (оружие, брифинг, …) */
    .sidebar-content .sidebar-avatar {
        width: 80px;
        height: 80px;
    }

    .sidebar-content .sidebar-name {
        font-size: var(--font-size-20);
    }
}

/* Мобильный профиль сверху (вместо навигации) */
.mobile-sidebar-profile {
    display: none;
}

@media (max-width: 991px) {
    .mobile-sidebar-profile {
        display: block;
        position: fixed;
        top: var(--space-2);
        left: var(--space-2);
        right: var(--space-2);
        z-index: var(--z-fixed);
        background: var(--surface-panel);
        border-radius: var(--radius-16);
        box-shadow: none;
    }
    
    .mobile-profile-content {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-6);
    }
    
    .mobile-profile-avatar img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: var(--radius-full);
    }
    
    .mobile-profile-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .mobile-profile-name {
        font-size: var(--font-size-14);
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .mobile-profile-role {
        font-size: var(--font-size-13);
        color: var(--text-secondary);
    }
    
    /* split-left: <1280 — event-layout.css; <992 — здесь */
    .split-left {
        display: none;
    }
    
    /* Добавляем отступ сверху для контента */
    /* .split-layout определен в event-layout.css */
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .sidebar-content .sidebar-avatar {
        width: 60px;
        height: 60px;
    }

    .sidebar-content .sidebar-name {
        font-size: var(--font-size-18);
    }
    
    .sidebar-section-title {
        font-size: var(--font-size-14);
        margin-bottom: var(--space-4);
    }
}

/* ===== МОБИЛЬНЫЙ ПРОФИЛЬ ВНИЗУ (вместо навигации) ===== */

.mobile-bottom-profile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-panel);
    z-index: var(--z-fixed); /* Ниже модалов (1030 < 1050) */
    margin: 0 var(--space-4) var(--space-4) var(--space-4);
    border-radius: var(--radius-full);
    box-shadow: none;
    border: none;
    cursor: pointer;
}

.mobile-bottom-profile-content {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-4);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    overflow: hidden;
}

.mobile-bottom-profile-content:active {
    background-color: color-mix(in srgb, var(--text-on-solid) 5%, transparent);
    border-radius: var(--radius-full);
}

.mobile-bottom-avatar {
    flex-shrink: 0;
}

.mobile-bottom-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.mobile-bottom-info {
    flex: 1;
    min-width: 0;
}

.mobile-bottom-name {
    font-size: var(--font-size-14);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-bottom-role {
    font-size: var(--font-size-13);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-bottom-chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-14);
}

/* Отступ снизу для контента, чтобы не перекрывался профилем */
@media (max-width: 991px) {
    /* .split-layout определен в event-layout.css */
}

/* Адаптив для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-bottom-profile-content {
        padding: var(--space-2) var(--space-4);
        gap: var(--space-2);
    }
    
    .mobile-bottom-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .mobile-bottom-name {
        font-size: var(--font-size-14);
    }
    
    .mobile-bottom-role {
        font-size: var(--font-size-13);
    }
}

/* ===== ОБЪЕДИНЕННЫЙ БЛОК С ЦЕНОЙ И СООБЩЕСТВОМ ===== */

/* Тот же паттерн, что gc-panel-content--list (styles.css) — Figma about_event / community (1075:7121) */
.sidebar-event-info-block,
.mobile-event-info-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-product-2);
    padding: var(--gc-list-zone-padding);
    min-width: 0;
    box-sizing: border-box;
}

.sidebar-event-info-block {
    --gc-corner-outer: var(--radius-16);
    border-radius: var(--gc-corner-outer);
}

/* На адаптиве — блок сайдбара у края экрана без боковых линий */
@media (max-width: 991.98px) {
    .sidebar-event-info-block {
        /* border-left: none;
        border-right: none; */
    }
}

/* Разделители не нужны — скруглённые айтемы создают визуальное разделение сами */
.sidebar-event-info-block .event-info-divider,
.mobile-event-info-block .event-info-divider {
    display: none;
}

/* Блок с ценой — Figma about_event / price (1075:7609) */
.event-info-price,
.event-info-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}

.event-info-price,
.event-info-subscription-header {
    padding: calc(var(--space-2) - var(--space-product-2)) var(--space-2);
}

/* Figma about_event / price (1075:7609): amount UI/Title/Medium 14/22, type UI/Caption/Regular 13/18 */
.event-info-price__amount,
.event-info-subscription-header .sidebar-name {
    margin: 0;
    min-width: 0;
    font-size: var(--type-ui-title-size);
    font-weight: 500;
    line-height: var(--type-ui-title-line-height);
    color: var(--text-primary);
}

.event-info-price__type,
.event-info-subscription-header .sidebar-role {
    margin: 0;
    flex-shrink: 0;
    font-size: var(--type-ui-caption-size);
    font-weight: 400;
    line-height: var(--type-ui-caption-line-height);
    color: var(--text-secondary);
}

/* Старая (серая, зачёркнутая) и новая цена со скидкой — одна строка */
.event-price-inline {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: var(--space-2);
    min-width: 0;
}

.event-price-inline .event-price-old {
    color: var(--text-secondary);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.event-price-inline .event-price-new {
    color: var(--text-primary);
}

.gc-list-meta .event-price-inline .event-price-new {
    font-weight: 500;
}

/* Ваучер + прайс: номинал участия не «скидка» — без зачёркивания; прайс вторичный, сумма списания акцент */
.event-price-inline .event-price-voucher-pricelist {
    color: var(--text-secondary);
}

.event-price-inline .event-price-voucher-debit {
    color: var(--text-primary);
    font-weight: 500;
}

/* About / join rail: compact list-media md (32), не base 44 */
.sidebar-event-info-block,
.mobile-event-info-block {
    --gc-list-media-size: var(--gc-list-media-size-md);
}

.sidebar-event-info-block :is(.sidebar-avatar, .sidebar-avatar-placeholder, .gc-list-avatar),
.mobile-event-info-block :is(.sidebar-avatar, .sidebar-avatar-placeholder, .gc-list-avatar) {
    width: var(--gc-list-media-size);
    height: var(--gc-list-media-size);
}

.sidebar-event-info-block :is(.sidebar-icon-box, .sidebar-weapon-icon, .gc-list-media-icon),
.mobile-event-info-block :is(.sidebar-icon-box, .sidebar-weapon-icon, .gc-list-media-icon) {
    --gc-list-media-size: var(--gc-list-media-size-md);
    --gc-list-media-icon-padding: var(--space-1);
    --gc-list-media-mask-inset: var(--space-1);
    /* Figma about_event: icon frame = gc-list-media-icon, без border */
    border: none;
}

.event-show-context-rail .sidebar-profile-block,
.event-show-rail-fallback-about .sidebar-profile-block {
    --gc-list-media-size: var(--gc-list-media-size-md);
}

/* Figma about_event footer (1506:6870) — «К этому мероприятию подходят» + options */
.event-info-join-payment-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.event-info-join-payment-preview-title {
    margin: 0;
    padding: 0;
    font-size: var(--type-ui-micro-size);
    font-weight: 500;
    line-height: var(--type-ui-micro-line-height);
    color: var(--text-secondary);
    letter-spacing: 0;
}

.event-info-join-payment-preview-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-info-join-payment-preview-row {
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Figma options (1506:7136): ph-fill 16px inline, без gc-list-media-icon frame */
.event-info-join-payment-preview-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--font-size-16);
    height: var(--font-size-16);
    color: var(--text-secondary);
}

.event-info-join-payment-preview-icon :is(i, .ph, .ph-fill) {
    font-size: var(--font-size-base);
    line-height: 1;
    color: inherit;
}

.event-info-join-payment-preview-item-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex: 1;
    min-width: 0;
}

.event-info-join-payment-preview-item-title {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--type-ui-caption-size);
    font-weight: 500;
    line-height: var(--type-ui-caption-line-height);
    color: var(--text-primary);
}

.event-info-join-payment-preview-item-meta {
    margin: 0;
    flex-shrink: 0;
    font-size: var(--type-ui-caption-size);
    font-weight: 400;
    line-height: var(--type-ui-caption-line-height);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Figma about_event / price (1075:7490) — price-panel без собственного padding */
.event-info-price-panel,
.event-info-subscription {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
}

.subscription-type-name {
    font-size: var(--font-size-13);
    color: var(--text-secondary);
    padding: 0;
}

/* Figma progress_zone (1075:7368) — px 8 py 4 под строкой price & type */
.event-info-progress-zone,
.subscription-mini-progress-wrap {
    padding: var(--space-1) var(--space-2);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Figma progress / segments (145:5066) — sunken track h 16, inset p 4, gap 4 */
.subscription-mini-progress {
    display: flex;
    align-items: stretch;
    gap: var(--gc-progress-segment-gap);
    height: var(--gc-progress-track-height);
    padding: 0;
    background: transparent;
    border-radius: 0;
}

:is(
    .event-info-progress-zone,
    .subscription-mini-progress-wrap,
    .sidebar-event-info-block,
    .mobile-event-info-block
) .subscription-mini-progress {
    align-items: center;
    gap: var(--space-1);
    width: 100%;
    box-sizing: border-box;
    height: var(--space-4);
    min-height: var(--space-4);
    padding: var(--space-1);
    border-radius: var(--radius-full);
    background: var(--surface-sunken);
}

:is(
    .event-info-progress-zone,
    .subscription-mini-progress-wrap,
    .sidebar-event-info-block,
    .mobile-event-info-block
) .subscription-mini-progress.gc-widget-tip {
    height: var(--space-4);
    min-height: var(--space-4);
    padding: var(--space-1);
    box-sizing: border-box;
    align-items: center;
}

:is(
    .event-info-progress-zone,
    .subscription-mini-progress-wrap,
    .sidebar-event-info-block,
    .mobile-event-info-block
) .subscription-mini-progress .subscription-mini-segment {
    height: calc(var(--space-4) - 2 * var(--space-1));
    min-height: 0;
    align-self: center;
    pointer-events: none;
}

.subscription-mini-segment {
    height: 100%;
    min-height: 0;
    border-radius: var(--radius-full);
    transition:
        opacity var(--transition-slow) var(--ease-out),
        width var(--transition-slow) var(--ease-out);
}

.subscription-mini-segment-used {
    background-color: var(--gc-progress-fill);
}

.subscription-mini-segment-preview {
    background-color: var(--gc-progress-fill);
    opacity: 0.38;
}

.subscription-mini-segment-remaining {
    background-color: transparent;
}

/* Эпик над инфо-блоком сайдбара — наслоение как у gc-event-card-cell--epic */
.sidebar-event-info-cell {
    isolation: isolate;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.sidebar-event-info-cell--epic .sidebar-event-info-epic-row {
    position: relative;
    z-index: 0;
    padding: 0;
}

.sidebar-event-info-cell--epic .sidebar-event-info-block,
.sidebar-event-info-cell--join-preview-footer .sidebar-event-info-block {
    position: relative;
    z-index: 1;
}

.sidebar-event-info-cell--epic > .event-show-hero-with-results {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * (var(--space-4) + var(--space-1)));
}

.sidebar-event-info-cell--epic .sidebar-event-info-block {
    margin-top: calc(-1 * (var(--space-4) + var(--space-1)));
}

.sidebar-event-info-cell--epic .event-show-hero-with-results > .sidebar-event-info-block {
    margin-top: calc(-1 * var(--gc-card-strip-overlap));
}

/* Footer льгот — Figma 1506:6870. На join без CTA: наслоение под всей карточкой about. */
.sidebar-event-info-cell--join-preview-footer .sidebar-event-info-block {
    margin-bottom: calc(-1 * var(--space-4));
}

.sidebar-event-info-join-preview-footer {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
    min-width: 0;
    box-sizing: border-box;
    padding: calc(var(--space-4) + var(--space-3)) var(--space-4) var(--space-4);
    border-radius: 0 0 var(--radius-16) var(--radius-16);
    background: var(--tint-tinted-neutral);
}

.sidebar-event-info-join-preview-footer .event-info-join-payment-preview {
    padding: 0;
}

/* Нет карточки about — футер не наслаивается, это отдельная карточка. */
.sidebar-event-info-cell--join-preview-footer:not(:has(.sidebar-event-info-block)) > .sidebar-event-info-join-preview-footer {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-16);
    padding: var(--space-4);
    background: var(--surface-secondary);
}

/*
 * Show: льготы вылезают из-под строки заявки, не из-под всей панели.
 * Крышка = opaque surface карточки, чтобы наслоение не просвечивало.
 */
.event-info-join-stack {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-info-join-stack__lid {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    border-radius: var(--radius-12);
    background: var(--surface-secondary);
}

.event-info-join-stack:has(> .sidebar-event-info-join-preview-footer) .event-info-join-stack__lid {
    margin-bottom: calc(-1 * var(--space-4));
}

.event-info-join-stack .sidebar-event-info-join-preview-footer {
    border-radius: 0 0 var(--radius-16) var(--radius-16);
}

/*
 * Standalone-эпик (без обложки / peek на адаптиве): горизонтальный inset.
 * Селектор с .gc-event-card-epic-pill обязателен — events-list.css грузится после sidebar и иначе
 * перебивает padding (в т.ч. нижний --space-6 под наслоение карточки в каталоге).
 */
.gc-event-card-epic-pill.sidebar-event-info-epic-pill--standalone {
    border-radius: var(--radius-16);
    padding: var(--space-2) var(--space-4);
}

/*
 * Язычок из-под about (--epic): нижний pad как у каталога, иначе overlap
 * (-(space-4 + space-1)) срезает «Эпик · название» пополам.
 */
.sidebar-event-info-cell--epic .gc-event-card-epic-pill.sidebar-event-info-epic-pill--standalone,
.event-show-mobile-info-cell--epic .gc-event-card-epic-pill.sidebar-event-info-epic-pill--standalone {
    padding-bottom: var(--space-6);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Разделитель: bleeding на всю ширину блока (компенсирует padding: 4px) */
.event-info-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0 calc(-1 * var(--space-1));
}

/* Стек list-row внутри info-блока (Figma gap 2px между секциями) */
.event-info-list-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-product-2);
    min-width: 0;
}

/* Блок с сообществом (кликабельный) — inset + gap как у gc-interactive-row / Figma user-info */
.event-info-community {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--gc-list-row-padding);
    border-radius: var(--radius-12);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
    cursor: pointer;
}

button.event-info-community {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
}

.event-info-community:hover {
    background: var(--gc-interactive-hover-bg);
}

.event-info-community-static {
    cursor: default;
}

.event-info-community-static:hover {
    background: transparent;
}

.event-info-guidance {
    display: flex;
    flex-direction: column;
    gap: var(--space-product-2);
    padding: var(--gc-list-row-padding);
    border-radius: var(--radius-12);
}

/* Дата + название мероприятия (join / сайдбар рядом с эпиком и ценой) */
.event-info-event-heading {
    display: flex;
    flex-direction: column;
    gap: var(--space-product-2);
    padding: var(--gc-list-row-padding);
    border-radius: var(--radius-12);
    min-width: 0;
}

.event-info-event-heading__date {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: var(--space-1);
    font-size: var(--gc-list-meta-font-size);
    line-height: var(--gc-list-meta-line-height);
    color: var(--text-secondary);
}

.event-info-event-heading__date-line {
    display: block;
    min-width: 0;
}

.event-info-event-heading__title {
    font-size: var(--gc-list-title-font-size);
    font-weight: 500;
    line-height: var(--gc-list-title-line-height);
    color: var(--text-primary);
}

/* Сайдбар «О мероприятии»: одна строка + ellipsis; hero в main-колонке не трогаем */
.event-info-event-heading:not(.event-info-event-heading--hero) .event-info-event-heading__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}



/* Общие стили для шевронов */
.sidebar-community-chevron,
.sidebar-profile-chevron {
    font-size: var(--font-size-14);
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: auto;
}

/* Плейсхолдер для аватара (как .gc-list-avatar-fallback — без border) */
.sidebar-avatar-placeholder {
    background: var(--gc-list-media-frame-bg, var(--surface-control));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-14);
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
    box-sizing: border-box;
    transition: background var(--transition-fast);
}

/* ===== КАРТОЧНАЯ ВЕРСИЯ ПРОФИЛЯ (Альтернативная) ===== */

/* Блок профиля с карточками (используется вместо sidebar-profile-block) */
.sidebar-profile-block-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Шапка профиля - остается в основном блоке */
.sidebar-profile-header-card {
    background: var(--surface-panel);
    border-radius: var(--radius-16);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {

.sidebar-profile-header-card:hover {
    background: var(--surface-control);
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}
}

/* Карточка контента (заменяет sidebar-profile-content + divider) */
.sidebar-profile-card {
    background: var(--surface-panel);
    border-radius: var(--radius-16);
    padding: var(--space-4);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {

.sidebar-profile-card:hover {
    background: var(--surface-control);
    box-shadow: none;
}
}

/* Карточка действия (заменяет sidebar-profile-action) */
.sidebar-profile-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background: var(--surface-panel);
    border-radius: var(--radius-16);
    border: none;
    width: 100%;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {

.sidebar-profile-action-card:hover {
    background: var(--surface-control);
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}
}

/* Контент внутри карточки транспорта */
.sidebar-profile-card .sidebar-profile-content {
    padding: var(--space-4);
    transition: background var(--transition-fast);
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {

.sidebar-profile-card .sidebar-profile-content:hover {
    background: transparent; /* Hover уже на карточке */
}
}
