/* Ardem Wiki Custom Styles */

/* Wiki content styles */
.wiki-content h1, 
.wiki-content h2, 
.wiki-content h3, 
.wiki-content h4, 
.wiki-content h5, 
.wiki-content h6 {
    color: #FFC600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    position: relative;
}

.wiki-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(255, 198, 0, 0.3);
    padding-bottom: 0.5rem;
}

.wiki-content h2 {
    font-size: 1.5rem;
}

.wiki-content h2::after {
    content: '';
    display: block;
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, rgba(255,198,0,0.5) 0%, rgba(255,198,0,0) 100%);
    margin-top: 0.5rem;
}

.wiki-content h3 {
    font-size: 1.25rem;
}

.wiki-content h4 {
    font-size: 1.125rem;
}

.wiki-content p {
    margin-bottom: 1.25em;
    line-height: 1.7;
}

.wiki-content a {
    color: #FFC600;
    text-decoration: none;
    transition: all 0.2s;
}

.wiki-content a:hover {
    text-decoration: underline;
}

.wiki-content code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.wiki-content pre {
    background-color: #1a1e2e;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.wiki-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    line-height: 1.5;
}

.wiki-content blockquote {
    border-left: 4px solid #FFC600;
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    background-color: rgba(255, 198, 0, 0.05);
    padding: 1em;
    border-radius: 0 5px 5px 0;
}

.wiki-content ul {
    list-style-type: none;
    padding-left: 1.5em;
    margin: 1.25em 0;
}

.wiki-content ul li {
    margin-bottom: 0.5em;
    position: relative;
}

.wiki-content ul li::before {
    content: '•';
    color: #FFC600;
    font-weight: bold;
    position: absolute;
    left: -1.1em;
}

.wiki-content ol {
    padding-left: 1.5em;
    margin: 1.25em 0;
}

.wiki-content ol li {
    margin-bottom: 0.5em;
}

.wiki-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 1.5em 0;
}

.wiki-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.wiki-content table th {
    background-color: rgba(255, 198, 0, 0.1);
    border-bottom: 2px solid rgba(255, 198, 0, 0.5);
    padding: 0.75em;
    text-align: left;
}

.wiki-content table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75em;
}

.wiki-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,198,0,0) 0%, rgba(255,198,0,0.5) 50%, rgba(255,198,0,0) 100%);
    margin: 2em 0;
}

/* Wiki editor styles */
.editor-toolbar {
    border-radius: 0.375rem 0.375rem 0 0;
    border: 1px solid #4B5563;
    border-bottom: none;
    background-color: #374151;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.editor-toolbar button {
    background-color: #1F2937;
    color: #D1D5DB;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-toolbar button:hover {
    background-color: #111827;
}

.editor-toolbar button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 198, 0, 0.5);
}

.editor-preview {
    border: 1px solid #4B5563;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1rem;
    background-color: #1F2937;
    min-height: 300px;
    overflow-y: auto;
}

/* Wiki animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 198, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 198, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 198, 0, 0); }
}

.wiki-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.wiki-pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Wiki table of contents */
.wiki-toc {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.wiki-toc-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FFC600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.wiki-toc-title i {
    margin-right: 0.5rem;
}

.wiki-toc ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.wiki-toc ul ul {
    padding-left: 1.5rem;
}

.wiki-toc li {
    margin-bottom: 0.35rem;
}

.wiki-toc a {
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.wiki-toc a:hover,
.wiki-toc a.active {
    color: #FFC600;
    transform: translateX(2px);
}

/* Wiki cards */
.wiki-card {
    background-color: #1F2937;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.wiki-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 198, 0, 0.3);
}

.wiki-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}

.wiki-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.wiki-card-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.wiki-card-footer {
    padding: 1rem 1.25rem;
    background-color: rgba(31, 41, 55, 0.5);
    border-top: 1px solid rgba(75, 85, 99, 0.5);
}

/* Wiki badges */
.wiki-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wiki-badge-yellow {
    background-color: rgba(255, 198, 0, 0.2);
    color: #FFC600;
}

.wiki-badge-blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.wiki-badge-green {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.wiki-badge-red {
    background-color: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.wiki-badge i {
    margin-right: 0.35rem;
}

/* Wiki search highlight */
.search-highlight {
    background-color: rgba(255, 198, 0, 0.3);
    padding: 0.1em 0;
    border-radius: 2px;
}

/* Wiki syntax highlighter */
.language-json .token.property { color: #60A5FA; }
.language-json .token.string { color: #34D399; }
.language-json .token.number { color: #F87171; }
.language-json .token.boolean { color: #F87171; }
.language-json .token.null { color: #F87171; }
.language-json .token.punctuation { color: #D1D5DB; }

.language-php .token.keyword { color: #60A5FA; }
.language-php .token.string { color: #34D399; }
.language-php .token.function { color: #FFC600; }
.language-php .token.variable { color: #D1D5DB; }
.language-php .token.comment { color: #6B7280; }
.language-php .token.operator { color: #F87171; }
.language-php .token.punctuation { color: #D1D5DB; }

.language-javascript .token.keyword { color: #60A5FA; }
.language-javascript .token.string { color: #34D399; }
.language-javascript .token.function { color: #FFC600; }
.language-javascript .token.variable { color: #D1D5DB; }
.language-javascript .token.comment { color: #6B7280; }
.language-javascript .token.operator { color: #F87171; }
.language-javascript .token.punctuation { color: #D1D5DB; }


/* Styles für Suchergebnisse, damit sie immer über allem angezeigt werden */
#searchContainer {
    position: relative;
    z-index: 9999; /* Sehr hoher z-index */
}

#autocompleteResults {
    position: fixed; /* Feste Position im Viewport */
    z-index: 10000; /* Noch höherer z-index für die Suchergebnisse */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Stärkerer Schatten für bessere Sichtbarkeit */
}

/* Stile für die Suchergebnisse selbst */
.suggestions-container {
    max-height: 50vh; /* Maximal halb so hoch wie der Bildschirm */
    overflow-y: auto;
}

/* Verbesserte Scroll-Stile */
.suggestions-container::-webkit-scrollbar {
    width: 8px;
}

.suggestions-container::-webkit-scrollbar-track {
    background: #1F2937;
}

.suggestions-container::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

/* Wiki responsive styles */
@media (max-width: 768px) {
    .wiki-content h1 {
        font-size: 1.75rem;
    }
    
    .wiki-content h2 {
        font-size: 1.35rem;
    }
    
    .wiki-content h3 {
        font-size: 1.15rem;
    }
    
    .wiki-toc {
        position: relative;
        max-height: 300px;
        overflow-y: auto;
    }
}