/* ─── CSS Variables — Bridge to shared themes.css ─── */
:root {
    --font-scale: 1;
}

[class*="theme-"] {
    --bg-primary: var(--primary-bg);
    --bg-card: var(--card-bg);
    --text-primary: var(--text-color);
    --text-secondary: var(--sub-text-color, var(--text-color));
    --accent: var(--accent-color);
    --accent-glow: rgba(68, 136, 204, 0.4);
    --link: var(--link-color);
    --border: rgba(128, 128, 128, 0.25);
    --font-title: var(--font-heading, 'Gabriela', Georgia, serif);
    --font-body: var(--font-body, 'Lato', 'Segoe UI', sans-serif);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ─── Title Bar ─── */
.titlebar {
    text-align: center;
    padding: calc(12px * var(--font-scale)) calc(24px * var(--font-scale));
    font-family: var(--font-title);
    font-size: calc(1.5rem * var(--font-scale));
    color: var(--text-primary);
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Image banner titlebar: full-width, no container padding, 3D effect */
.titlebar.titlebar-image {
    padding: 0;
    background: none;
    border-bottom: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.titlebar.hidden {
    display: none;
}

.titlebar img {
    max-height: calc(60px * var(--font-scale));
    max-width: 100%;
    object-fit: contain;
}

/* Image banner: full width, fixed height, rounded corners, 3D depth */
.titlebar.titlebar-image img {
    width: 100%;
    max-width: 100%;
    height: 250px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}


/* ─── Verse Container ─── */
.verse-container {
    flex: 1;
    padding: calc(20px * var(--font-scale));
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: calc(16px * var(--font-scale));
}

/* ─── Verse Card ─── */
.verse-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(12px * var(--font-scale));
    padding: calc(20px * var(--font-scale)) calc(28px * var(--font-scale));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: cardSlideIn 0.5s ease-out;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    /* Full width in flex-wrap row layout */
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
}

.verse-card:first-child {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: cardSlideIn 0.5s ease-out, pulseGlow 2s ease-in-out 1;
}

.verse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(10px * var(--font-scale));
}

.verse-reference {
    font-family: var(--font-title);
    font-size: calc(1.2rem * var(--font-scale));
    color: var(--accent);
    font-weight: 700;
}

.verse-translation-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--link);
    font-family: var(--font-body);
    font-size: calc(0.85rem * var(--font-scale));
    padding: calc(4px * var(--font-scale)) calc(10px * var(--font-scale));
    border-radius: calc(6px * var(--font-scale));
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.verse-translation-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ─── Verse Header Actions ─── */
.verse-header-actions {
    display: flex;
    align-items: center;
    gap: calc(6px * var(--font-scale));
}

.verse-biblehub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(30px * var(--font-scale));
    height: calc(30px * var(--font-scale));
    border-radius: calc(6px * var(--font-scale));
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    font-size: calc(0.85rem * var(--font-scale));
    color: var(--link);
    transition: all 0.2s ease;
    cursor: pointer;
}

.verse-biblehub-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ─── Alignment & Weight ─── */
[data-align="centered"] {
    --text-align: center;
}

[data-align="left"] {
    --text-align: left;
}

[data-align="right"] {
    --text-align: right;
}

[data-align="justified"] {
    --text-align: justify;
}

/* Fix Centering of Reference - CRITICAL: Same Line */
body[data-align="centered"] .verse-card-header {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px;
}

body[data-align="centered"] .verse-reference {
    margin: 0 !important;
}

.verse-text {
    font-family: var(--font-body);
    font-size: calc(1.1rem * var(--font-scale));
    line-height: var(--current-line-height, 1.7);
    color: var(--text-primary);
    text-align: var(--text-align, center);
    transition: font-weight 0.2s, line-height 0.3s;
}

/* Font Weight */
body[data-fontweight="bold"] .verse-text {
    font-weight: 700 !important;
}

body[data-fontweight="normal"] .verse-text {
    font-weight: 300 !important;
}

/* ─── Empty State — Enhanced Readability ─── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    width: 100%;
    min-height: 60vh;
    opacity: 0.95;
    animation: breathe 3s ease-in-out infinite;
    padding: 30px;
}

.empty-icon {
    font-size: calc(4rem * var(--font-scale));
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.empty-title,
.empty-room,
.empty-sub {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.95), -1px -1px 0 rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.65);
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.empty-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent);
}

.empty-room {
    color: var(--text-primary);
    font-weight: bold;
}

.empty-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ─── Settings Panel Redesign ─── */
.settings-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-card);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.settings-toggle:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.settings-panel {
    position: fixed;
    bottom: 70px;
    right: 16px;
    width: 320px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    z-index: 99;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.settings-panel.hidden {
    display: none !important;
}

/* ─── Settings Header Title ─── */
.settings-header-title {
    text-align: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.settings-shortcut-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 14px;
}

.settings-shortcut-hint kbd {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.72rem;
    border: 1px solid var(--border);
}

/* ─── Global Utility ─── */
.hidden {
    display: none !important;
}

/* ─── Modal (Centered and Prominent) ─── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.modal-content.glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: #fff;
}

.room-input-large {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
    color: #fff;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

/* ─── Settings Row ─── */
.settings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.settings-btn-group {
    display: flex;
    gap: 6px;
}

.settings-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 75px;
}

.settings-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    min-width: 80px;
    text-align: right;
}

/* ─── Clickable Value (replaces separate buttons) ─── */
.settings-clickable-value {
    font-size: 0.82rem;
    color: var(--accent);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.settings-clickable-value:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ─── Small X button for background clear ─── */
.settings-btn-x {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.settings-btn-x:hover {
    background: rgba(255, 80, 80, 0.3);
    border-color: #ff4444;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-btn-sm {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.settings-btn-sm.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.settings-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* ─── Share Row (QR + Copy Link) ─── */
.settings-share-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.settings-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    flex: 1;
    white-space: nowrap;
}

.settings-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.settings-action-btn svg {
    flex-shrink: 0;
}

/* ─── Navigation Links on Same Line ─── */
.settings-nav-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.settings-link-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    font-size: 0.82rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.settings-link-compact:hover {
    background: var(--accent);
    color: var(--bg-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ─── Bottom row (Info + Switch Room) ─── */
.settings-bottom-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.settings-info-btn {
    flex: 0 0 auto;
    min-width: 80px;
}

.settings-close {
    margin-top: 4px;
}

/* ─── QR Modal ─── */
.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999;
}

.qr-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 30px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.qr-modal:not(.hidden) {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.qr-modal-img {
    width: 280px;
    height: 280px;
    background: white;
    padding: 10px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.qr-modal-link {
    color: #ffda79;
    font-size: 1.1rem;
    font-weight: bold;
    word-break: break-all;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    width: 100%;
}

/* ─── Info Modal ─── */
.info-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(10, 10, 20, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 30px 25px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.info-modal:not(.hidden) {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.info-modal-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
}

.info-modal-body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #eee;
}

.info-modal-body kbd {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.info-modal-body p {
    margin-bottom: 12px;
}

.info-modal-body ul {
    padding-left: 22px;
    margin-bottom: 12px;
}

.info-modal-body li {
    margin-bottom: 6px;
}

.info-modal-body strong {
    color: #fff;
}

/* ─── Animations ─── */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-glow);
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 0.95;
    }
}

/* ─── Page Pulse: visible flash when verses are added or removed ─── */
@keyframes verseChangePulse {
    0%   { outline-color: transparent; box-shadow: none; }
    15%  { outline-color: var(--accent); box-shadow: inset 0 0 80px rgba(68, 136, 204, 0.25), 0 0 60px rgba(68, 136, 204, 0.4); }
    100% { outline-color: transparent; box-shadow: none; }
}

.verse-container.pulse-notify {
    animation: verseChangePulse 1.5s ease-out;
    outline: 4px solid transparent;
    outline-offset: -4px;
}

/* ─── Presets ─── */
[data-fontsize="small"] {
    --font-scale: 0.8;
}

[data-fontsize="medium"] {
    --font-scale: 1;
}

[data-fontsize="large"] {
    --font-scale: 1.2;
}

[data-fontsize="xl"] {
    --font-scale: 1.5;
}

[data-fontsize="xxl"] {
    --font-scale: 1.9;
}

[data-fontsize="xxxl"] {
    --font-scale: 2.5;
}

[data-fontsize="xxxxl"] {
    --font-scale: 3.2;
}

/* ─── Padding Presets (now includes "Very Tight") ─── */
[data-padding="verytight"] {
    --current-line-height: 1.1;
}

[data-padding="verytight"] .verse-container {
    padding: 4px;
    gap: 4px;
}

[data-padding="verytight"] .verse-card {
    padding: 8px 12px;
}

[data-padding="tight"] {
    --current-line-height: 1.25;
}

[data-padding="tight"] .verse-container {
    padding: 10px;
    gap: 10px;
}

[data-padding="tight"] .verse-card {
    padding: 15px 20px;
}

[data-padding="normal"] {
    --current-line-height: 1.7;
}

[data-padding="normal"] .verse-container {
    padding: 30px;
    gap: 20px;
}

[data-padding="normal"] .verse-card {
    padding: 25px 35px;
}

[data-padding="padded"] {
    --current-line-height: 2.3;
}

[data-padding="padded"] .verse-container {
    padding: 60px;
    gap: 40px;
}

[data-padding="padded"] .verse-card {
    padding: 50px 70px;
}

/* ─── Poll Status ─── */
.poll-status {
    position: fixed;
    bottom: 4px;
    left: 8px;
    font-size: 0.65rem;
    opacity: 0.25;
    color: var(--text-secondary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.poll-status:hover {
    opacity: 0.7;
}

/* ─── Status Report Dialog ─── */
.status-report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.status-report-dialog {
    position: fixed;
    bottom: 30px;
    left: 8px;
    width: 320px;
    max-width: 90vw;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    z-index: 1001;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: statusSlideIn 0.2s ease-out;
}

.status-report-dialog .status-report-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 6px;
}

.status-report-dialog .status-report-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.status-report-dialog .status-report-label {
    color: rgba(255, 255, 255, 0.6);
}

.status-report-dialog .status-report-value {
    color: #fff;
    font-weight: 600;
}

@keyframes statusSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Verse Collapse/Expand ─── */
.verse-collapse-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--link);
    font-size: calc(0.85rem * var(--font-scale));
    width: calc(28px * var(--font-scale));
    height: calc(28px * var(--font-scale));
    border-radius: calc(6px * var(--font-scale));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.verse-collapse-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Expanded verse card body animates open/close */
.verse-card .verse-text {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

/* Collapsed verse card: hide text, shrink padding */
.verse-card.collapsed .verse-text {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* Collapsed verse card: compact pill/tag appearance.
 * Multiple collapsed verses flow inline on the same row.
 * Click anywhere on the pill to expand it back to full card.
 * Uses !important to override centered-alignment !important rules (line ~204). */
.verse-card.collapsed {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 150px !important;
    max-width: fit-content;
    text-align: center;
    padding: calc(6px * var(--font-scale)) calc(14px * var(--font-scale)) !important;
    border-radius: calc(20px * var(--font-scale));
    border-color: var(--accent);
    cursor: pointer;
    transition: padding 0.3s ease, border-radius 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.verse-card.collapsed:hover {
    box-shadow: 0 0 12px var(--accent-glow, rgba(68, 136, 204, 0.4));
    background: rgba(255, 255, 255, 0.08);
}

/* Override the centered-alignment header rules that use !important */
.verse-card.collapsed .verse-card-header {
    margin-bottom: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* Hide ALL action buttons when collapsed — only the verse reference text remains.
 * Must use !important to guarantee override of any theme/alignment rules. */
.verse-card.collapsed .verse-header-actions {
    display: none !important;
}

/* ─── Verse Action Buttons Row ─── */
.verse-action-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--link);
    font-size: calc(0.85rem * var(--font-scale));
    width: calc(30px * var(--font-scale));
    height: calc(30px * var(--font-scale));
    border-radius: calc(6px * var(--font-scale));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    flex-shrink: 0;
}

.verse-action-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ─── Default Settings Button ─── */
.settings-default-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}

.settings-default-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ─── Show All Translations View ─── */
.verse-all-translations {
    margin-top: calc(8px * var(--font-scale));
    border-top: 1px solid var(--border);
    padding-top: calc(8px * var(--font-scale));
}

.verse-all-translations .verse-trans-block {
    margin-bottom: calc(10px * var(--font-scale));
}

.verse-all-translations .verse-trans-label {
    font-size: calc(0.75rem * var(--font-scale));
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: calc(2px * var(--font-scale));
}

.verse-all-translations .verse-trans-text {
    font-family: var(--font-body);
    font-size: calc(1rem * var(--font-scale));
    line-height: var(--current-line-height, 1.7);
    color: var(--text-primary);
    text-align: var(--text-align, center);
}