/* LoveMarket Опт: оформление Greenlight в стиле opt.lovemarket.net */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

body, .btn, .form-control, h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Open Sans', Helvetica, Arial, sans-serif !important; }
body { color: #333; }

/* футер: прячем ссылку на Greenlight и версию, показываем свой копирайт */
#footer-container > a, #footer-container > span { display: none !important; }
.lm-footer { font-size: 14px; color: #777; }
.lm-footer a { color: #8f11b4; text-decoration: none; }
.lm-footer a:hover { text-decoration: underline; }

/* ===== главная ===== */
body.lm-page-home #homepage-hero h1 { font-weight: 800; color: #444141; }
body.lm-page-home #homepage-hero p { font-size: 1.1rem !important; }
.lm-upcoming { margin: 8px 0 12px; }
.lm-upcoming__title { margin: 24px 0 16px; color: #6c757d; text-transform: uppercase; font-size: 1.5rem; font-weight: 400; }
.lm-upcoming .lm-hero + .lm-hero { margin-top: 16px; }

/* ===== карточка анонса ===== */
.lm-hero {
  display: flex; gap: 32px; align-items: center;
  padding: 32px 36px; border-radius: 10px; color: #fff; text-align: left;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.18) 0 1px, transparent 2px) 0 0/38px 38px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.12) 0 1px, transparent 2px) 0 0/53px 53px,
    linear-gradient(120deg, #5b6cff 0%, #8f11b4 55%, #d65ccf 100%);
  box-shadow: 0 12px 32px rgba(143,17,180,.25);
}
.lm-hero__photo {
  flex: 0 0 190px; width: 190px; height: 190px; border-radius: 50%;
  border: 4px solid #fff; background: center/cover no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.lm-hero__badge { display: inline-block; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lm-hero__title { margin: 10px 0 6px; font-size: 30px; font-weight: 800; line-height: 1.15; }
.lm-hero__speaker { font-size: 15px; opacity: .95; }
.lm-hero__when { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.lm-hero__when span { padding: 7px 13px; border-radius: 4px; background: #fff; color: #8f11b4; font-weight: 700; font-size: 15px; }
.lm-cd__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin-bottom: 6px; }
.lm-cd__grid { display: flex; gap: 8px; }
.lm-cd__grid > div { min-width: 62px; padding: 7px 6px; text-align: center; border-radius: 6px; background: rgba(0,0,0,.18); }
.lm-cd__grid b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.lm-cd__grid small { font-size: 11px; opacity: .85; }
.lm-cd--live .lm-cd__grid { display: none; }
.lm-cd--live .lm-cd__label { display: inline-block; padding: 7px 13px; border-radius: 4px; background: #e2264d; font-size: 14px; font-weight: 700; opacity: 1; text-transform: none; letter-spacing: 0; }
.lm-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lm-btn, .lm-btn:visited { display: inline-block; padding: 10px 20px; border: 2px solid #fff; border-radius: 4px; background: #fff; color: #8f11b4 !important; font-weight: 700; font-size: 14px; text-decoration: none; transition: all .2s; }
.lm-btn:hover { background: transparent; color: #fff !important; }
.lm-btn--ghost, .lm-btn--ghost:visited { background: transparent; color: #fff !important; }
.lm-btn--ghost:hover { background: #fff; color: #8f11b4 !important; }

/* компактная версия для страницы входа */
.lm-hero--compact { padding: 24px 28px; gap: 24px; border-radius: 10px 10px 0 0; box-shadow: none; }
.lm-hero--compact .lm-hero__photo { flex-basis: 140px; width: 140px; height: 140px; }
.lm-hero--compact .lm-hero__title { font-size: 24px; }

/* ===== страница входа в комнату ===== */
body.lm-page-join .logo-wrapper .logo { max-height: 70px; }
body.lm-page-join .card-shadow.col-md-6 { width: 100%; max-width: 720px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; }
body.lm-page-join .card-body h1 { font-size: 1.6rem; font-weight: 700; color: #444141; line-height: 1.25; }
body.lm-page-join .card-body .text-muted { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
/* владелец комнаты (аватар и имя) не нужен гостям */
body.lm-page-join .card-body .row > .col:not(.col-xxl-8) { display: none; }
body.lm-page-join .card-body .col-xxl-8 { flex: 1 0 100%; max-width: 100%; }
body.lm-page-join .card-footer { padding-top: 18px !important; border-top: 0 !important; }
body.lm-page-join .card-footer .text-muted { font-size: 13px; }
body.lm-page-join .card-footer .btn-brand { font-weight: 600; padding: 9px 22px; }

/* если есть анонс: он заменяет заголовок карточки и стыкуется с формой */
.lm-join-hero { width: 100%; max-width: 720px; margin: 0 auto; padding: 0; }
body.lm-has-event .vertical-center > .row:not(.pb-4) .card { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
body.lm-has-event .vertical-center > .row:not(.pb-4) .card-body { display: none; }

@media (max-width: 767px) {
  .lm-hero { flex-direction: column; text-align: center; padding: 24px 18px; gap: 18px; }
  .lm-hero__when, .lm-cd__grid, .lm-hero__actions { justify-content: center; }
  .lm-hero__title { font-size: 22px; }
  .lm-hero__photo { flex-basis: 140px; width: 140px; height: 140px; }
  body.lm-page-join .card-shadow.col-md-6, .lm-join-hero { max-width: 100%; }
}

/* логотип в шапке целиком и на телефоне */
#navbar .small-logo { height: auto !important; max-height: 60px; width: auto; max-width: 190px; object-fit: contain; }
@media (max-width: 575px) { #navbar .small-logo { max-height: 48px; max-width: 150px; } }

/* ===== страница комнаты (организатор): заголовок не сжимается в узкую колонку ===== */
.row > .col-4:has(> .room-header-wrapper) { flex: 1 1 0; width: auto; min-width: 0; }
.row:has(> .col-4 > .room-header-wrapper) > .col:not(.col-4) { flex: 0 0 auto; width: auto; }
.room-header-wrapper .hstack { flex-wrap: wrap; align-items: center !important; row-gap: 6px !important; }
.room-header-wrapper h1 { font-size: 2rem; font-weight: 700; color: #444141; line-height: 1.25; margin-bottom: 0; word-break: normal; overflow-wrap: break-word; }
.room-header-wrapper .text-muted { margin-top: 6px; }
@media (max-width: 991px) {
  .row:has(> .col-4 > .room-header-wrapper) { flex-direction: column; row-gap: 16px; }
  .row > .col-4:has(> .room-header-wrapper), .row:has(> .col-4 > .room-header-wrapper) > .col:not(.col-4) { width: 100%; flex: 1 1 auto; }
  .room-header-wrapper h1 { font-size: 1.5rem; }
  .row:has(> .col-4 > .room-header-wrapper) .btn-group.pb-5 { padding-bottom: 0 !important; }
  .row:has(> .col-4 > .room-header-wrapper) { padding-bottom: 1.5rem !important; }
}
