/* ===========================================
   SEEK ETERNITY - Bible Study Styles
   Premium Dribbble-inspired aesthetic
   =========================================== */

:root {
    --se-primary: #D4A574;
    --se-primary-light: #E8C9A4;
    --se-primary-dark: #B8956A;
    --se-secondary: #2D3436;
    --se-bg-dark: #1A1A1A;
    --se-bg-card: #242424;
    --se-bg-elevated: #2E2E2E;
    --se-text-primary: #FAFAFA;
    --se-text-secondary: #A0A0A0;
    --se-text-muted: #6B6B6B;
    --se-accent-gold: #D4A574;
    --se-accent-teal: #55A3A3;
    --se-border: rgba(255, 255, 255, 0.08);
    --se-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --se-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --se-radius: 16px;
    --se-radius-sm: 8px;
    --se-radius-full: 9999px;
    --se-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Container */
.bible-study-container { 
    padding-bottom: 300px; 
    margin-bottom: 100px; 
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.bible-study-content-bg { 
    background: var(--se-bg-card); 
    border-radius: var(--se-radius); 
    padding: 32px; 
    border: 1px solid var(--se-border);
    box-shadow: var(--se-shadow);
}

/* Typography */
.bible-study-content-bg h1,
.bible-study-content-bg h2,
.bible-study-content-bg h3,
.bible-study-content-bg h4 {
    color: var(--se-text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.bible-study-content-bg h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--se-border);
}

.bible-study-content-bg h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--se-accent-gold);
}

.bible-study-content-bg p {
    color: var(--se-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Study Header */
.study-header {
    font-size: 2rem !important;
    background: linear-gradient(135deg, var(--se-accent-gold) 0%, var(--se-accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem !important;
    border: none !important;
}

/* Abstract Box */
.scholarly-abstract {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(85, 163, 163, 0.1) 100%);
    border-left: 3px solid var(--se-accent-gold);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--se-radius-sm) var(--se-radius-sm) 0;
    font-style: normal;
}

.scholarly-abstract h3 {
    margin-top: 0 !important;
    color: var(--se-accent-gold) !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scholarly-abstract p {
    font-size: 1.05rem;
    color: var(--se-text-primary) !important;
}

/* Study Box - Cards */
.study-box {
    background: var(--se-bg-elevated);
    border: 1px solid var(--se-border);
    padding: 20px;
    border-radius: var(--se-radius-sm);
    margin-bottom: 20px;
    color: var(--se-text-secondary);
    line-height: 1.6;
    transition: var(--se-transition);
}

.study-box:hover {
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

/* Lists */
.scholarly-list {
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
}

.scholarly-list li {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: var(--se-bg-elevated);
    border-radius: var(--se-radius-sm);
    border-left: 3px solid var(--se-accent-teal);
    transition: var(--se-transition);
}

.scholarly-list li:hover {
    border-left-color: var(--se-accent-gold);
    transform: translateX(4px);
}

.scholarly-list li strong {
    color: var(--se-accent-gold);
    font-weight: 600;
}

/* ===========================================
   ENHANCED TIMELINE - Visual Horizontal
   =========================================== */
.timeline-wrapper {
    position: relative;
    padding: 80px 40px;
    margin: 48px 0;
    width: 100%;
    overflow-x: auto;
    background: linear-gradient(180deg, var(--se-bg-dark) 0%, var(--se-bg-card) 100%);
    border-radius: var(--se-radius);
    border: 1px solid var(--se-border);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--se-accent-gold), var(--se-accent-teal));
    transform: translateY(-50%);
    border-radius: var(--se-radius-full);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.timeline-nodes {
    position: relative;
    height: 4px;
    margin: 0 40px;
}

.timeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.timeline-point {
    width: 24px;
    height: 24px;
    background: var(--se-bg-dark);
    border: 3px solid var(--se-accent-gold);
    border-radius: 50%;
    transition: var(--se-transition);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.timeline-node:hover .timeline-point {
    transform: scale(1.5);
    background: var(--se-accent-gold);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.8);
}

.timeline-content {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--se-bg-elevated);
    padding: 16px 20px;
    border-radius: var(--se-radius-sm);
    border: 1px solid var(--se-border);
    min-width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--se-transition);
    color: var(--se-text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--se-shadow);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--se-bg-elevated);
    border-top: 1px solid var(--se-border);
    border-left: 1px solid var(--se-border);
}

.timeline-node:hover .timeline-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===========================================
   ENHANCED FAMILY TREE - Premium Look
   =========================================== */
.tree-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 30px 20px;
    background: linear-gradient(180deg, var(--se-bg-dark) 0%, transparent 100%);
    border-radius: var(--se-radius);
}

.tree-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 24px 12px 0 12px;
}

/* Connecting line to parent */
.tree-node-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--se-accent-gold);
    width: 0;
    height: 24px;
    opacity: 0.6;
}

/* Remove line for root node */
.tree-container > .tree-node-wrapper::before {
    display: none;
}

/* Horizontal line connecting siblings */
.tree-node-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-top: 2px solid var(--se-accent-gold);
    width: 100%;
    height: 0;
    opacity: 0.4;
}

/* Fix horizontal lines for first and last siblings */
.tree-node-wrapper:first-child::after {
    left: 50%;
    width: 50%;
}
.tree-node-wrapper:last-child::after {
    width: 50%;
    left: 0;
}
.tree-node-wrapper:only-child::after {
    display: none;
}

.tree-node {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

/* Line dropping down to children */
.tree-children {
    display: flex;
    justify-content: center;
    position: relative;
}

.tree-node-content {
    background: linear-gradient(135deg, var(--se-bg-elevated) 0%, var(--se-bg-card) 100%);
    border: 2px solid var(--se-accent-gold);
    color: var(--se-accent-gold);
    padding: 14px 28px;
    border-radius: var(--se-radius-sm);
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    box-shadow: var(--se-shadow-sm);
    z-index: 2;
    transition: var(--se-transition);
    font-size: 0.95rem;
}

.tree-node-content:hover {
    background: linear-gradient(135deg, var(--se-accent-gold) 0%, var(--se-accent-dark) 100%);
    color: var(--se-bg-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.4);
}

/* ===========================================
   HEBREW TEXT STYLING
   =========================================== */
.hebrew-notes {
    background: linear-gradient(135deg, var(--se-bg-elevated) 0%, var(--se-bg-dark) 100%);
    padding: 20px;
    border-radius: var(--se-radius-sm);
    margin: 16px 0;
    font-size: 1rem;
    border-left: 3px solid var(--se-accent-teal);
    color: var(--se-text-secondary);
    line-height: 1.8;
}

.hebrew-notes strong {
    color: var(--se-accent-gold);
}

/* ===========================================
   ARTIFACT CARDS - Premium Grid
   =========================================== */
.artifact-list {
    padding-left: 0;
    margin-bottom: 15px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.artifact-list li {
    background: var(--se-bg-elevated);
    border-radius: var(--se-radius-sm);
    padding: 20px;
    border: 1px solid var(--se-border);
    transition: var(--se-transition);
}

.artifact-list li:hover {
    border-color: var(--se-accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--se-shadow);
}

.artifact-list li strong {
    color: var(--se-accent-gold);
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* ===========================================
   VERSE SECTIONS - Premium Cards
   =========================================== */
.verse-section {
    background: var(--se-bg-elevated);
    border-radius: var(--se-radius);
    padding: 32px;
    margin: 32px 0;
    border: 1px solid var(--se-border);
    transition: var(--se-transition);
    position: relative;
    overflow: hidden;
}

.verse-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--se-accent-gold), var(--se-accent-teal));
    opacity: 0;
    transition: var(--se-transition);
}

.verse-section:hover {
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateX(4px);
}

.verse-section:hover::before {
    opacity: 1;
}

.verse-section h3 {
    font-size: 1.5rem !important;
    color: var(--se-accent-gold) !important;
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.verse-section h4 {
    font-size: 1rem !important;
    color: var(--se-accent-teal) !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600 !important;
}

.verse-section p {
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
}

.verse-section hr {
    display: none;
}

/* ===========================================
   IMAGES - Study Images
   =========================================== */
.study-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.study-images img {
    width: 100%;
    border-radius: var(--se-radius-sm);
    border: 1px solid var(--se-border);
    margin-bottom: 0;
    transition: var(--se-transition);
    object-fit: cover;
    aspect-ratio: 16/10;
}

.study-images img:hover {
    transform: scale(1.02);
    box-shadow: var(--se-shadow);
    border-color: var(--se-accent-gold);
}

/* Historic Figures, Artifacts, Events Sections */
.blog-content-container {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.blog-content-header {
    color: #666;
    margin-bottom: 15px;
}

.blog-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.blog-card p {
    color: #333;
    margin-bottom: 15px;
}

.blog-coming-soon {
    color: #666;
    font-style: italic;
}

/* Blog Subtabs */
.blog-subtab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.blog-subtab:hover {
    background: #e5e7eb;
}

.blog-subtab.active {
    background: #FBBF24;
    color: #000;
}

/* ===========================================
   COMMENTS SECTION - Premium Style
   =========================================== */
#comments-section {
    margin-top: 40px;
    padding: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--se-bg-card);
    border-radius: var(--se-radius);
    border: 1px solid var(--se-border);
    box-shadow: var(--se-shadow);
}

#comments-section h3 {
    color: var(--se-text-primary) !important;
    font-size: 1.5rem !important;
    margin-bottom: 24px !important;
}

.comment-form {
    background: var(--se-bg-elevated);
    padding: 28px;
    border-radius: var(--se-radius);
    margin-bottom: 32px;
    border: 1px solid var(--se-border);
    box-shadow: var(--se-shadow-sm);
}

.comment-form h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--se-accent-gold) !important;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--se-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--se-bg-dark);
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius-sm);
    color: var(--se-text-primary);
    font-family: inherit;
    box-sizing: border-box;
    transition: var(--se-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--se-accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-comment-btn {
    background: linear-gradient(135deg, var(--se-accent-gold) 0%, var(--se-primary-dark) 100%);
    color: var(--se-bg-dark);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    background: var(--se-bg-elevated);
    border-left: 4px solid var(--se-accent-gold);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 var(--se-radius-sm) var(--se-radius-sm) 0;
    box-shadow: var(--se-shadow-sm);
    transition: var(--se-transition);
}

.comment-item:hover {
    transform: translateX(5px);
    background: var(--se-bg-card);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--se-border);
    padding-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--se-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comment-date {
    color: var(--se-text-muted);
}

.comment-text {
    color: var(--se-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===========================================
   RESEARCH ARCHIVE NAV - Top Bar
   =========================================== */
.research-archive-nav {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--se-bg-dark);
    border-radius: var(--se-radius);
    border: 1px solid var(--se-border);
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.archive-btn {
    background: var(--se-bg-elevated);
    border: 1px solid var(--se-border);
    padding: 12px 20px;
    border-radius: var(--se-radius-sm);
    color: var(--se-text-secondary);
    cursor: pointer;
    transition: var(--se-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    text-align: center;
}

.archive-btn .ref {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--se-accent-teal);
    margin-bottom: 4px;
}

.archive-btn .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--se-text-primary);
}

.archive-btn:hover {
    border-color: var(--se-accent-gold);
    transform: translateY(-2px);
}

.archive-btn.active {
    background: linear-gradient(135deg, var(--se-accent-gold) 0%, var(--se-accent-teal) 100%);
    border-color: transparent;
}

.archive-btn.active .ref,
.archive-btn.active .title {
    color: var(--se-bg-dark);
}

/* ===========================================
   DEEP DIVE GRID - Modular Layout
   =========================================== */
.deep-dive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.research-point h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px !important;
}

.research-point h3 svg {
    width: 18px;
    height: 18px;
}

.translation-box {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem !important;
    border-left: 4px solid var(--se-accent-gold);
}

.application-box {
    border-left: 4px solid var(--se-accent-teal);
    background: rgba(85, 163, 163, 0.05);
}

.biblio-box {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem !important;
    opacity: 0.8;
}

/* Map Bento Box */
.map-bento-box {
    background: var(--se-bg-elevated);
    border-radius: var(--se-radius);
    padding: 24px;
    border: 1px solid var(--se-border);
    margin-top: 24px;
}

.map-container {
    height: 300px;
    background: #111;
    border-radius: var(--se-radius-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

.map-overlay.active {
    opacity: 1;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.map-controls button {
    background: var(--se-accent-gold);
    color: var(--se-bg-dark);
    border: none;
    padding: 8px 16px;
    border-radius: var(--se-radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
