/* Semnall – pagina principală și modulul de postare: aspect compact, profesional.
   Se încarcă după style.css. Tokens în :root; clasa .hp-comfort pe <body> revine la spațieri mai largi. */
:root {
  --hp-radius: 12px;
  --hp-gap: 10px;
  --hp-pad: 12px;
  --hp-fs: 14px;
  --hp-fs-sm: 12.5px;
  --hp-line: rgba(20, 20, 40, .08);
  --hp-shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 2px 8px rgba(20, 20, 40, .04);
  --hp-accent: #a84849;
}
body.hp-comfort { --hp-gap: 16px; --hp-pad: 18px; --hp-fs: 15px; --hp-fs-sm: 13.5px; }

/* ---------- bază: text mai mic, fără spațiere între litere ---------- */
.middlecol, .leftcol, .rightcol, .sun_pub_box, .post { letter-spacing: 0 !important; font-size: var(--hp-fs); line-height: 1.4; }
.middlecol .panel, .middlecol .wow_content, .middlecol .post, .middlecol .alert, .middlecol .filterby {
  border-radius: var(--hp-radius) !important; box-shadow: var(--hp-shadow) !important; border: 1px solid var(--hp-line) !important; margin-bottom: var(--hp-gap) !important;
}

/* ---------- meniul din stânga ---------- */
.leftcol ul li a { padding-top: 7px !important; padding-bottom: 7px !important; font-size: 13px !important; min-height: 0 !important; }
.leftcol ul li { margin: 0 !important; }

/* ---------- povești ---------- */
.wow_home_stories { padding: 8px !important; }
.wow_home_stories .status-list { height: auto !important; }
.wow_home_stories .status-list li { transform-origin: top left; }
@media (min-width: 768px) {
  .wow_home_stories .status-list { zoom: .82; }
}
@media (max-width: 767px) {
  .wow_home_stories .status-list { zoom: .78; }
}

/* ---------- modulul de postare (compozitor) ---------- */
.sun_pub_box { padding: var(--hp-pad) !important; border-radius: var(--hp-radius) !important; }
#post-textarea .wo_pub_txtara_combo { align-items: flex-start; gap: 10px; }
.sun_pub_box .post-avatar { width: 36px !important; height: 36px !important; border-radius: 50% !important; }
.sun_pub_box textarea.postText {
  min-height: 40px !important; font-size: 14px !important; line-height: 1.45; padding: 9px 12px !important; border-radius: 10px !important;
  background: #f3f4f7 !important; border: 1px solid transparent !important; transition: background .15s, border-color .15s, box-shadow .15s; resize: none;
}
.sun_pub_box textarea.postText:focus { background: #fff !important; border-color: var(--hp-accent) !important; box-shadow: 0 0 0 3px rgba(168, 72, 73, .12) !important; }
body.pub-focus .sun_pub_box textarea.postText { min-height: 84px !important; }
.sun_pub_mid_foot { margin-top: 8px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sun_pub_mid_foot .poster-left-buttons, .sun_pub_more .poster-left-buttons { margin: 0 !important; }
.sun_pub_mid_foot .btn-file, .sun_pub_more .btn-file, .sun_pub_mid_foot .btn-go-live {
  height: 32px !important; padding: 0 11px !important; font-size: 12px !important; border-radius: 16px !important; display: inline-flex !important; align-items: center; gap: 6px;
  background: #f3f4f7 !important; border: 1px solid transparent !important; color: #3b3d4a !important; transition: background .15s, transform .1s, border-color .15s;
}
.sun_pub_mid_foot .btn-file:hover, .sun_pub_more .btn-file:hover { background: #fff !important; border-color: var(--hp-line) !important; box-shadow: var(--hp-shadow); }
.sun_pub_mid_foot .btn-file:active { transform: scale(.97); }
.sun_pub_mid_foot svg, .sun_pub_more svg { width: 16px !important; height: 16px !important; }
.sun_pub_mid_foot .btn-go-live { background: linear-gradient(135deg, #ff4d7d, #e0243f) !important; color: #fff !important; font-weight: 700; box-shadow: 0 3px 10px rgba(224, 36, 63, .35); }
.sun_pub_more { display: flex !important; flex-wrap: wrap; gap: 6px !important; padding-top: 4px; }
.sun_pub_more_items { margin: 0 !important; width: auto !important; }
.publisher-box-footer { margin-top: 8px !important; border-top: 1px solid var(--hp-line); padding-top: 8px !important; }
.pub-footer-bottom { padding: 0 !important; }
.pub_footer_bottom_btns { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.poster-left-select .btn, .poster-left-select select, .poster-left-select button { height: 32px !important; font-size: 12px !important; border-radius: 16px !important; padding: 0 12px !important; }
.charsLeft-post { font-size: 11px !important; color: #8a8d9a; font-variant-numeric: tabular-nums; }
.charsLeft-post.hp-warn { color: #d97706; font-weight: 700; }
.charsLeft-post.hp-over { color: #dc2626; font-weight: 700; }
.sun_pub_box .btn-main, .sun_pub_box .publisher-button, .sun_pub_box button[type="submit"], #publisher-box-focus .btn-main {
  height: 34px !important; padding: 0 18px !important; font-size: 13px !important; font-weight: 700; border-radius: 17px !important;
}
.hp-draft { font-size: 11px; color: #8a8d9a; margin-left: 6px; opacity: 0; transition: opacity .3s; }
.hp-draft.on { opacity: 1; }
.hp-drop { outline: 2px dashed var(--hp-accent) !important; outline-offset: 2px; background: rgba(168, 72, 73, .05) !important; }

/* ---------- mesaj de bun venit ---------- */
.greetalert { padding: 8px 12px !important; }
.greetalert .small-texts, .greetalert p { font-size: 12px !important; margin: 0 !important; }
.greetalert strong, .greetalert h4, .greetalert .title { font-size: 13px !important; }
.greetalert img { width: 28px !important; height: 28px !important; }

/* ---------- filtrul feed-ului: bară lipicioasă, mai joasă ---------- */
#filterby-post { padding: 4px 96px 4px 4px !important; position: sticky; top: 74px; z-index: 20; background: #fff; }
#filterby-post li a, #filterby-post li > * { min-height: 34px !important; padding-top: 6px !important; padding-bottom: 6px !important; border-radius: 8px !important; }
.hp-density { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.hp-chip { border: 1px solid var(--hp-line); background: #fff; border-radius: 14px; height: 26px; padding: 0 10px; font-size: 11px; font-weight: 600; color: #555; cursor: pointer; }
.hp-chip:hover { border-color: var(--hp-accent); color: var(--hp-accent); }

/* ---------- postările ---------- */
.middlecol .post { padding: 0 !important; overflow: hidden; }
.post .post-heading, .post .post-header { padding: 10px var(--hp-pad) 4px !important; }
.post .post-avatar img, .post .post-heading img.avatar, .post img.post-avatar { width: 36px !important; height: 36px !important; }
.post .user-name, .post .post-heading a { font-size: 14px !important; font-weight: 600; }
.post .post-description, .post .post-text { padding: 2px var(--hp-pad) 8px !important; }
/* textul postării/statusului: mai mic decât înainte (16px), dar lizibil */
.post .post-description p, .post .post-description .post-text, .post .post-description span { font-size: 14px !important; line-height: 1.5 !important; margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
body.hp-comfort .post .post-description p { font-size: 15px !important; }
.post .post-footer, .post .stats.post-actions { padding: 4px var(--hp-pad) !important; }
.post .post-comments { padding: 4px var(--hp-pad) 10px !important; }
.post .post-comments input, .post .post-comments textarea { height: 32px !important; font-size: 12.5px !important; border-radius: 16px !important; }
.post.hp-focus { box-shadow: 0 0 0 2px var(--hp-accent), var(--hp-shadow) !important; }

/* ---------- coloana din dreapta ---------- */
.rightcol .panel, .rightcol .wow_content, .rightcol .sidebar-container { border-radius: var(--hp-radius) !important; margin-bottom: var(--hp-gap) !important; }
.rightcol .panel-heading, .rightcol .sidebar-title { padding: 10px 12px !important; font-size: 13px !important; }
.rightcol li { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ---------- sortare feed ---------- */
.wow_content.order-by { padding: 8px 12px !important; font-size: 12.5px !important; }
.wow_content.order-by * { font-size: 12.5px !important; }

/* ---------- mobil ---------- */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .sun_pub_mid_foot .btn-file { font-size: 0 !important; gap: 0 !important; width: 38px; padding: 0 !important; justify-content: center; }
  .sun_pub_mid_foot .btn-file svg { width: 18px !important; height: 18px !important; }
  .sun_pub_more .btn-file { font-size: 12px !important; }
  .sun_pub_box textarea.postText { height: 40px !important; overflow: hidden; font-size: 13px !important; }
  .sun_pub_box textarea.postText::placeholder { font-size: 12.5px; }
  #post-textarea .wo_pub_txtara_combo { gap: 8px; }
  body.pub-focus .sun_pub_box textarea.postText { height: 90px !important; overflow: auto; }
  .wow_home_stories .status-list { zoom: .72; }
  :root { --hp-gap: 8px; --hp-pad: 12px; --hp-fs: 14px; }
  /* carduri edge-to-edge: pe toată lățimea ecranului, separate prin spațiu gri */
  .page-margin, #contnet { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  .page-margin > .row { margin-left: 0 !important; margin-right: 0 !important; }
  .middlecol { padding-left: 0 !important; padding-right: 0 !important; }
  .middlecol .panel, .middlecol .wow_content, .middlecol .post, .middlecol .alert, .middlecol .filterby { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; box-shadow: none !important; border-top: 1px solid var(--hp-line) !important; border-bottom: 1px solid var(--hp-line) !important; margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
  .sun_pub_mid_foot { gap: 5px; }
  #filterby-post { top: 58px; }
  .hp-density { display: none; }
}

/* ---------- buton „sus” ---------- */
.hp-top { position: fixed; right: 18px; bottom: 76px; z-index: 900; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hp-accent); color: #fff; font-size: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; cursor: pointer; }
.hp-top.on { opacity: 1; pointer-events: auto; transform: none; }
.hp-help { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 901; background: rgba(20, 20, 30, .92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); display: none; }
.hp-help.on { display: block; }
.hp-help kbd { background: rgba(255, 255, 255, .15); border-radius: 4px; padding: 1px 6px; margin: 0 2px; font-family: inherit; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .hp-top, .sun_pub_box textarea.postText { transition: none; } }

/* ---------- buton Live în antet (lângă profil), cu efect de undă ---------- */
.hp-live-li { display: flex; align-items: center; }
.hp-live { position: relative; width: 36px; height: 36px; margin: 0 6px; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; color: #fff !important; background: linear-gradient(135deg, #ff4d7d, #e0243f); box-shadow: 0 2px 8px rgba(224, 36, 63, .45); padding: 0 !important; text-decoration: none !important; }
.hp-live svg { position: relative; z-index: 2; }
.hp-live-wave { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.hp-live-wave i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 77, 125, .75); opacity: 0; animation: hp-wave 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.hp-live-wave i:nth-child(2) { animation-delay: .8s; }
.hp-live-wave i:nth-child(3) { animation-delay: 1.6s; }
@keyframes hp-wave { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.1); opacity: 0; } }
.hp-live:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { .hp-live-wave i { animation: none; } }
/* butonul Live din compozitor nu mai este necesar (acum e în antet) */
.sun_pub_mid_foot .poster-left-buttons:has(.btn-go-live) { display: none !important; }
@media (max-width: 767px) {
  .content-container.container { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: none !important; }
  .hp-live { width: 32px; height: 32px; margin: 0 3px; }
}

/* corecturi: aliniere buton Live în antet, butoane de acțiune pe postare */
.hp-live-li { float: left; height: 70px; display: flex; align-items: center; }
@media (max-width: 767px) { .hp-live-li { height: 63px; } .sun_pub_mid_foot .poster-left-buttons { flex: 0 0 auto !important; width: auto !important; } }
#head_menu_rght > li.hp-live-li { display: block !important; height: 70px; }
#head_menu_rght .hp-live-li > a.hp-live { width: 36px !important; height: 36px !important; min-height: 0 !important; margin: 17px 6px 0 !important; line-height: 1 !important; }
@media (max-width: 767px) {
  #head_menu_rght > li.hp-live-li { height: 63px; }
  #head_menu_rght .hp-live-li > a.hp-live { width: 32px !important; height: 32px !important; margin: 15px 3px 0 !important; }
}
@media (min-width: 768px) { .post .post-actions [class*="status-reaction-"], .post .post-actions .stat-item > span:not(.t_likes) { font-size: 0 !important; } .post .post-actions [class*="status-reaction-"] svg { width: 19px; height: 19px; } }
@media (min-width: 768px) { .post .post-actions .like-btn-post, .post .post-actions .like-btn-post * { font-size: 0 !important; } .post .post-actions .like-btn-post svg { width: 19px !important; height: 19px !important; } .post .post-actions .like-btn-post .t_likes { display: none; } }

/* =====================================================================
   Compozitor redesenat + pictograme fără fundal alb + carduri edge-to-edge pe toate paginile (mobil)
   ===================================================================== */
/* pictogramele din compozitor / filtre: fără chip alb sau gri, ton discret, accent la atingere */
.sun_pub_mid_foot .btn-file, .sun_pub_more .btn-file, .sun_pub_mid_foot .btn-go-live:not(:hover) { background-color: transparent !important; }
.sun_pub_mid_foot .btn-file, .sun_pub_more .btn-file { border: 0 !important; box-shadow: none !important; color: #4b4e5c !important; }
.sun_pub_mid_foot .btn-file:hover, .sun_pub_more .btn-file:hover, .sun_pub_mid_foot .btn-file:active { background-color: rgba(168, 72, 73, .09) !important; box-shadow: none !important; color: var(--hp-accent) !important; }
#filterby-post li a, #filterby-post li > * { background: transparent !important; }
#filterby-post li.active a, #filterby-post li a.active, #filterby-post li.active > * { background: rgba(168, 72, 73, .10) !important; }
.sun_pub_box svg, #filterby-post svg { background: transparent !important; }

@media (max-width: 767px) {
  /* compozitor: avatar + câmp pe un rând, acțiuni în rețea de 4 coloane egale sub o linie fină */
  .sun_pub_box { padding: 10px 12px 4px !important; }
  #post-textarea .wo_pub_txtara_combo { display: flex !important; align-items: center; gap: 10px; padding: 0 !important; }
  .sun_pub_box .post-avatar { position: static !important; flex: 0 0 34px; width: 34px !important; height: 34px !important; margin: 0 !important; }
  .sun_pub_box textarea.postText { flex: 1 1 auto; width: auto !important; margin: 0 !important; }
  .sun_pub_mid_foot { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 !important; margin: 10px -12px 0 !important; padding: 2px 6px 0 !important; border-top: 1px solid var(--hp-line); }
  .sun_pub_mid_foot .poster-left-buttons { display: flex !important; justify-content: center; margin: 0 !important; }
  .sun_pub_mid_foot .btn-file { height: 40px !important; width: 100% !important; border-radius: 10px !important; }
  .sun_pub_mid_foot .btn-file svg { width: 22px !important; height: 22px !important; }

  /* toate paginile: carduri pe toată lățimea ecranului */
  #contnet [class*="col-md-"], #contnet [class*="col-sm-"], #contnet [class*="col-lg-"] { padding-left: 0 !important; padding-right: 0 !important; }
  #contnet .row { margin-left: 0 !important; margin-right: 0 !important; }
  #contnet .panel, #contnet .panel-white, #contnet .wow_content, #contnet .sidebar-container, #contnet .wo_user_profile,
  #contnet .wow_page_cont, #contnet .wo_settings_page, #contnet .wow_set_cont, #contnet .wow_pages_cont, #contnet .wow_sett_sidebar,
  #contnet .list-group, #contnet .page-margin > .panel, #contnet .wow_main_cont, #contnet .wow_cover_cont {
    border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; box-shadow: none !important; margin-left: 0 !important; margin-right: 0 !important;
  }
  #contnet .panel, #contnet .wow_content { border-top: 1px solid var(--hp-line) !important; border-bottom: 1px solid var(--hp-line) !important; margin-bottom: 8px !important; }
  #contnet .modal-content { border-radius: 14px; }
}

@media (max-width: 767px) {
  .hp-e2e { border-radius: 0 !important; margin-left: 0 !important; margin-right: 0 !important; border-left-width: 0 !important; border-right-width: 0 !important; box-shadow: none !important; }
  .hp-e2e > img, .hp-e2e img.cover-image { border-radius: 0 !important; }
  #post-textarea { padding: 0 !important; }
  .sun_pub_box { padding: 10px 12px 4px !important; }
  .sun_pub_box #post-textarea .wo_pub_txtara_combo { margin: 0 !important; width: 100% !important; }
}
@media (max-width: 767px) {
  .profile-container { padding-left: 0 !important; padding-right: 0 !important; }
  #post-textarea .wo_pub_txtara_combo { padding: 0 12px !important; box-sizing: border-box; }
  .sun_pub_box { padding: 10px 0 4px !important; }
  .sun_pub_mid_foot { margin: 10px 0 0 !important; }
}
@media (max-width: 767px) {
  /* starea „nimic de afișat” (grupuri, albume etc.): pe toată lățimea, nu într-o jumătate de coloană */
  .cool-style-album:has(.empty_state), .cool-style-album:has(> .wow_content > .empty_state) { width: 100% !important; float: none !important; }
  .cool-style-album .wow_content:has(.empty_state) { min-height: 0 !important; }
}

/* ---------- paginile de autentificare/înregistrare cu panou lateral (înregistrare, confirmare cont, resetare parolă) ---------- */
.hp-brand { font-size: 26px; font-weight: 800; color: var(--hp-accent); letter-spacing: .01em; }
.wrapper > .login .login_innre .footer { white-space: normal; text-align: center; font-size: 12px; }
.wrapper > .login .login_innre .footer * { white-space: normal; }
.wrapper > .login .login_left_combo .logo { margin-top: 40px; }
@media (max-width: 767px) {
  .wrapper > .login { display: block !important; min-height: 100vh; background: #f0f2f5; }
  .wrapper > .login .login_left_combo_parent { width: 100% !important; height: auto !important; overflow: visible; padding: 56px 20px 8px; box-shadow: none !important; background: transparent !important; }
  .wrapper > .login .login_left_combo { min-width: 0 !important; max-width: none !important; height: auto !important; align-items: center; text-align: center; margin: 0 !important; padding: 0 !important; overflow: visible; }
  .wrapper > .login .login_left_combo .logo { margin: 0 0 6px !important; }
  .wrapper > .login .login_left_combo h1 { font-size: 20px !important; line-height: 1.25; margin: 6px 0 0 !important; }
  .wrapper > .login .login_left_combo p { display: none !important; }
  .wrapper > .login .night_day_switch { position: absolute !important; top: 12px; right: 14px; left: auto !important; }
  .wrapper > .login .col-md-6 { width: 100% !important; float: none !important; padding: 0 14px 20px !important; }
  .wrapper > .login .login_innre { padding: 0 !important; display: block !important; }
  .wrapper > .login form { max-width: none !important; min-width: 0 !important; width: 100% !important; border-radius: 16px !important; padding: 22px 18px !important; box-shadow: 0 2px 12px rgba(20, 20, 40, .08); }
  .wrapper > .login form .title { font-size: 20px !important; margin: 0 0 8px !important; }
  .wrapper > .login form .desc { font-size: 14px !important; margin: 0 0 8px !important; }
  .wrapper > .login .login_innre .footer { position: static !important; width: auto !important; margin-top: 18px; padding: 0 6px; }
}
@media (min-width: 768px) {
  .wrapper > .login .login_innre .footer { left: 0 !important; right: 0 !important; width: 100% !important; padding: 0 24px !important; box-sizing: border-box; text-align: center; }
}
.wrapper > .login .welcome-footer { left: 0 !important; right: 0 !important; width: 100% !important; box-sizing: border-box; padding: 0 16px !important; justify-content: center; flex-wrap: wrap; text-align: center; }
@media (max-width: 767px) { .wrapper > .login .welcome-footer { position: static !important; padding: 0 !important; } }
/* ---------- parola uitată (mobil): card mai compact ---------- */
@media (max-width: 767px) {
  .tag_welcome .tag_auth_box_auto .image-forgot { max-width: 62%; height: auto; margin-bottom: 4px; }
  .tag_welcome .tag_wel_middle { padding-top: 24px !important; }
}
/* ---------- pagina de login: nume site pe panoul violet (mobil) și footer în ecran ---------- */
@media (max-width: 767px) {
  .container-v5 .hp-brand { color: #fff; text-shadow: 0 1px 4px rgba(61, 31, 130, .75); }
  .container-v5 footer, .container-v5 .welcome-footer { left: 0 !important; right: 0 !important; width: 100% !important; box-sizing: border-box; padding: 0 12px !important; justify-content: center; flex-wrap: wrap; text-align: center; }
  .container-v5 .hp-brand { display: none; }
  .container-v5 .welcome-footer, .container-v5 .welcome-footer * { font-size: 12px !important; white-space: normal; }
}
