/*
 * Modern Styles for the OSHB Lexicon app - Ancient Biblical Judean Theme
 * @version 2.0
 * Updated to match site-wide design
 */

/* Remove all default styles that conflict */
body {
    margin: 0;
    background: transparent; /* Let the main HTML handle background */
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
    line-height: 1.5em;
}

header {
    background: transparent; /* Handled by main HTML */
    padding: 0;
    border: none;
}

h1, h3 {
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
}

/* Navigation - Keep structure but remove old styling */
nav {
    background: transparent;
    border: none;
    padding: 0;
}

nav input {
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
}

/* Tab Bar Navigation - Essential structure for JavaScript */
nav#tabBar {
    border: none;
    padding: 0;
    background: transparent;
}

nav#tabBar button {
    /* All styling handled by main HTML - just keep structure */
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
    cursor: pointer;
}

nav#tabBar button.current {
    cursor: default;
}

/* Display Section - Keep essential structure */
section#display {
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto; /* Remove fixed width */
    max-width: 100%;
    visibility: visible !important; /* Always visible */
}

section#display div.panel {
    margin: 0;
    padding: 1.5em;
    border-radius: 12px;
    min-height: 350px;
    max-height: none; /* Remove height restriction */
    overflow: visible;
    display: none; /* Hidden by default */
}

section#display div.current {
    display: block; /* Show current panel */
}

section#display div.panel section {
    padding-top: 1em;
}

/* Hebrew text - CRITICAL: Use Manakahthey font */
span.Hebrew, 
span.punctuation {
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
    font-size: 1.5em;
    line-height: 1.6em;
    direction: rtl;
}

span.qere {
    color: #8a4fff; /* Purple instead of blue */
}

span.mark {
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
    font-size: 1.2em;
    line-height: 1.6em;
    direction: rtl;
    color: #ffd700; /* Gold instead of green */
}

sup.note {
    color: #c084fc; /* Light purple */
    cursor: pointer;
    direction: ltr;
}

div.selected {
    background-color: rgba(255, 215, 0, 0.15); /* Gold highlight */
}

/* BDB Styles */
p {
    margin-bottom: 0.5em;
    line-height: 1.7em;
}

p.root > span:first-child {
    font-size: 1.8em;
    color: #ffd700; /* Gold */
}

span.sense {
    display: block;
    margin-left: 1em;
}

span.ref {
    color: #c084fc; /* Light purple */
    cursor: pointer;
}

span.ref:hover {
    color: #ffd700; /* Gold on hover */
}

span.foreign {
    color: #ff69b4; /* Hot pink */
}

.xlit, .pos, .stem {
    font-weight: bold;
    color: #f8e49b; /* Light gold */
}

.xlit {
    font-family: 'Manakahthey', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
}

.pron, .def, .asp {
    font-style: italic;
    color: #e5c98d; /* Warm cream */
}

/* Remove any lingering old styles */
article {
    column-count: 1; /* Single column */
    background: transparent;
    border: none;
    box-shadow: none;
}

div.license {
    margin: 0;
}
