hesabixWpTheme/assets/css/support-entry-dialog.css

902 lines
21 KiB
CSS

/**
* دیالوگ ورود + حمایت — صفحه نخست
*/
.hx-entry-dialog {
position: fixed;
inset: 0;
z-index: 10050;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 0;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.28s ease, visibility 0.28s ease;
}
@media (min-width: 640px) {
.hx-entry-dialog {
align-items: center;
padding: 1.5rem;
}
}
.hx-entry-dialog.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
html.hx-entry-dialog-open,
body.hx-entry-dialog-open {
overflow: hidden !important;
}
.hx-entry-dialog__backdrop {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.62);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.hx-entry-dialog__panel {
position: relative;
z-index: 1;
width: 100%;
max-width: 28rem;
max-height: min(94vh, 56rem);
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 48%, #fff7ed 100%);
border-radius: 1.5rem 1.5rem 0 0;
box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(14, 165, 233, 0.12);
padding: 1.25rem 1.25rem 1.5rem;
transform: translateY(100%);
transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@media (min-width: 640px) {
.hx-entry-dialog__panel {
max-width: 34rem;
padding: 1.5rem 1.75rem 1.75rem;
border-radius: 1.5rem;
transform: translateY(1.5rem) scale(0.96);
}
}
@media (min-width: 1024px) {
.hx-entry-dialog {
padding: 1rem;
}
.hx-entry-dialog__panel {
max-width: 54rem;
width: 100%;
max-height: calc(100dvh - 2rem);
padding: 1.125rem 1.5rem 1.125rem;
overflow: hidden;
display: flex;
flex-direction: column;
}
.hx-entry-dialog__panel > .hx-entry-dialog__layout {
flex: 1;
min-height: 0;
}
}
.hx-entry-dialog.is-open .hx-entry-dialog__panel {
transform: translateY(0) scale(1);
}
@media (min-width: 640px) {
.hx-entry-dialog.is-open .hx-entry-dialog__panel {
transform: translateY(0) scale(1);
}
}
.hx-entry-dialog__close {
position: absolute;
top: 0.875rem;
inset-inline-end: 0.875rem;
z-index: 30;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border: 1px solid var(--slate-200, #e2e8f0);
border-radius: 0.625rem;
background: #fff;
color: var(--slate-500, #64748b);
cursor: pointer;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.hx-entry-dialog__close:hover {
color: var(--brand-600, #0284c7);
border-color: rgba(14, 165, 233, 0.35);
}
.hx-entry-dialog__layout {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
@media (min-width: 1024px) {
.hx-entry-dialog__layout {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
grid-template-rows: minmax(0, 1fr) auto;
gap: 0.625rem 1.25rem;
align-items: stretch;
overflow: hidden;
}
}
.hx-entry-dialog__header {
padding-inline-end: 2.5rem;
margin-bottom: 0;
}
@media (min-width: 1024px) {
.hx-entry-dialog__header {
grid-column: 1;
grid-row: 1;
padding-inline-end: 0;
align-self: center;
overflow: hidden;
}
}
.hx-entry-dialog__main {
display: flex;
flex-direction: column;
gap: 1rem;
min-width: 0;
}
@media (min-width: 1024px) {
.hx-entry-dialog__main {
grid-column: 2;
grid-row: 1;
gap: 0.5rem;
min-height: 0;
overflow: hidden;
justify-content: center;
}
}
.hx-entry-dialog__badge {
display: inline-flex;
align-items: center;
gap: 0.375rem;
margin: 0 0 0.625rem;
padding: 0.25rem 0.625rem;
font-size: 0.6875rem;
font-weight: 600;
color: var(--brand-600, #0284c7);
background: rgba(14, 165, 233, 0.1);
border: 1px solid rgba(14, 165, 233, 0.22);
border-radius: 999px;
}
.hx-entry-dialog__badge-dot {
width: 0.375rem;
height: 0.375rem;
border-radius: 50%;
background: var(--success-500, #059669);
animation: hx-entry-pulse 2s ease infinite;
}
@keyframes hx-entry-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(0.85); }
}
.hx-entry-dialog__title {
margin: 0 0 0.5rem;
font-size: 1.125rem;
font-weight: 800;
line-height: 1.45;
color: var(--slate-800, #1e293b);
letter-spacing: -0.02em;
}
@media (min-width: 400px) {
.hx-entry-dialog__title { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
.hx-entry-dialog__title {
font-size: 1.125rem;
line-height: 1.35;
margin-bottom: 0.375rem;
}
.hx-entry-dialog__subtitle,
.hx-entry-dialog__guarantee,
.hx-entry-dialog__shad-hint {
font-size: 0.75rem;
line-height: 1.5;
margin-bottom: 0.375rem;
}
.hx-entry-dialog__subtitle {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.hx-entry-dialog__guarantee {
padding: 0.375rem 0.5rem;
margin-bottom: 0.25rem;
}
.hx-entry-dialog__stats {
display: none;
}
.hx-entry-dialog__shad-hint {
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 0;
}
.hx-entry-dialog__badge {
margin-bottom: 0.5rem;
}
}
.hx-entry-dialog__subtitle,
.hx-entry-dialog__guarantee,
.hx-entry-dialog__stats,
.hx-entry-dialog__shad-hint {
margin: 0 0 0.5rem;
font-size: 0.8125rem;
line-height: 1.65;
color: var(--slate-600, #475569);
}
.hx-entry-dialog__guarantee {
padding: 0.5rem 0.625rem;
background: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(14, 165, 233, 0.2);
border-radius: 0.625rem;
color: var(--slate-700, #334155);
font-weight: 500;
}
.hx-entry-dialog__stats {
font-size: 0.75rem;
color: var(--slate-500, #64748b);
}
.hx-entry-dialog__shad-hint {
font-size: 0.75rem;
color: var(--slate-500, #64748b);
border-inline-start: 3px solid var(--slate-300, #cbd5e1);
padding-inline-start: 0.5rem;
}
/* کارت سطح */
.hx-entry-tier {
position: relative;
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 1.125rem;
margin-bottom: 0;
border-radius: 1rem;
border: 1px solid rgba(255, 255, 255, 0.6);
overflow: hidden;
transition: background 0.35s ease, box-shadow 0.35s ease;
}
@media (min-width: 1024px) {
.hx-entry-tier {
padding: 0.625rem 0.875rem;
gap: 0.75rem;
min-height: 0;
}
}
.hx-entry-tier__glow {
position: absolute;
inset: 0;
opacity: 0.45;
pointer-events: none;
transition: opacity 0.35s ease;
}
.hx-entry-tier--tier-cigarette { background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.hx-entry-tier--tier-cigarette .hx-entry-tier__glow { background: radial-gradient(circle at 70% 30%, #fbbf24, transparent 50%); }
.hx-entry-tier--tier-chocolate { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.hx-entry-tier--tier-chocolate .hx-entry-tier__glow { background: radial-gradient(circle at 30% 70%, #c2410c, transparent 45%); }
.hx-entry-tier--tier-cookie { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.hx-entry-tier--tier-cookie .hx-entry-tier__glow { background: radial-gradient(circle at 80% 80%, #eab308, transparent 50%); }
.hx-entry-tier--tier-coffee { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.hx-entry-tier--tier-coffee .hx-entry-tier__glow { background: radial-gradient(circle at 80% 20%, #6ee7b7, transparent 55%); }
.hx-entry-tier--tier-drink { background: linear-gradient(135deg, #ecfeff, #cffafe); }
.hx-entry-tier--tier-drink .hx-entry-tier__glow { background: radial-gradient(circle at 50% 50%, #22d3ee, transparent 55%); }
.hx-entry-tier--tier-game { background: linear-gradient(135deg, #faf5ff, #ede9fe); }
.hx-entry-tier--tier-game .hx-entry-tier__glow { background: radial-gradient(circle at 20% 80%, #a855f7, transparent 50%); }
.hx-entry-tier--tier-breakfast { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.hx-entry-tier--tier-breakfast .hx-entry-tier__glow { background: radial-gradient(circle at 20% 80%, #fcd34d, transparent 50%); }
.hx-entry-tier--tier-lunch { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.hx-entry-tier--tier-lunch .hx-entry-tier__glow { background: radial-gradient(circle at 70% 30%, #fb923c, transparent 50%); }
.hx-entry-tier--tier-vip-lunch { background: linear-gradient(135deg, #fff1f2, #fce7f3); }
.hx-entry-tier--tier-vip-lunch .hx-entry-tier__glow { background: radial-gradient(circle at 25% 75%, #f472b6, transparent 50%); }
.hx-entry-tier--tier-cloud { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.hx-entry-tier--tier-cloud .hx-entry-tier__glow { background: radial-gradient(circle at 50% 0%, #38bdf8, transparent 55%); }
.hx-entry-tier--tier-bronze { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.hx-entry-tier--tier-bronze .hx-entry-tier__glow { background: radial-gradient(circle at 30% 50%, #d97706, transparent 45%); }
.hx-entry-tier--tier-silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.hx-entry-tier--tier-silver .hx-entry-tier__glow { background: radial-gradient(circle at 80% 50%, #94a3b8, transparent 50%); }
.hx-entry-tier--tier-gold { background: linear-gradient(135deg, #fffbeb, #fde047); }
.hx-entry-tier--tier-gold .hx-entry-tier__glow { background: radial-gradient(circle at 50% 100%, #eab308, transparent 50%); }
.hx-entry-tier--tier-star { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.hx-entry-tier--tier-star .hx-entry-tier__glow { background: radial-gradient(circle at 20% 20%, #a78bfa, transparent 55%); }
.hx-entry-tier--tier-wrestling { background: linear-gradient(135deg, #ecfccb, #d9f99d); }
.hx-entry-tier--tier-wrestling .hx-entry-tier__glow { background: radial-gradient(circle at 75% 25%, #84cc16, transparent 50%); }
.hx-entry-tier--pop {
animation: hx-entry-tier-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes hx-entry-tier-pop {
0% { transform: scale(0.97); }
45% { transform: scale(1.02); }
100% { transform: scale(1); }
}
.hx-entry-tier__visual {
position: relative;
z-index: 1;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 4.5rem;
height: 4.5rem;
}
@media (min-width: 1024px) {
.hx-entry-tier__visual {
width: 3.5rem;
height: 3.5rem;
}
}
.hx-entry-tier__emoji {
font-size: 2.75rem;
line-height: 1;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
@media (min-width: 1024px) {
.hx-entry-tier__emoji {
font-size: 2rem;
}
.hx-entry-tier__sticker {
font-size: 1.125rem;
}
}
.hx-entry-tier__sticker {
position: absolute;
bottom: -0.125rem;
inset-inline-end: -0.25rem;
font-size: 1.375rem;
line-height: 1;
padding: 0.125rem;
background: #fff;
border-radius: 999px;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
animation: hx-entry-sticker-bounce 2s ease-in-out infinite;
}
.hx-entry-tier__sticker[hidden] {
display: none;
}
@keyframes hx-entry-sticker-bounce {
0%, 100% { transform: translateY(0) rotate(-6deg); }
50% { transform: translateY(-3px) rotate(6deg); }
}
.hx-entry-tier__body {
position: relative;
z-index: 1;
min-width: 0;
}
.hx-entry-tier__title {
margin: 0 0 0.25rem;
font-size: 1.0625rem;
font-weight: 800;
color: var(--slate-800, #1e293b);
line-height: 1.35;
}
@media (min-width: 1024px) {
.hx-entry-tier__title {
font-size: 0.9375rem;
margin-bottom: 0.125rem;
}
.hx-entry-tier__impact {
font-size: 0.75rem;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.hx-entry-tier__tagline {
margin-top: 0.125rem;
font-size: 0.6875rem;
}
}
.hx-entry-tier__impact {
margin: 0;
font-size: 0.8125rem;
line-height: 1.5;
color: var(--slate-600, #475569);
}
.hx-entry-tier__tagline {
margin: 0.375rem 0 0;
font-size: 0.75rem;
font-weight: 600;
color: var(--accent-500, #f97316);
}
.hx-entry-tier__tagline[hidden] {
display: none;
}
/* نوار لغزان */
.hx-entry-slider-wrap {
margin-bottom: 0;
padding: 1rem 1.125rem;
background: rgba(255, 255, 255, 0.72);
border: 1px solid var(--slate-200, #e2e8f0);
border-radius: 1rem;
}
@media (min-width: 1024px) {
.hx-entry-slider-wrap {
padding: 0.625rem 0.75rem;
flex-shrink: 0;
}
.hx-entry-slider__top {
margin-bottom: 0.375rem;
}
.hx-entry-slider__value {
font-size: 1.125rem;
}
.hx-entry-slider__range-hint {
margin-top: 0.25rem;
font-size: 0.625rem;
}
}
.hx-entry-slider__range-hint {
display: flex;
justify-content: space-between;
gap: 0.5rem;
margin: 0.375rem 0 0;
font-size: 0.6875rem;
color: var(--slate-400, #94a3b8);
}
.hx-entry-slider__label {
display: block;
font-size: 0.8125rem;
font-weight: 600;
color: var(--slate-600, #475569);
margin-bottom: 0.5rem;
}
.hx-entry-amount-field {
display: flex;
align-items: stretch;
gap: 0;
margin-bottom: 0.75rem;
border: 1px solid var(--slate-200, #e2e8f0);
border-radius: 0.75rem;
background: #fff;
overflow: hidden;
transition: border-color 0.15s, box-shadow 0.15s;
}
.hx-entry-amount-field:focus-within {
border-color: rgba(14, 165, 233, 0.55);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.hx-entry-amount-input {
flex: 1;
min-width: 0;
border: 0;
background: transparent;
padding: 0.625rem 0.875rem;
font-size: 1.125rem;
font-weight: 800;
font-variant-numeric: tabular-nums;
color: var(--brand-600, #0284c7);
text-align: left;
outline: none;
}
.hx-entry-amount-field__unit {
display: inline-flex;
align-items: center;
padding: 0 0.875rem;
font-size: 0.8125rem;
font-weight: 600;
color: var(--slate-500, #64748b);
background: var(--slate-50, #f8fafc);
border-inline-start: 1px solid var(--slate-200, #e2e8f0);
white-space: nowrap;
}
.hx-entry-slider {
width: 100%;
height: 0.5rem;
margin: 0;
-webkit-appearance: none;
appearance: none;
background: linear-gradient(90deg, var(--brand-400, #38bdf8), var(--accent-400, #fb923c));
border-radius: 999px;
outline: none;
cursor: pointer;
}
.hx-entry-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 1.375rem;
height: 1.375rem;
border-radius: 50%;
background: #fff;
border: 3px solid var(--brand-500, #0ea5e9);
box-shadow: 0 2px 8px rgba(14, 165, 233, 0.45);
cursor: grab;
transition: transform 0.15s ease;
}
.hx-entry-slider::-webkit-slider-thumb:active {
transform: scale(1.12);
cursor: grabbing;
}
.hx-entry-slider::-moz-range-thumb {
width: 1.375rem;
height: 1.375rem;
border-radius: 50%;
background: #fff;
border: 3px solid var(--brand-500, #0ea5e9);
box-shadow: 0 2px 8px rgba(14, 165, 233, 0.45);
cursor: grab;
}
/* فیلدهای اختیاری */
.hx-entry-extra {
margin-bottom: 1rem;
border: 1px solid var(--slate-200, #e2e8f0);
border-radius: 0.75rem;
background: rgba(255, 255, 255, 0.65);
overflow: hidden;
}
@media (min-width: 1024px) {
.hx-entry-extra {
margin-bottom: 0;
flex-shrink: 0;
}
.hx-entry-extra summary {
padding: 0.375rem 0.5rem;
font-size: 0.6875rem;
}
.hx-entry-extra__inner {
padding: 0 0.5rem 0.5rem;
gap: 0.375rem;
}
.hx-entry-input {
padding: 0.375rem 0.5rem;
font-size: 0.8125rem;
}
.hx-entry-check {
font-size: 0.6875rem;
}
}
.hx-entry-extra summary {
padding: 0.625rem 0.875rem;
font-size: 0.8125rem;
font-weight: 600;
color: var(--slate-600, #475569);
cursor: pointer;
list-style: none;
}
.hx-entry-extra summary::-webkit-details-marker {
display: none;
}
.hx-entry-extra__inner {
padding: 0 0.875rem 0.875rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.hx-entry-input {
width: 100%;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
font-family: inherit;
border: 1px solid var(--slate-200, #e2e8f0);
border-radius: 0.5rem;
background: #fff;
}
.hx-entry-input:focus {
outline: none;
border-color: var(--brand-500, #0ea5e9);
box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}
.hx-entry-check {
display: flex;
align-items: flex-start;
gap: 0.5rem;
font-size: 0.8125rem;
color: var(--slate-600, #475569);
cursor: pointer;
}
.hx-entry-check input {
margin-top: 0.125rem;
}
/* دکمه‌ها */
.hx-entry-dialog__footer {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.25rem;
padding-top: 1rem;
border-top: 1px solid rgba(148, 163, 184, 0.25);
}
@media (min-width: 1024px) {
.hx-entry-dialog__layout > .hx-entry-dialog__footer {
grid-column: 1 / -1;
grid-row: 2;
display: grid;
grid-template-columns: 1fr 1fr auto auto;
grid-template-rows: auto auto;
gap: 0.375rem 0.75rem;
align-items: center;
margin-top: 0;
padding-top: 0.625rem;
flex-shrink: 0;
}
.hx-entry-btn--support {
grid-column: 1;
grid-row: 1;
}
.hx-entry-btn--free {
grid-column: 2;
grid-row: 1;
}
.hx-entry-link {
grid-column: 3;
grid-row: 1;
font-size: 0.75rem;
white-space: nowrap;
}
.hx-entry-link--compare {
grid-column: 4;
grid-row: 1;
font-size: 0.75rem;
white-space: nowrap;
}
.hx-entry-dismiss {
grid-column: 1 / 3;
grid-row: 2;
justify-content: flex-start;
margin-top: 0;
font-size: 0.6875rem;
}
.hx-entry-free-note {
grid-column: 3 / -1;
grid-row: 2;
text-align: end;
margin: 0;
font-size: 0.625rem;
white-space: nowrap;
}
.hx-entry-btn {
min-height: 2.375rem;
padding: 0.5rem 0.625rem;
font-size: 0.8125rem;
}
}
/* دسکتاپ با ارتفاع کم — فشرده‌تر بدون اسکرول */
@media (min-width: 1024px) and (max-height: 820px) {
.hx-entry-dialog__panel {
padding: 0.875rem 1.25rem 0.875rem;
}
.hx-entry-dialog__layout {
gap: 0.5rem 1rem;
}
.hx-entry-dialog__title {
font-size: 1rem;
}
.hx-entry-dialog__subtitle {
-webkit-line-clamp: 2;
}
.hx-entry-tier__visual {
width: 3rem;
height: 3rem;
}
.hx-entry-tier__emoji {
font-size: 1.75rem;
}
.hx-entry-dialog__layout > .hx-entry-dialog__footer {
padding-top: 0.5rem;
}
}
.hx-entry-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 3rem;
padding: 0.75rem 1rem;
border: 0;
border-radius: 0.875rem;
font-family: inherit;
font-size: 0.9375rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
}
.hx-entry-btn:active:not(:disabled) {
transform: scale(0.98);
}
.hx-entry-btn--support {
color: #fff;
background: linear-gradient(135deg, var(--success-500, #059669), #10b981);
box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.hx-entry-btn--support:hover:not(:disabled) {
background: linear-gradient(135deg, #10b981, #34d399);
box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}
.hx-entry-btn--support:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.hx-entry-btn--free {
color: var(--slate-700, #334155);
background: #fff;
border: 2px solid var(--slate-200, #e2e8f0);
}
.hx-entry-btn--free:hover {
border-color: var(--brand-400, #38bdf8);
color: var(--brand-600, #0284c7);
background: var(--light-50, #f0f9ff);
}
.hx-entry-link {
display: inline-block;
text-align: center;
font-size: 0.8125rem;
font-weight: 600;
color: var(--brand-600, #0284c7);
text-decoration: none;
}
.hx-entry-link:hover {
color: var(--brand-500, #0ea5e9);
text-decoration: underline;
}
.hx-entry-link.is-hidden {
display: none;
}
.hx-entry-dismiss {
display: flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
margin-top: 0.25rem;
font-size: 0.75rem;
color: var(--slate-500, #64748b);
cursor: pointer;
}
.hx-entry-free-note {
margin: 0.25rem 0 0;
text-align: center;
font-size: 0.6875rem;
color: var(--slate-400, #94a3b8);
}
.is-hidden {
display: none !important;
}
@media (prefers-reduced-motion: reduce) {
.hx-entry-dialog,
.hx-entry-dialog__panel,
.hx-entry-tier--pop,
.hx-entry-dialog__badge-dot,
.hx-entry-tier__sticker {
animation: none !important;
transition: none !important;
}
}