 /* 3. Book page — secondary CTA under .ekbs-btn-download -------------------- */ /* Native Blocksy outline button (.ct-button-ghost): transparent → filled. */ .ekbs-btn-save { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 8px; min-height: var(--theme-button-min-height, 42px); padding: 8px 20px; background-color: transparent; color: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); border-width: 2px; border-style: solid; border-color: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); border-radius: var(--theme-button-border-radius, 3px); font-family: var(--theme-button-font-family, var(--ekbf-font)); font-size: var(--theme-button-font-size, 15px); line-height: var(--theme-button-line-height, 1.3); font-weight: var(--theme-button-font-weight, 500); cursor: pointer; appearance: none; -webkit-appearance: none; box-shadow: none; transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955); } .ekbs-btn-save:hover, .ekbs-btn-save:focus-visible { background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); border-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); color: var(--theme-button-text-hover-color, #ffffff); } .ekbs-btn-save:active { transform: translateY(1px); } /* Saved state: subtle tinted Blocksy palette, still inside 3px geometry. */ .ekbs-btn-save[aria-pressed="true"] { background-color: var(--theme-palette-color-5, #E6F0EE); border-color: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); color: var(--theme-palette-color-4, var(--theme-button-background-initial-color, var(--theme-palette-color-1))); } .ekbs-btn-save[aria-pressed="true"]:hover { background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); border-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); color: var(--theme-button-text-hover-color, #ffffff); } .ekbs-btn-save__icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .ekbs-btn-save[aria-pressed="true"] .ekbs-btn-save__bookmark { display: none; } .ekbs-btn-save:not([aria-pressed="true"]) .ekbs-btn-save__check { display: none; } .ekbs-btn-save[aria-pressed="true"] .ekbs-btn-save__icon { fill: var(--theme-palette-color-5, #E6F0EE); stroke: currentColor; } .ekbs-btn-save__saved { display: none; } .ekbs-btn-save[aria-pressed="true"] .ekbs-btn-save__idle { display: none; } .ekbs-btn-save[aria-pressed="true"] .ekbs-btn-save__saved { display: inline; } /* Icon "pop" when a save just happened */ @keyframes ekbf-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22) rotate(-4deg); } 100% { transform: scale(1); } } .ekbs-btn-save.is-just-saved .ekbs-btn-save__icon, .eka-save-btn.is-just-saved svg { animation: ekbf-pop .34s var(--ekbf-ease); } /* Optional social-proof line injected by JS under the save button */ .ekbf-proof { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 8px 0 0; font-family: var(--ekbf-font); font-size: 11.5px; line-height: 1.5; color: var(--ekbf-muted-fg); } .ekbs-companion-slot { max-width: var(--theme-normal-container-max-width, 1290px); width: var(--theme-container-width, 90vw); margin: 12px auto 28px auto; } .ekbs-companion-slot:empty { display: none; margin: 0; } /* ========================================================================== Task #2: In-Browser Reader Modal (.ekrd-reader-modal) & Preview Action Button Clean RTL CSS using 100% Blocksy theme CSS custom properties. ========================================================================== */ /* Secondary action button styled with 100% Blocksy button tokens (.ct-button-ghost parity) Matches .ekbs-btn-download above it and .ekbs-btn-save below it inside .ekbs-action-card */ .ekbs-btn-preview-modal, aside.ekbs-action-card .ekbs-btn-preview-modal { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 8px; margin-bottom: 0; min-height: var(--theme-button-min-height, 42px); padding: 8px 14px; border-width: 2px; border-style: solid; border-color: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); border-radius: var(--theme-button-border-radius, 3px); background-color: transparent; color: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); font-family: var(--theme-button-font-family, var(--theme-font-family)); font-size: var(--theme-button-font-size, 15px); font-weight: var(--theme-button-font-weight, 500); line-height: var(--theme-button-line-height, 1.3); direction: rtl; white-space: nowrap; cursor: pointer; text-decoration: none; appearance: none; -webkit-appearance: none; box-shadow: none; transition: all 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955); box-sizing: border-box; } .ekbs-btn-preview-modal:hover, .ekbs-btn-preview-modal:focus-visible { color: var(--theme-button-text-hover-color, #ffffff); border-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); } .ekbs-btn-preview-modal:active { transform: translateY(1px); } /* Fixed full-viewport overlay */ .ekrd-reader-modal-backdrop { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 21, 33, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; direction: rtl; animation: ekrdFadeIn 0.2s ease-out; box-sizing: border-box; } @keyframes ekrdFadeIn { from { opacity: 0; } to { opacity: 1; } } /* Responsive modal container */ .ekrd-reader-modal { width: min(1160px, 96vw); height: min(86vh, 900px); background-color: var(--theme-palette-color-8); border: 1px solid var(--theme-border-color); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); direction: rtl; animation: ekrdModalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1); box-sizing: border-box; } @keyframes ekrdModalSlideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* Modal header bar */ .ekrd-reader-modal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--theme-border-color); background-color: var(--theme-palette-color-7); flex-shrink: 0; direction: rtl; box-sizing: border-box; } .ekrd-reader-modal-title-wrap { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; } .ekrd-reader-modal-title { font-family: var(--theme-font-family); font-size: 16px; font-weight: 700; color: var(--theme-headings-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; line-height: 1.4; } .ekrd-reader-modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; direction: rtl; } .ekrd-modal-dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; direction: rtl; min-height: var(--theme-button-min-height, 38px); padding: 6px 16px; border-radius: var(--theme-button-border-radius, 3px); background-color: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); color: var(--theme-button-text-initial-color, #ffffff); font-family: var(--theme-button-font-family, var(--theme-font-family)); font-size: 13.5px; font-weight: var(--theme-button-font-weight, 600); line-height: var(--theme-button-line-height, 1.3); text-decoration: none; border: 2px solid transparent; transition: all 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955); box-sizing: border-box; } .ekrd-modal-dl-btn:hover, .ekrd-modal-dl-btn:focus-visible { background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); color: var(--theme-button-text-hover-color, #ffffff); } .ekrd-reader-modal-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; direction: rtl; min-height: var(--theme-button-min-height, 38px); padding: 6px 16px; border-width: 2px; border-style: solid; border-color: var(--theme-border-color, var(--theme-palette-color-5)); border-radius: var(--theme-button-border-radius, 3px); background-color: transparent; color: var(--theme-text-color); font-family: var(--theme-button-font-family, var(--theme-font-family)); font-size: 13.5px; font-weight: var(--theme-button-font-weight, 600); line-height: var(--theme-button-line-height, 1.3); cursor: pointer; transition: all 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955); box-sizing: border-box; } .ekrd-reader-modal-close:hover, .ekrd-reader-modal-close:focus-visible { color: var(--theme-button-text-hover-color, #ffffff); border-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2)); } /* Modal body, loading overlay & iframe */ .ekrd-reader-modal-body { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; position: relative; background-color: var(--theme-palette-color-7); overflow: hidden; } .ekrd-reader-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background-color: var(--theme-palette-color-8); color: var(--theme-headings-color); font-family: var(--theme-font-family); font-size: 14.5px; font-weight: 600; transition: opacity 0.25s ease, visibility 0.25s ease; } .ekrd-reader-loading.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; } .ekrd-reader-spinner { display: inline-flex; align-items: center; justify-content: center; } .ekrd-reader-spinner svg { animation: ekrdSpin 0.9s linear infinite; color: var(--theme-palette-color-1); } @keyframes ekrdSpin { to { transform: rotate(360deg); } } iframe.ekrd-reader-iframe { width: 100%; height: 100%; border: 0; flex: 1; background-color: var(--theme-palette-color-7); display: block; } /* Responsive adjustments */ @media (max-width: 640px) { .ekrd-reader-modal-backdrop { padding: 0; } .ekrd-reader-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: none; } .ekrd-reader-modal-head { padding: 10px 14px; gap: 8px; } .ekrd-reader-modal-title { font-size: 14px; } .ekbs-btn-preview-modal { width: 100%; white-space: normal; } } /* EKBS_REDESIGN_CSS_END */