/* BBCode/Markdown shared styles */
.bbcode-quote {
    border-left: 4px solid #ccc;
    margin: 1em 0;
    padding-left: 1em;
    font-style: italic;
}

.bbcode-quote cite {
    font-weight: bold;
    font-style: normal;
    display: block;
    margin-bottom: 0.5em;
}

.bbcode-code {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9em;
    padding: 2px 4px;
}

.bbcode-codeblock {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1em;
    overflow-x: auto;
    white-space: pre;
}

.bbcode-codeblock code {
    background: none;
    border: none;
    padding: 0;
}

.bbcode-list {
    margin: 1em 0;
    padding-left: 2em;
}

.bbcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-link {
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.news-link {
    color: #2563eb;
}

.lyrics-link {
    color: #7c3aed;
}

.bbcode-youtube-embed {
    margin: 1.5em 0;
    text-align: center;
}

.bbcode-youtube-embed iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.bbcode-spoiler {
    margin: 1em 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.bbcode-spoiler summary {
    background: #f3f4f6;
    padding: 0.75em 1em;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.bbcode-spoiler summary:hover {
    background: #e5e7eb;
}

.spoiler-content {
    padding: 1em;
}

/* Theme-specific overrides */
.theme-fanpc .content-link {
    color: #FFCC00;
}

.theme-fanpc .bbcode-quote {
    border-left-color: #FFCC00;
}

.theme-fanpc .bbcode-spoiler {
    border-color: #444;
}

.theme-fanpc .bbcode-spoiler summary {
    background: #333;
    color: #DDDDDD;
}

.theme-fanpc .bbcode-spoiler summary:hover {
    background: #444;
}

.theme-fanpc .bbcode-code {
    background-color: #2a2a2a;
    border-color: #555;
    color: #DDDDDD;
}

.theme-fanpc .bbcode-codeblock {
    background-color: #1a1a1a;
    border-color: #555;
    color: #DDDDDD;
}

.theme-premium .content-link {
    color: #5AB26C;
}

.theme-premium .bbcode-quote {
    border-left-color: #5AB26C;
}