/* =============================================================================
   video-reading.css - button styling for video pages (my-epiphany.com)
   v1.0 2026-11-07. Loaded only by video-template.php.
   Same look as the topic pages (topic-reading.css blocks 4, 6 and 9): solid blue
   Bookmark / Listen buttons in one evenly spaced row, and the pill-shaped Email Topic
   button with a white envelope icon (relabelled "Email Video" by
   a short script in video-template.php). Delete a block to undo just that change, or
   remove the <link> line in video-template.php to undo everything.
   Sizes are in px on purpose: Bootstrap 3 sets 1rem = 10px.
   ============================================================================= */

/* 1. SOLID BLUE BUTTONS - PDF, Bookmark, Listen, Pause/Resume and Stop: solid site
      blue (#009EE3) with white icons and text, each button as wide as its label.
      Hover is a shade darker; the active state (bookmarked / reading aloud) is darker
      still so it stays recognisable. */
article .me-bm {
    background: #009EE3;
    border-color: #009EE3;
    color: #fff;
    margin: 0;                        /* was -14px, which pulled the row up onto Category */
    padding: 2.3px 6.9px 2.3px 2.3px; /* 15% more than the original 2px 6px 2px 2px */
}
article .me-bm .me-bm__icon {
    fill: #fff;
    stroke: #fff;
}
/* The speaker's sound waves are open curves, so they stay as lines */
article .me-bm .me-bm__icon path + path {
    fill: none;
}
article .me-bm:hover {
    background: #006FA6;   /* same deeper blue as the active (Pause / Bookmarked) state */
    border-color: #006FA6;
    color: #fff;
}
article .me-bm[aria-pressed="true"] {
    background: #006FA6;
    border-color: #006FA6;
    color: #fff;
}
article .me-bm[aria-pressed="true"]:hover {
    background: #005F8F;
    border-color: #005F8F;
}

/* 2. BUTTON ROW - Bookmark and Listen as one evenly spaced row, with a clear gap
      below the video details (Video ID / Date / Category). */
article .me-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 24px;
}

/* 3. EMAIL TOPIC BUTTON - same look as the Citations button: pill shape, 2px border,
      solid #009EE3 (hover #006FA6), 14px semi-bold label and a white envelope icon
      with a faint flap line, like the page and PDF icons.
      The button and its stylesheet (css/style.css) are injected by load.php after this
      file loads, so "body" is added to out-rank its rules. Its old ::before (a darker
      panel that slid in on hover) is re-used here to draw the envelope. The text comes
      from load.php ("Email Topic"); only its upper-case styling is removed here. */
body #pjSendURLContainer .pjDbPopupBtnPrimary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    margin: 0;
    padding: 2.3px 9.2px 2.3px 4.6px;   /* same as the Citations and PDF buttons */
    border: 2px solid #009EE3;
    border-radius: 999px;
    background: #009EE3;
    color: #fff;
    font: 600 14px/1.2 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
    transition: background-color .2s, border-color .2s, transform .1s;
}
body #pjSendURLContainer .pjDbPopupBtnPrimary:hover,
body #pjSendURLContainer .pjDbPopupBtnPrimary:focus {
    background: #006FA6;
    border-color: #006FA6;
    color: #fff;
}
body #pjSendURLContainer .pjDbPopupBtnPrimary:active { transform: scale(.97); }
body #pjSendURLContainer .pjDbPopupBtnPrimary:focus-visible { outline: 3px solid #19adfd; outline-offset: 2px; }
body #pjSendURLContainer .pjDbPopupBtnPrimary:before,
body #pjSendURLContainer .pjDbPopupBtnPrimary:hover:before,
body #pjSendURLContainer .pjDbPopupBtnPrimary:focus:before {
    content: '';
    position: static;
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    border: 0;
    z-index: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='1' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 7l8 6 8-6' fill='none' stroke='rgba(0,0,0,.28)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    transition: none;
}
