/**
 * BF Glossar Pro - Public Styles
 */

/* Glossar Links with Tooltips */
.bfgp-glossar-link {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: help;
    position: relative;
}

.bfgp-glossar-link:hover {
    text-decoration-style: solid;
}

/* Tooltip */
.bfgp-tooltip {
    position: fixed;
    max-width: 300px;
    padding: 12px 16px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s, transform 0.2s;
}

.bfgp-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.bfgp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a1a2e;
}

.bfgp-tooltip.above::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid #1a1a2e;
}

/* A-Z Container */
.bfgp-az-container,
.bfgp-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Box */
.bfgp-search-box {
    margin-bottom: 20px;
}

.bfgp-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.bfgp-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Category Filter */
.bfgp-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bfgp-filter-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.bfgp-filter-btn:hover {
    background: #e0e0e0;
}

.bfgp-filter-btn.active {
    background: #0073aa;
    color: #fff;
}

.bfgp-filter-count {
    opacity: 0.7;
    font-size: 12px;
}

/* A-Z Navigation */
.bfgp-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.bfgp-letter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.bfgp-letter-link:hover {
    background: #0073aa;
    color: #fff;
}

/* Letter Groups */
.bfgp-letter-group {
    margin-bottom: 40px;
}

.bfgp-letter-heading {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 20px;
}

.bfgp-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bfgp-term-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.2s;
}

.bfgp-term-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.bfgp-term-item.hidden {
    display: none;
}

.bfgp-term-link {
    display: block;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 4px;
}

.bfgp-term-short {
    color: #666;
    font-size: 14px;
}

.bfgp-term-excerpt {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* List Shortcode */
.bfgp-list {
    display: grid;
    gap: 20px;
}

.bfgp-list.bfgp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bfgp-list.bfgp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bfgp-list.bfgp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bfgp-list-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bfgp-list-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.bfgp-list-title a {
    text-decoration: none;
}

.bfgp-list-excerpt {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Single Entry */
.bfgp-single-entry {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bfgp-breadcrumbs {
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
}

.bfgp-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
}

.bfgp-breadcrumb-sep {
    margin: 0 8px;
}

.bfgp-entry-header {
    margin-bottom: 30px;
}

.bfgp-entry-title {
    font-size: 36px;
    margin: 0 0 10px;
}

.bfgp-short-form {
    font-size: 18px;
    color: #666;
    margin: 0 0 10px;
}

.bfgp-short-definition {
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
    margin: 0;
}

.bfgp-entry-content {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.bfgp-entry-content p {
    margin-bottom: 1.5em;
}

/* Details Table */
.bfgp-details-table {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bfgp-details-table h2 {
    margin: 0 0 15px;
    font-size: 20px;
}

.bfgp-details-table table {
    width: 100%;
    border-collapse: collapse;
}

.bfgp-details-table th,
.bfgp-details-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.bfgp-details-table th {
    width: 150px;
    font-weight: 600;
    color: #555;
}

.bfgp-details-table tr:last-child th,
.bfgp-details-table tr:last-child td {
    border-bottom: none;
}

/* Related Terms */
.bfgp-related-terms,
.bfgp-see-also {
    margin-bottom: 30px;
}

.bfgp-related-terms h2,
.bfgp-see-also h2 {
    font-size: 20px;
    margin: 0 0 15px;
}

.bfgp-related-terms ul,
.bfgp-see-also ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bfgp-related-terms li a,
.bfgp-see-also li a {
    display: block;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.bfgp-related-terms li a:hover,
.bfgp-see-also li a:hover {
    background: #0073aa;
    color: #fff;
}

/* Back Link */
.bfgp-back-link {
    display: inline-block;
    padding: 12px 24px;
    background: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.bfgp-back-link:hover {
    background: #e0e0e0;
}

/* No Results */
.bfgp-no-results {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 18px;
}

.bfgp-no-results.hidden {
    display: none;
}

/* Archive Header */
.bfgp-archive-header {
    margin-bottom: 30px;
}

.bfgp-archive-title {
    font-size: 36px;
    margin: 0 0 10px;
}

.bfgp-archive-description {
    font-size: 18px;
    color: #555;
    margin: 0;
}

.bfgp-archive-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* Markdown Tables (from Content Filter) */
.bfgp-table-wrapper {
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bfgp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
}

.bfgp-table thead {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
}

.bfgp-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.bfgp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.bfgp-table tbody tr:last-child td {
    border-bottom: none;
}

.bfgp-table tbody tr:hover {
    background: #f9fafb;
}

.bfgp-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.bfgp-table tbody tr:nth-child(even):hover {
    background: #f3f4f6;
}

/* Markdown Checkboxes */
.bfgp-checkbox {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1em;
}

.bfgp-checkbox.checked {
    color: #22c55e;
}

.bfgp-checkbox.unchecked {
    color: #9ca3af;
}

/* Content Lists (Markdown) */
.bfgp-entry-content ul.bfgp-list,
.bfgp-entry-content ol.bfgp-list {
    display: block;
    padding-left: 1.5em;
    margin: 1em 0;
}

.bfgp-entry-content ul.bfgp-list {
    list-style-type: disc;
}

.bfgp-entry-content ol.bfgp-list {
    list-style-type: decimal;
}

.bfgp-entry-content .bfgp-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Horizontal Rule */
.bfgp-entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #e5e7eb, #9ca3af, #e5e7eb);
    margin: 2em 0;
}

/* Responsive */
@media (max-width: 768px) {
    .bfgp-list.bfgp-columns-3,
    .bfgp-list.bfgp-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bfgp-terms-list {
        grid-template-columns: 1fr;
    }
    
    .bfgp-entry-title {
        font-size: 28px;
    }
    
    .bfgp-short-definition {
        font-size: 17px;
    }
    
    .bfgp-letter-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bfgp-list.bfgp-columns-2,
    .bfgp-list.bfgp-columns-3,
    .bfgp-list.bfgp-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .bfgp-category-filter {
        flex-direction: column;
    }
    
    .bfgp-filter-btn {
        text-align: left;
    }
}
/**
 * BF Glossar Pro - Content Styles
 * Added to fix Markdown rendering
 */

/* Main Content Container */
.bfgp-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #374151;
}

/* Headers */
.bfgp-content h1,
.bfgp-h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 24px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bfgp-content h2,
.bfgp-h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    line-height: 1.3;
}

.bfgp-content h3,
.bfgp-h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

.bfgp-content h4,
.bfgp-h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 12px 0;
}

/* Paragraphs */
.bfgp-content p,
.bfgp-p {
    margin: 16px 0;
}

/* Links */
.bfgp-content a,
.bfgp-link {
    color: #7c3aed;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.bfgp-content a:hover,
.bfgp-link:hover {
    color: #6d28d9;
    border-bottom-color: #7c3aed;
}

/* Bold/Strong */
.bfgp-content strong {
    font-weight: 600;
    color: #111827;
}

/* Lists */
.bfgp-content ul,
.bfgp-content ol,
.bfgp-list {
    margin: 16px 0;
    padding-left: 24px;
}

.bfgp-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.bfgp-content ul li::marker {
    color: #7c3aed;
}

/* Tables */
.bfgp-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    -webkit-overflow-scrolling: touch;
}

.bfgp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.bfgp-table th {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #d1d5db;
    color: #111827;
    white-space: nowrap;
}

.bfgp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.bfgp-table tr:hover {
    background: #f9fafb;
}

.bfgp-table tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
.bfgp-content blockquote,
.bfgp-blockquote {
    border-left: 4px solid #7c3aed;
    margin: 24px 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

/* Code */
.bfgp-content code,
.bfgp-inline-code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: #1f2937;
}

.bfgp-content pre,
.bfgp-code {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.bfgp-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Horizontal Rule */
.bfgp-content hr,
.bfgp-hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 48px 0;
}

/* Checkboxes */
.bfgp-checkbox {
    display: inline-block;
    margin-right: 8px;
    color: #9ca3af;
}

.bfgp-checkbox.checked {
    color: #10b981;
}

/* Images */
.bfgp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .bfgp-content {
        padding: 24px 16px;
    }
    
    .bfgp-content h1,
    .bfgp-h1 {
        font-size: 1.875rem;
    }
    
    .bfgp-content h2,
    .bfgp-h2 {
        font-size: 1.5rem;
        margin: 32px 0 16px 0;
    }
    
    .bfgp-content h3,
    .bfgp-h3 {
        font-size: 1.25rem;
    }
    
    .bfgp-table {
        font-size: 13px;
    }
    
    .bfgp-table th,
    .bfgp-table td {
        padding: 10px 12px;
    }
}
