/* الرئيسية والصفحات الثانوية (إعدادات، خطوط، نسخ، سلة، عن التطبيق، دخول) */
.home-bar { background: transparent; }
.home-bar .bar-default, .home-bar .bar-search { display: flex; align-items: center; width: 100%; gap: 2px; }
.search-input { border-radius: 999px; padding-block: 10px; margin-inline-start: 4px; }
.hero { display: grid; justify-items: center; gap: 4px; padding: 0 16px 12px; }
.hero .brand { margin-top: 6px; }
.stats { color: var(--text-muted); font-size: .92rem; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }

.reminder { display: flex; gap: 14px; margin: 4px 16px 12px; padding: 16px 18px; background: var(--surface-tint); border: 1px solid var(--border); box-shadow: none; }
.reminder-ic { color: var(--primary); }
.reminder-ic .ic { width: 30px; height: 30px; }
.reminder strong { display: block; }
.reminder p { font-size: .88rem; color: var(--text-muted); margin-top: 2px; }
.reminder-actions { display: flex; gap: 4px; margin-top: 6px; margin-inline-start: -10px; }

.poem-list { display: grid; gap: 12px; padding: 0 16px calc(96px + var(--safe-b)); }
html[data-view="grid"] .poem-list { grid-template-columns: 1fr 1fr; align-items: start; }
.page-trash .poem-list, .page-settings .poem-list { padding: 0; }
.poem-card { position: relative; background: var(--surface); animation: fade-in var(--t) both; }
.card-link { display: block; padding: 20px 22px 16px; border-radius: inherit; }
.card-title { font-family: var(--poem-font); font-size: calc(var(--poem-size) * 1.05); font-weight: 700; line-height: 1.5; padding-inline-end: 34px; margin-bottom: 6px; }
.card-verse { margin: 4px 0 10px; }
.card-verse .verse { font-size: calc(var(--poem-size) * .82); }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-muted); }
.pin-mark { color: var(--primary); display: inline-flex; }
.pin-mark .ic { width: 18px; height: 18px; }
.card-more { position: absolute; top: 10px; inset-inline-end: 8px; width: 38px; height: 38px; color: var(--text-muted); opacity: 0; transition: opacity var(--t); }
.poem-card:hover .card-more, .card-more:focus-visible { opacity: 1; }
@media (hover: none) { .card-more { display: none; } }
.poem-card.is-pressing { transform: scale(.985); transition: transform 120ms; }
html[data-view="grid"] .card-link { padding: 16px 16px 12px; }
html[data-view="grid"] .card-title { font-size: calc(var(--poem-size) * .95); }

/* سلة المحذوفات */
.trash-card { padding: 18px 20px 8px; }
.trash-card .card-title { padding: 0; }
.trash-actions { display: flex; gap: 4px; margin: 8px -10px 0; border-top: 1px solid var(--border); padding-top: 4px; }

/* الإعدادات */
.preview { padding: 22px 24px; display: grid; gap: calc(var(--verse-gap)); margin-top: 8px; }
.theme-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scrollbar-width: none; }
.theme-strip::-webkit-scrollbar { display: none; }
.theme-card { flex: none; width: 92px; background: none; border: 0; display: grid; gap: 6px; justify-items: center; padding: 0; font-size: .8rem; color: var(--text-muted); }
.theme-mini { position: relative; width: 92px; height: 112px; border-radius: 22px; border: 2px solid; display: grid; justify-items: center; align-content: center; gap: 7px; padding: 8px; }
.theme-mini i { display: block; height: 5px; width: 72%; border-radius: 3px; opacity: .55; }
.theme-mini .tick { position: absolute; top: 6px; inset-inline-start: 6px; display: none; color: var(--primary); }
.theme-mini .tick .ic { width: 22px; height: 22px; background: var(--surface); border-radius: 50%; }
.theme-card.is-on .theme-mini { border-color: var(--primary) !important; box-shadow: 0 0 0 2px var(--primary); }
.theme-card.is-on .tick { display: block; }
.theme-card.is-on { color: var(--primary); font-weight: 700; }
.font-peek { font-size: 1.5rem; color: var(--primary); padding-inline: 4px; }

/* صفحة اختيار الخط */
.font-card { display: grid; gap: 6px; text-align: start; width: 100%; padding: 16px 20px; margin-bottom: 10px; border: 2px solid transparent; position: relative; color: var(--text); }
.font-card.is-on { border-color: var(--primary); }
.font-name { font-size: 1.35rem; font-weight: 700; }
.font-sample { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; }
.font-tick { position: absolute; top: 14px; inset-inline-end: 16px; color: var(--primary); display: none; }
.font-card.is-on .font-tick { display: block; }

/* النسخ الاحتياطي */
.backup-hero { text-align: center; padding: 8px 8px 20px; display: grid; justify-items: center; gap: 8px; }
.backup-hero h2 { font-size: 1.35rem; }
.circle-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--surface-tint); color: var(--primary); display: grid; place-items: center; }
.circle-ic .ic { width: 40px; height: 40px; }

/* عن التطبيق */
.about { display: grid; justify-items: center; gap: 8px; padding: 8px 16px calc(40px + var(--safe-b)); text-align: center; }
.about .list-card { width: 100%; text-align: start; margin-top: 8px; }
.poet-ring { padding: 6px; border-radius: 50%; background: conic-gradient(from 200deg, var(--gold-ring), var(--primary), var(--gold-ring), var(--surface-tint), var(--gold-ring)); }
.poet-xl { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--bg); background: var(--surface-tint); }

/* تسجيل الدخول */
.login { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 100dvh; max-width: 440px; margin-inline: auto; padding: calc(32px + var(--safe-t)) 22px calc(32px + var(--safe-b)); text-align: center; }
.login-poet { margin-bottom: 10px; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 25%, transparent); }
.login-poet .poet-xl { width: 132px; height: 132px; }
.login .brand { margin: 0; }
.login .tagline { margin: 2px 0 18px; font-size: .95rem; }
.login-card { width: 100%; padding: 24px 22px; display: grid; gap: 16px; text-align: start; border-radius: 28px; box-shadow: 0 8px 30px color-mix(in srgb, var(--text) 10%, transparent); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-muted); }
.check-row input { accent-color: var(--primary); width: 18px; height: 18px; }
.login-card .btn-block { margin-top: 0; }

.poet-name { color: var(--text-muted); font-size: .95rem; text-align: center; margin-top: -4px; }

/* اسم الشاعر: توهّج ذهبي هادئ */
.poet-name {
  color: var(--primary); font-weight: 600;
  text-shadow: 0 0 6px color-mix(in srgb, var(--primary) 55%, transparent), 0 0 16px color-mix(in srgb, var(--primary) 35%, transparent);
  animation: name-glow 3.2s ease-in-out infinite;
}
@keyframes name-glow {
  50% { text-shadow: 0 0 10px color-mix(in srgb, var(--primary) 85%, transparent), 0 0 26px color-mix(in srgb, var(--primary) 60%, transparent), 0 0 44px color-mix(in srgb, var(--primary) 30%, transparent); }
}
