/* VJ Clap Button — style.css v1.1 — zero theme dependencies */

/* All colors hardcoded — works in Incognito, Safari, any theme */

.vj-wrap {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    font-family: Georgia, 'Times New Roman', serif;
    box-sizing: border-box;
}

.vj-box {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Button */
.vj-btn-area {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.vj-bubble {
    position: absolute;
    top: -46px;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
    background: #0B1F3B;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity .2s, -webkit-transform .2s;
    transition: opacity .2s, transform .2s;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.vj-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-transition: border-color .15s, background .15s;
    transition: border-color .15s, background .15s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.vj-btn:hover  { border-color: #0B1F3B; }
.vj-btn.active { border-color: #0B1F3B; background: #0B1F3B; }

.vj-hand {
    font-size: 32px;
    line-height: 1;
    -webkit-transition: -webkit-transform .1s, filter .15s;
    transition: transform .1s, filter .15s;
    display: block;
}

/* Counts */
.vj-total {
    font-size: 28px;
    font-weight: 700;
    color: #9ca3af;
    line-height: 1;
    -webkit-transition: color .3s;
    transition: color .3s;
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0;
}

/* Readers row — compact, same visual weight as stats row */
.vj-readers-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
}

.vj-avs {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    line-height: 0;
}

/* Brand-color avatars — 20px, compact */
.vj-av {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    margin-left: -5px;
    font-size: 8px;
    font-weight: 700;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: #ffffff;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    background: #0B1F3B;
}
.vj-av:first-child { margin-left: 0; }

/* Readers count text — same 13px as stats */
.vj-readers-txt {
    font-size: 13px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}

/* Reactions — RESPONSIVE, fits all 4 on one line */
.vj-react-section {
    width: 100%;
    text-align: center;
}

.vj-react-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 
  Strategy: 4 buttons in one row using flex with wrap allowed
  but buttons sized to all fit on typical screens.
  On very small screens (<380px) they wrap to 2x2 — still clean.
*/
.vj-react-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 0 4px;
    width: 100%;
    box-sizing: border-box;
}

.vj-rb {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 12px;
    font-family: Georgia, 'Times New Roman', serif;
    padding: 6px 12px;
    border-radius: 22px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    -webkit-transition: border-color .15s, background .15s, color .15s;
    transition: border-color .15s, background .15s, color .15s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 1.4;
}

.vj-rb:hover  { border-color: #0B1F3B; color: #0B1F3B; }
.vj-rb.active { background: #0B1F3B; color: #ffffff; border-color: #0B1F3B; }

.vj-rc {
    display: inline-block;
    min-width: 18px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    background: rgba(0,0,0,.08);
    -webkit-transition: -webkit-transform .15s;
    transition: transform .15s;
    line-height: 1.5;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.vj-rb.active .vj-rc { background: rgba(255,255,255,.22); color: #ffffff; }

/* Progress */
.vj-hint {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.vj-progress {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.vj-prog-track {
    width: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.vj-prog-fill {
    height: 100%;
    background: #0B1F3B;
    border-radius: 2px;
    width: 0;
    -webkit-transition: width .2s;
    transition: width .2s;
}

/* Mobile */
@media screen and (max-width: 480px) {
    .vj-btn  { width: 62px; height: 62px; }
    .vj-hand { font-size: 26px; }
    .vj-total { font-size: 22px; }
    .vj-rb { font-size: 11px; padding: 5px 10px; }
    .vj-rc { min-width: 16px; font-size: 10px; }
    .vj-react-row { gap: 6px; }
}

/* Very small screens — 2x2 grid */
@media screen and (max-width: 340px) {
    .vj-rb { font-size: 11px; padding: 5px 8px; }
}

/* Stats row — views, claps, reactions */
.vj-stats-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.vj-stat {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}
.vj-stat-icon { font-size: 14px; }
.vj-stat-div {
    width: 1px;
    height: 14px;
    background: #d1d5db;
    display: inline-block;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
