/* Verse Lookup Tool Styles */

/* Trigger button — fixed upper right corner (use ID to avoid conflict
   with .verse-lookup-btn in profile_conversations.css) */
#verse-lookup-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1;
    background-color: #8B4513;
    color: #fff;
    border: 2px solid #5C3317;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#verse-lookup-btn:hover {
    background-color: #5C3317;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#verse-lookup-btn:focus {
    outline: 2px solid #d2b48c;
    outline-offset: 2px;
}

/* Overlay content box */
.verse-lookup-box {
    position: fixed;
    min-width: 36em;
    max-width: 80vw;
    width: 80vw;
    max-height: 80vh;
    top: 10%;
    left: 10vw;
    background: white;
    padding: 10px 20px 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Textarea for description input */
.verse-lookup-box textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d2b48c;
    border-radius: 4px;
    font-size: medium;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.verse-lookup-box textarea:focus {
    outline: 2px solid #8B4513;
    outline-offset: 1px;
    border-color: #8B4513;
}

/* Subtitle text */
.verse-lookup-subtitle {
    color: #5C3317;
    font-size: 0.95em;
    margin: 4px 0 10px;
}

/* Button row layout */
.verse-lookup-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

#verse-lookup-results {
    font-size: medium !important;
}

/* Individual result card */
.verse-lookup-result {
    background: #fdf5e6;
    border-left: 4px solid #8B4513;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

/* Verse reference text */
.verse-lookup-ref {
    font-weight: 700;
    color: #5C3317;
    margin-bottom: 4px;
}

/* Clickable verse reference link */
a.verse-lookup-ref-link {
    color: #5C3317;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

a.verse-lookup-ref-link:hover {
    color: #8B4513;
    text-decoration: underline;
}

a.verse-lookup-ref-link i {
    font-size: 0.85em;
    margin-right: 3px;
    opacity: 0.7;
}

a.verse-lookup-ref-link:hover i {
    opacity: 1;
}

/* Verse body text (scoped to overlay to avoid conflict with profile_conversations.css) */
.verse-lookup-box .verse-lookup-text {
    font-style: italic;
    color: #333;
    line-height: 1.5;
    margin: 4px 0;
    display: block;
}

/* Translation name (scoped to overlay to avoid conflict with profile_conversations.css) */
.verse-lookup-box .verse-lookup-translation {
    font-size: 0.8em;
    color: #999;
    margin-top: 4px;
}

/* Hint box */
.verse-lookup-hint {
    background: #fdf5e6;
    border: 1px solid #d2b48c;
    border-left: 4px solid #8B4513;
    border-radius: 4px;
    padding: 10px 14px;
    color: #5C3317;
    line-height: 1.5;
    font-size: 0.9em;
}

/* Loading spinner */
.verse-lookup-loading {
    text-align: center;
    padding: 20px 0;
    color: #8B4513;
    font-size: 0.95em;
}

.verse-lookup-loading i {
    margin-right: 6px;
}

/* Error message */
.verse-lookup-error {
    background: #fdecea;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    padding: 10px 14px;
    color: #c62828;
    font-size: 0.9em;
}

/* Suggestion note below results */
.verse-lookup-note {
    font-size: 0.85em;
    color: #8B4513;
    font-style: italic;
    margin-top: 6px;
    padding: 6px 0;
}

/* Responsive rules for screens < 768px */
@media (max-width: 768px) {
    #verse-lookup-btn {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }

    .verse-lookup-box {
        width: auto;
        max-width: 95vw;
        left: 2.5vw;
        top: 5%;
        max-height: 85vh;
        padding: 10px 14px 14px;
    }

    .verse-lookup-actions {
        flex-direction: column;
    }

    .verse-lookup-actions button {
        width: 100%;
    }
}
