/* /home: En Kalabalık Odalar + Gruplar (unter Haberler) */
.hmc { max-width: 1240px; margin: 0 auto 36px; padding: 0 16px; box-sizing: border-box; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.hmc-col { min-width: 0; }
.hmc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-left: 4px; }
.hmc-head > div { padding-left: 14px; border-left: 2px solid #f5a623; }
.hmc-ic { object-fit: contain; image-rendering: pixelated; flex: none; }
.hmc-head h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--px-ink, #232836); }
.hmc-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted, #8a93a0); }
.hmc-card, .hmc-group { background: #fff; border-radius: 14px; box-shadow: 0 6px 18px -10px rgba(40, 50, 110, .25); }
.hmc-card { padding: 4px 20px; }
.hmc-room { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 14px; }
.hmc-room + .hmc-room { border-top: 1px solid #eceff3; }
.hmc-room-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmc-room-n { flex: none; font-size: 12px; color: var(--muted, #8a93a0); }
.hmc-go { flex: none; padding: 6px 14px; border-radius: 8px; background: #e8f7fb; color: #2bb3d3; font-size: 12px; font-weight: 700; text-decoration: none; }
.hmc-go:hover { background: #2bb3d3; color: #fff; }
.hmc-list { display: flex; flex-direction: column; gap: 12px; }
.hmc-group { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.hmc-badge { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #2a2e38; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hmc-badge img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.hmc-gt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hmc-gt b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmc-gt small { font-size: 12px; color: var(--muted, #8a93a0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmc-n { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 10px; background: #fff1e0; color: #f08a00; font-size: 13px; font-weight: 800; }
.hmc-n img { image-rendering: pixelated; }
html[data-theme="dark"] .hmc-card, html[data-theme="dark"] .hmc-group { background: #202531; box-shadow: none; border: 1px solid #2f3748; }
html[data-theme="dark"] .hmc-room + .hmc-room { border-color: #2f3748; }
html[data-theme="dark"] .hmc-go { background: #1f3a44; color: #6fd3ea; }
html[data-theme="dark"] .hmc-n { background: #3a2d18; color: #f5b04a; }
@media (max-width: 860px) { .hmc { grid-template-columns: minmax(0, 1fr); } }
html[data-theme="dark"] .hmc-head h2 { color: #e8ecf3; }

/* room snapshot on the left of each row, shown at its original size */
.hmc-thumb { flex: none; border-radius: 10px; overflow: hidden; display: block; line-height: 0; }
.hmc-thumb:empty { width: 110px; height: 110px; background: #e8f7fb url('/images/icons/room.png') center / 36px no-repeat; }
.hmc-thumb img { display: block; max-width: none; image-rendering: pixelated; }
html[data-theme="dark"] .hmc-thumb:empty { background-color: #1f3a44; }
.hmc-card:has(.hmc-empty), .hmc-list .hmc-empty { padding: 0; }
.hmc-empty { margin: 0; }
.hmc-thumb-s img { width: 110px; height: 110px; image-rendering: auto; }

/* richer room row: picture, name, owner, description, chips, join button */
.hmc-room { align-items: center; gap: 16px; padding: 16px 0; }
.hmc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hmc-info .hmc-room-name { flex: none; font-size: 16px; }
.hmc-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, #8a93a0); }
.hmc-owner img { width: 22px; height: 22px; border-radius: 50%; background: #e8f7fb; object-fit: cover; object-position: center 0; }
.hmc-owner b { color: var(--px-ink, #232836); font-weight: 700; }
.hmc-desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--px-ink, #3a4150); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hmc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hmc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f5; color: #566070; }
.hmc-chip img { width: 14px; height: 14px; image-rendering: pixelated; }
.hmc-chip-n { background: #e8f7fb; color: #2bb3d3; }
.hmc-chip-s { background: #fff1e0; color: #f08a00; }
.hmc-chip-open { background: #e3f6e8; color: #1f8a3b; }
.hmc-chip-lock { background: #fde6e6; color: #c23030; }
.hmc-chip-t { background: #f0ecfb; color: #7a5ad0; }
html[data-theme="dark"] .hmc-owner b, html[data-theme="dark"] .hmc-desc { color: #e8ecf3; }
html[data-theme="dark"] .hmc-chip { background: #2a3140; color: #b6c0cb; }
html[data-theme="dark"] .hmc-chip-n { background: #1f3a44; color: #6fd3ea; }
html[data-theme="dark"] .hmc-chip-open { background: #1d3524; color: #6fd187; }
html[data-theme="dark"] .hmc-chip-lock { background: #3d2222; color: #f08a8a; }
html[data-theme="dark"] .hmc-chip-s { background: #3a2d18; color: #f5b04a; }
html[data-theme="dark"] .hmc-chip-t { background: #2d2748; color: #b9a4f0; }
@media (max-width: 560px) { .hmc-room { flex-wrap: wrap; } .hmc-info { flex-basis: calc(100% - 126px); } .hmc-go { margin-left: 126px; } }

/* Arkadaşını Davet Et (partials/referral-card.njk), same column and head style as the other home sections */
.rfb { max-width: 1240px; margin: 0 auto 36px; padding: 0 16px; box-sizing: border-box; }
/* 42px GIF with transparent border, scaled so the figure matches the news icon (37x36); negative margins swallow the border */
.rfb .rfb-ic { width: 48px; height: 48px; margin: -6px -7px -7px -5px; image-rendering: pixelated !important; }
.rfb-title { font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--px-ink, #14233a); }
.rfb-soon { flex: none; padding: 8px 16px; border-radius: 999px; background: #e53950; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; }
.rfb-card { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #e3ebf7; box-shadow: none; }
.rfb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rfb-facts li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--px-page, #f2f6fc); }
.rfb-facts img { flex: none; width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.rfb-facts span { display: flex; flex-direction: column; min-width: 0; }
.rfb-facts b { color: var(--px-ink, #14233a); font-size: 17px; line-height: 1.25; }
.rfb-facts small { color: #6b7b92; font-size: 13px; }
.rfb-note { margin: 14px 2px 0; color: #6b7b92; font-size: 13px; line-height: 1.5; }
.rfb-note b { color: var(--px-ink, #14233a); }
.rfb-copy { display: flex; gap: 10px; margin-top: 14px; }
.rfb-copy input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--px-page, #f2f6fc); box-shadow: inset 0 0 0 1px #d6e2f4; color: #33415a; font: inherit; font-size: 13px; }
.rfb-btn { flex: none; padding: 0 22px; border: 0; border-radius: 12px; background: var(--px-purple, #8f6ee0); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rfb-btn:hover { filter: brightness(1.08); }
.rfb-bar { height: 10px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #e3ebf7; }
.rfb-bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--px-green, #1fbf5b); transition: width .5s ease; }
.rfb-list { margin-top: 10px; font-size: 13px; color: var(--px-ink, #14233a); }
.rfb-list summary { cursor: pointer; font-weight: 700; }
.rfb-list div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rfb-list span { padding: 3px 10px; border-radius: 999px; background: var(--px-page, #f2f6fc); }
html[data-theme="dark"] .rfb-card { background: #20262d; border-color: #2c333b; }
html[data-theme="dark"] .rfb-facts li, html[data-theme="dark"] .rfb-copy input, html[data-theme="dark"] .rfb-list span { background: #181d23; box-shadow: none; }
html[data-theme="dark"] .rfb-title, html[data-theme="dark"] .rfb-facts b, html[data-theme="dark"] .rfb-note b, html[data-theme="dark"] .rfb-copy input, html[data-theme="dark"] .rfb-list { color: #e8ecf3; }
