/* polls-hub.css — Polls › Home (/polls) and Polls › Explore (/polls/explore) in the NEW THEME: Nunito text, Poppins
   titles, navy #0B2C57, white cards (1.5px #CFE6F5, radius 18), red #E63329 for the main action; the site's zoom
   (--mo-zoom) and its wide width (--mo-wide = 1300px on screen, as the header). The compact poll block (.ph-cb,
   Views/poll/_PollCompact.cshtml) is shared by the two pages. Scoped under .ph. */
.ph {
    --navy: #0B2C57; --navy2: #0A2340; --blue: #1F7BC0; --cyan: #2BB3E3; --red: #E63329; --redD: #C4271E;
    --muted: #6C8098; --border: #CFE6F5; --line: #E3EEF6; --section: #E9F5FC; --section2: #F4F9FC;
    --green: #E7F7EE; --greenT: #1E7A45; --gold: #B7791F;
    font-family: 'Nunito', system-ui, sans-serif; color: var(--navy);
    zoom: var(--mo-zoom, 1); max-width: calc(var(--mo-wide, 1300px) / var(--mo-zoom, 1)); margin: 0 auto; padding: 26px 20px 64px;
}
.ph *, .ph *::before, .ph *::after { box-sizing: border-box; }
.ph h1, .ph h2, .ph h3, .ph .ph-btn { font-family: 'Poppins', system-ui, sans-serif; }
.ph a { text-decoration: none; }

.ph-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--section); color: var(--blue); font: 800 12.5px 'Nunito', system-ui, sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15.5px; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.ph-btn:active { transform: translateY(1px); }
.ph-btn-red { background: var(--red); color: #fff !important; box-shadow: 0 8px 20px rgba(230,51,41,.28); }
.ph-btn-red:hover { background: var(--redD); }
.ph-btn-ghost { background: #fff; color: var(--navy) !important; border-color: var(--border); }
.ph-btn-ghost:hover { border-color: var(--cyan); }
.ph-btn-light { background: #fff; color: var(--navy) !important; }
.ph-btn-light:hover { background: #E9F5FC; }
.ph-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- Home: the hero ---------------- */
.ph-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1.5px solid var(--border); border-radius: 24px; padding: 40px 44px; overflow: hidden; position: relative; }
.ph-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(43,179,227,.14), rgba(43,179,227,0) 70%); pointer-events: none; }
.ph-hero-txt { position: relative; z-index: 1; }
.ph-hero h1 { margin: 16px 0 12px; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.ph-lead { margin: 0 0 20px; font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--muted); }
/* the main message: polling your community earns money */
.ph-earn { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #FFF8E8 0%, #FFFDF7 100%); border: 1.5px solid #F3DFB0; }
.ph-earn-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #F5B51B; color: #3a2c05; font-size: 21px; box-shadow: 0 6px 16px rgba(245,181,27,.35); }
.ph-earn b { display: block; font: 800 17px/1.3 'Poppins', system-ui, sans-serif; color: var(--navy); margin-bottom: 3px; }
.ph-earn span { font-size: 15px; font-weight: 600; color: #5B4A1E; line-height: 1.5; }

/* the illustration: a paid poll live, the gifts coming in */
.ph-hero-art { position: relative; z-index: 1; min-height: 330px; display: grid; place-items: center; }
.ph-mock { width: min(100%, 380px); background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 24px 50px rgba(11,44,87,.14); transform: rotate(-2deg); }
.ph-mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ph-mock-live { padding: 3px 10px; border-radius: 999px; background: #FDEBEA; color: var(--red); font: 800 11.5px 'Poppins', sans-serif; letter-spacing: .05em; }
.ph-mock-n { font: 800 13px 'Poppins', sans-serif; color: var(--muted); }
.ph-mock-q { font: 800 18px/1.3 'Poppins', sans-serif; color: var(--navy); margin-bottom: 14px; }
.ph-mock-bar { position: relative; display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 14px; margin-bottom: 10px; border-radius: 12px; background: var(--section2); overflow: hidden; font-weight: 800; font-size: 14.5px; }
.ph-mock-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); opacity: .18; border-radius: 12px; animation: phGrow 1.6s cubic-bezier(.2,.8,.2,1) both; }
.ph-mock-bar span, .ph-mock-bar b { position: relative; }
.ph-mock-bar b { color: var(--c); font-family: 'Poppins', sans-serif; }
.ph-mock-foot { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--gold); }
@keyframes phGrow { from { width: 0; } }
.ph-gift { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #F3DFB0; box-shadow: 0 10px 24px rgba(11,44,87,.12); font-size: 14px; color: var(--navy); animation: phFloat 3.4s ease-in-out infinite; }
.ph-gift b { font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--gold); }
.ph-gift.g1 { top: 8%; right: 2%; }
.ph-gift.g2 { bottom: 12%; left: 0; animation-delay: -1.2s; }
.ph-gift.g3 { bottom: 0; right: 10%; animation-delay: -2.2s; }
@keyframes phFloat { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ph-gift, .ph-mock-bar::before { animation: none; } }

/* ---------------- a section ---------------- */
.ph-sec { margin-top: 60px; }
.ph-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ph-sechead h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--navy); }
.ph-sechead p { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.ph-sechead-r { display: flex; align-items: center; gap: 8px; }
.ph-arr { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: var(--navy); font: 800 22px/1 'Poppins', sans-serif; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; cursor: pointer; }
.ph-arr:hover:not(:disabled) { border-color: var(--cyan); }
.ph-arr:disabled { opacity: .35; cursor: default; }
.ph-new { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 9px 16px; border-radius: 999px; background: var(--navy); color: #fff !important; font: 700 14px 'Poppins', sans-serif; }
.ph-new:hover { background: var(--navy2); }
.ph-new i { font-size: 12px; }

/* the carousel of compact blocks */
.ph-rail { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 2px 2px 8px; }
.ph-rail::-webkit-scrollbar { display: none; }
.ph-rail .ph-cb { flex: 0 0 calc((100% - 2 * 18px) / 3); min-width: 270px; scroll-snap-align: start; }
.ph-rail-wrap.more-r .ph-rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent); }
.ph-rail-wrap.more-l .ph-rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px); mask-image: linear-gradient(90deg, transparent, #000 60px); }
.ph-rail-wrap.more-l.more-r .ph-rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
.ph-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 16px; text-align: center; border: 1.5px dashed var(--border); border-radius: 18px; background: #fff; color: var(--muted); font-weight: 700; }
.ph-empty > i { font-size: 34px; color: var(--cyan); }
.ph-empty p { margin: 0; }

/* ---------------- the compact poll block (shared) ---------------- */
.ph-cb { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.ph-cb:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,44,87,.1); }
.ph-cb-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: center / cover no-repeat var(--section); }
.ph-cb-media.ph-cb-noimg { background: linear-gradient(135deg, var(--navy) 0%, #1F5FA0 100%); color: rgba(255,255,255,.9); font-size: 34px; }
.ph-cb-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.ph-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--navy); font: 800 11px 'Nunito', system-ui, sans-serif; letter-spacing: .02em; }
.ph-tag-paid { background: #FFF3D6; color: #8B6508; }
.ph-tag-sp { background: var(--red); color: #fff; }
.ph-cb-state { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(11,44,87,.78); color: #fff; font: 800 11px 'Nunito', system-ui, sans-serif; }
.ph-cb-state.on { background: var(--red); }
.ph-cb-state.on::before { content: '● '; }
.ph-cb-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.ph-cb-title { font: 700 15.5px/1.35 'Poppins', system-ui, sans-serif; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-cb-owner { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.ph-cb-av { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff; font: 800 11px 'Poppins', sans-serif; }
.ph-cb-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-cb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-cb-cert { color: var(--cyan); font-size: 12px; }
.ph-cb-stats { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; color: var(--muted); }
.ph-cb-stats i { font-size: 12px; opacity: .85; }
.ph-cb-age { margin-left: auto; font-weight: 700; }

/* ---------------- Home: everything you need — 2 per row, a big icon each ---------------- */
.ph-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ph-feat { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 28px; }
.ph-feat-ic { flex: none; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 38px; color: #fff; }
.ph-feat.paid .ph-feat-ic { background: linear-gradient(135deg, #F5B51B, #E08A00); box-shadow: 0 12px 26px rgba(224,138,0,.3); }
.ph-feat.live .ph-feat-ic { background: linear-gradient(135deg, #FF5A4E, var(--red)); box-shadow: 0 12px 26px rgba(230,51,41,.28); }
.ph-feat.any .ph-feat-ic { background: linear-gradient(135deg, #48C6F0, var(--blue)); box-shadow: 0 12px 26px rgba(31,123,192,.28); }
.ph-feat.results .ph-feat-ic { background: linear-gradient(135deg, #1F5FA0, var(--navy)); box-shadow: 0 12px 26px rgba(11,44,87,.28); }
.ph-feat h3 { margin: 4px 0 8px; font-size: 20px; font-weight: 800; color: var(--navy); }
.ph-feat p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--muted); }
.ph-feat.paid { border-color: #F3DFB0; background: linear-gradient(180deg, #FFFCF4 0%, #fff 60%); }

/* ---------------- Home: the final call ---------------- */
.ph-final { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 34px 38px; border-radius: 24px; background: linear-gradient(135deg, var(--navy) 0%, #123B70 100%); color: #fff; }
.ph-final h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; color: #fff; }
.ph-final p { margin: 0; font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,.82); }

/* ---------------- Explore ---------------- */
.ph-xhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ph-xhead h1 { margin: 10px 0 4px; font-size: 30px; font-weight: 800; color: var(--navy); }
.ph-xhead p { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.ph-xgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.ph-xfeed { min-width: 0; }
.ph-xlist { display: flex; flex-direction: column; gap: 18px; }
/* the poll cards: inside the page's zoom, not zoomed again */
.ph .ogapoll-core { zoom: 1; max-width: none; margin: 0; }
.ph-xmore { text-align: center; padding: 18px 0; color: var(--muted); }
.ph-xempty { text-align: center; padding: 30px 16px; border: 1.5px dashed var(--border); border-radius: 18px; background: #fff; color: var(--muted); font-weight: 700; margin-top: 18px; }
.ph-xempty.end { border: none; background: none; padding: 18px; }
.ph-xretry { border: none; background: none; color: var(--blue); font-weight: 800; text-decoration: underline; cursor: pointer; }
.ph-xside { position: sticky; top: calc(var(--mo-hdr-h, 64px) / var(--mo-zoom, 1) + 16px); display: flex; flex-direction: column; gap: 22px;
    /* taller than the screen: it scrolls on its own (else its end could never be reached) */
    max-height: calc(100vh / var(--mo-zoom, 1) - var(--mo-hdr-h, 64px) / var(--mo-zoom, 1) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.ph-xblock h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--navy); }
.ph-xblock h2 i { color: var(--red); font-size: 16px; }
.ph-xstack { display: flex; flex-direction: column; gap: 12px; }
/* the side column: picture on the left, the title and figures on the right */
.ph-xstack .ph-cb { flex-direction: row; }
.ph-xstack .ph-cb-media { flex: none; width: 118px; aspect-ratio: auto; }
.ph-xstack .ph-cb-media.ph-cb-noimg { font-size: 26px; }
.ph-xstack .ph-cb-tags { left: 6px; top: 6px; flex-direction: column; align-items: flex-start; }
.ph-xstack .ph-tag { font-size: 10px; padding: 2px 7px; }
.ph-xstack .ph-cb-state { display: none; }
.ph-xstack .ph-cb-body { padding: 10px 12px; gap: 6px; min-width: 0; }
.ph-xstack .ph-cb-title { font-size: 14px; }
.ph-xstack .ph-cb-stats { gap: 9px; font-size: 12px; }

@media (min-width: 768px) and (max-width: 991px) { .ph-feat { flex-direction: column; gap: 16px; padding: 24px; } }
@media (max-width: 1099px) {
    .ph-hero { grid-template-columns: 1fr; padding: 32px 30px; }
    .ph-hero-art { min-height: 300px; }
}
@media (max-width: 767px) { .ph-feats { grid-template-columns: 1fr; } }
/* the side column's wrapper: nothing on a computer; on a tablet / phone it holds the strip and its ‹ › */
.ph-xside-wrap { display: contents; }
.ph-xside-arr { display: none; }
@media (max-width: 991px) {
    /* Explore on a tablet / phone: one column, Sponsored + Popular as a sideways strip on top */
    .ph-xgrid { grid-template-columns: 1fr; }
    .ph-xside-wrap { display: block; position: relative; order: -1; min-width: 0; }
    .ph-xside-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; }
    .ph-xside-arr.prev { left: 2px; } .ph-xside-arr.next { right: 2px; }
    .ph-xside-wrap.more-l .ph-xside-arr.prev, .ph-xside-wrap.more-r .ph-xside-arr.next { display: inline-flex; }
    .ph-xside { position: static; max-height: none; overflow-y: visible; order: -1; flex-direction: row; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; }
    .ph-xside::-webkit-scrollbar { display: none; }
    .ph-xblock { display: contents; }
    .ph-xblock h2 { display: none; }
    .ph-xstack { display: contents; }
    .ph-xstack .ph-cb { flex: 0 0 240px; flex-direction: column; }
    .ph-xstack .ph-cb-media { width: auto; aspect-ratio: 16 / 9; }
    .ph-xstack .ph-cb-tags { flex-direction: row; }
}
@media (max-width: 600px) {
    .ph { padding: 14px 12px 48px; }
    .ph-hero { padding: 24px 18px; border-radius: 20px; gap: 18px; }
    .ph-hero h1 { font-size: 28px; }
    .ph-lead { font-size: 15.5px; }
    .ph-hero-art { min-height: 260px; }
    .ph-gift { font-size: 12.5px; padding: 6px 11px; }
    .ph-cta .ph-btn { flex: 1 1 auto; }
    .ph-sechead h2 { font-size: 22px; }
    .ph-new { padding: 8px 12px; font-size: 13px; }
    .ph-rail .ph-cb { flex-basis: 78%; }
    .ph-feat { padding: 20px; gap: 16px; }
    .ph-feat-ic { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; }
    .ph-final { padding: 26px 20px; }
    .ph-final h2 { font-size: 23px; }
    .ph-xhead h1 { font-size: 25px; }
    .ph-xhead .ph-btn { width: 100%; }
}

/* Polls › Home: the poll block's own footer under the title (the poll card's rows and icons, ogapoll.css) */
.ph-cb-foot { display: flex; flex-direction: column; margin: 2px -14px -14px; }
.ph-cb-foot .ogapoll-pc-info, .ph-cb-foot .ogapoll-pc-stats { padding: 9px 14px; }
.ph-cb-row { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-right: 8px; }
.ph-cb-foot .ogapoll-pc-stat { font-size: 12.5px; gap: 5px; }
.ph-cb-foot .ogapoll-pc-stat img, .ph-cb-foot .ogapoll-pc-icon img, .ph-cb-foot .ogapoll-pc-status img { width: 17px; height: 17px; }
.ph-cb-foot .ogapoll-pc-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; }
.ph-cb-foot .ogapoll-pc-status.open { color: #1E9E55; } .ph-cb-foot .ogapoll-pc-status.closed { color: var(--muted); }
.ph-cb-foot .ogapoll-pc-author { padding: 10px 14px 12px; gap: 10px; }
.ph-cb-foot .ph-cb-fav { position: relative; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; font: 800 13px 'Poppins', sans-serif; }
.ph-cb-foot .ph-cb-fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-cb-foot .ogapoll-pc-who { min-width: 0; }
.ph-cb-foot .ogapoll-pc-line1 { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.ph-cb-foot .ogapoll-pc-name { font: 800 13.5px 'Poppins', sans-serif; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ph-cb-foot .ogapoll-pc-handle { font-size: 11.5px; }
.ph-cb-foot .ogapoll-pc-line2 { font-size: 11.5px; }
.ph-cb-foot .ogapoll-pc-line2 img { width: 14px; height: 14px; }
.ph-rail .ph-cb-title { min-height: 0; }

/* a paid poll: the least a vote costs in OGC, next to its votes (as the poll card) */
.ph-cb-foot .ph-cb-ogc { font-size: 12.5px; }
/* Explore's side column: the picture on the left, the title and the poll block's two rows on the right */
.ph-cb-side .ph-cb-foot { margin: 4px -12px -10px; }
.ph-cb-side .ph-cb-foot .ogapoll-pc-info, .ph-cb-side .ph-cb-foot .ogapoll-pc-stats { padding: 6px 12px; }
.ph-cb-side .ph-cb-row { gap: 8px; margin-right: 4px; }
.ph-cb-side .ph-cb-foot .ogapoll-pc-stat, .ph-cb-side .ph-cb-foot .ogapoll-pc-status, .ph-cb-side .ph-cb-foot .ph-cb-ogc { font-size: 11.5px; gap: 3px; }
.ph-cb-side .ph-cb-foot img { width: 14px !important; height: 14px !important; }
