/* ----------------------------------------------------
   DESIGN SYSTEM & GLOBAL VARIABLES
   ---------------------------------------------------- */
:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #080B11;
    --bg-secondary: #0F1420;
    --card-bg: rgba(20, 28, 45, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --accent: #D97706; /* Warm Gold */
    --accent-light: #FBBF24;
    --accent-gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    
    --primary-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    
    /* Category Accent Colors */
    --theme-tech: #06B6D4;     /* Cyan */
    --theme-capital: #F59E0B;  /* Amber */
    --theme-vocation: #10B981; /* Emerald */
    --theme-suffering: #EC4899;/* Pink */
    --theme-intellect: #3B82F6;/* Blue */
    --theme-public: #8B5CF6;   /* Purple */
    
    /* Layout & UI constants */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --blur: blur(12px);
}

/* Light Theme overrides */
body.light-theme {
    --bg-primary: #F9FAFB;
    --bg-secondary: #F3F4F6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.06);
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    
    --accent: #B45309;
    --accent-light: #D97706;
    --accent-gradient: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    
    --primary-glow: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0) 70%);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ----------------------------------------------------
   BASE STYLES & RESET
   ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
    line-height: 1.65;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Background Glowing Blurs */
.bg-blur {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    transition: all 0.8s ease;
}
.bg-blur-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0,0,0,0) 75%);
}
.bg-blur-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 75%);
}

/* ----------------------------------------------------
   APP HEADER
   ---------------------------------------------------- */
.app-header {
    background-color: rgba(var(--bg-secondary), 0.7);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05rem;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}
.logo-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text .highlight {
    color: var(--accent-light);
    -webkit-text-fill-color: initial;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}
body.light-theme .nav-link:hover, body.light-theme .nav-link.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.05rem;
}
.theme-btn:hover {
    transform: rotate(20deg) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}
body.light-theme .theme-btn {
    background: rgba(0, 0, 0, 0.03);
}

/* ----------------------------------------------------
   UI MODULES: CARDS & LAYOUT
   ---------------------------------------------------- */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}
body.light-theme .card:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Global Typography Elements */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(219, 120, 6, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(219, 120, 6, 0.2);
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-outline {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}
.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}
.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}
body.light-theme .btn-primary-outline:hover {
    background: rgba(0, 0, 0, 0.03);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}
body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
}

/* ----------------------------------------------------
   HERO / INTRO SECTION
   ---------------------------------------------------- */
.intro-section {
    position: relative;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 27, 75, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
.intro-hero h1 {
    font-size: 2.25rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, #FFFFFF, #E2E8F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .intro-hero h1 {
    background: none;
    -webkit-text-fill-color: initial;
}
.intro-hero .subtitle {
    font-size: 1.2rem;
    color: var(--accent-light);
    font-weight: 500;
}
.intro-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 900px;
    text-align: justify;
}
.intro-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 0.5rem;
}
.bounce-icon {
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* ----------------------------------------------------
   CATEGORIES GRID SECTION
   ---------------------------------------------------- */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.category-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-accent);
}
.category-card:hover::after {
    transform: scaleX(1);
}

.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--card-accent);
    transition: var(--transition);
}
body.light-theme .category-card-icon {
    background: rgba(0, 0, 0, 0.02);
}
.category-card:hover .category-card-icon {
    background: var(--card-accent);
    color: #fff;
    box-shadow: 0 4px 15px var(--card-accent);
    border-color: transparent;
}

.category-card-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}
.category-card-title .eng-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.category-card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    flex-grow: 1;
}
.category-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--card-accent);
    margin-top: 1.5rem;
}
.category-card-footer i {
    transition: transform 0.3s ease;
}
.category-card:hover .category-card-footer i {
    transform: translateX(5px);
}

/* ----------------------------------------------------
   DETAIL VIEW LAYOUT & ARTICLE PANES
   ---------------------------------------------------- */
.detail-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
}
.detail-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.category-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--card-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px var(--card-accent);
}
#detail-category-title {
    font-size: 1.65rem;
    font-weight: 800;
}
#detail-category-eng {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Pane: Article content */
.detail-left-pane {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tabs-control-card {
    padding: 1.5rem;
}
.tabs-control-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
body.light-theme .tab-btn {
    background: rgba(0, 0, 0, 0.01);
}
.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
    color: #fff;
    background: var(--card-accent);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--card-accent);
}

.article-card {
    padding: 2.5rem;
}
.article-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}
#article-title {
    font-size: 1.45rem;
    line-height: 1.4;
}
.article-content {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-wrap;
    text-align: justify;
}
.article-content p {
    margin-bottom: 1.25rem;
}

/* Original Word Hyperlink Highlight */
.word-link {
    color: var(--accent-light);
    border-bottom: 2px dashed var(--accent);
    cursor: pointer;
    font-weight: 700;
    padding: 0 2px;
    transition: var(--transition);
}
.word-link:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fff;
}
body.light-theme .word-link {
    color: var(--accent);
    border-bottom-color: var(--accent-light);
}

/* Exegetical analysis box style */
.exegetical-box {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}
body.light-theme .exegetical-box {
    background: rgba(0, 0, 0, 0.01);
}
.exegetical-header {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.exegetical-body {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Table Card design */
.comparison-card {
    padding: 2rem;
}
.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}
.comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    color: var(--text-primary);
}
body.light-theme .comparison-table th {
    background: rgba(0, 0, 0, 0.02);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table td:first-child {
    font-weight: 700;
    color: var(--text-primary);
}

/* ----------------------------------------------------
   RIGHT PANE: MEDIA HUB & REFLECTIONS
   ---------------------------------------------------- */
.detail-right-pane {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Media Card (YouTube) */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    background: #000;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.video-info h4 {
    font-size: 0.98rem;
    line-height: 1.4;
    color: var(--text-primary);
}
.btn-video-link {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    align-self: flex-start;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-video-link:hover {
    color: var(--accent-light);
}

/* Quiz Card (Diagnostics) */
.quiz-card {
    padding: 1.75rem;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0.25rem;
    transition: var(--transition);
}
.btn-icon:hover {
    color: var(--text-primary);
    transform: rotate(45deg);
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
body.light-theme .progress-bar-container {
    background: rgba(0, 0, 0, 0.05);
}
.progress-bar-fill {
    height: 100%;
    width: 0;
    background: var(--card-accent);
    transition: width 0.3s ease;
}
.question-text {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.option-btn {
    font-family: inherit;
    font-size: 0.9rem;
    text-align: left;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
    transition: var(--transition);
}
body.light-theme .option-btn {
    background: #fff;
}
.option-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--card-accent);
    transform: translateX(4px);
}
body.light-theme .option-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Quiz Result Panel */
#quiz-result-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    animation: fadeIn 0.4s ease;
}
.result-score-gauge {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.25rem;
}
.score-ring {
    transform: rotate(-90deg);
}
.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8px;
}
body.light-theme .score-ring-bg {
    stroke: rgba(0, 0, 0, 0.05);
}
.score-ring-fill {
    fill: none;
    stroke: var(--card-accent);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 314.15; /* 2 * PI * r (r=50) */
    stroke-dashoffset: 314.15;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.result-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    font-weight: 800;
}
.result-grade {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--card-accent);
}
.result-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Action Guides Card */
.action-card {
    border-left: 4px solid var(--accent);
}
.action-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.action-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 1.25rem;
}
.action-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-size: 0.9rem;
}

/* Journal Card */
.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.save-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.save-status.show {
    opacity: 1;
}

.journal-card textarea {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    line-height: 1.5;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.journal-card textarea:focus {
    outline: none;
    border-color: var(--card-accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    background: rgba(0, 0, 0, 0.25);
}
body.light-theme .journal-card textarea {
    background: #fff;
}
body.light-theme .journal-card textarea:focus {
    background: #fff;
}
.journal-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}
.journal-actions button {
    flex: 1;
}

/* ----------------------------------------------------
   MODALS: DICTIONARY & JOURNAL LIST
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 550px;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: scaleIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes scaleIn {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-lang-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    color: #818CF8;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
#modal-word-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
#modal-word-definition {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.modal-ref-box {
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.modal-ref-box span {
    color: var(--text-secondary);
}

/* Journal list view modal modifications */
.journal-list-card {
    max-width: 700px;
}
.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.journals-scroll-area {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
}
.journal-item-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
body.light-theme .journal-item-box {
    background: #fff;
}
.journal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}
.journal-item-category {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.journal-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.journal-item-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.5;
}
.journal-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
.btn-small, .btn-small-outline {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-small {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}
.btn-small-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}
.btn-small-outline:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.no-data-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 3rem 0;
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.app-footer-bar {
    background: rgba(var(--bg-secondary), 0.7);
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-links {
    margin-top: 0.5rem;
}

/* Utility Hidden class */
.hidden {
    display: none !important;
}
