/* BBCode Content Styles - Common styles for preview and final display */

/* Apply to both preview and service content */
.bbcode-content,
.service-content,
.bbcode-preview-inner {
    line-height: 1.8;
    color: var(--text-primary);
}

/* Headings */
.bbcode-content h1,
.service-content h1,
.bbcode-preview-inner h1,
.bbcode-content h2,
.service-content h2,
.bbcode-preview-inner h2,
.bbcode-content h3,
.service-content h3,
.bbcode-preview-inner h3,
.bbcode-content h4,
.service-content h4,
.bbcode-preview-inner h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bbcode-content h1:first-child,
.service-content h1:first-child,
.bbcode-preview-inner h1:first-child {
    margin-top: 0;
}

.bbcode-content h1,
.service-content h1,
.bbcode-preview-inner h1 {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bbcode-content h2,
.service-content h2,
.bbcode-preview-inner h2 {
    font-size: 2rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.bbcode-content h3,
.service-content h3,
.bbcode-preview-inner h3 {
    font-size: 1.5rem;
}

/* Paragraphs */
.bbcode-content p,
.service-content p,
.bbcode-preview-inner p {
    margin-bottom: 0.75rem;
}

.bbcode-content p:last-child,
.service-content p:last-child,
.bbcode-preview-inner p:last-child {
    margin-bottom: 0;
}

/* Lists */
.bbcode-content ul,
.service-content ul,
.bbcode-preview-inner ul,
.bbcode-content ol,
.service-content ol,
.bbcode-preview-inner ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.bbcode-content ul:first-child,
.service-content ul:first-child,
.bbcode-preview-inner ul:first-child,
.bbcode-content ol:first-child,
.service-content ol:first-child,
.bbcode-preview-inner ol:first-child {
    margin-top: 0;
}

.bbcode-content ul:last-child,
.service-content ul:last-child,
.bbcode-preview-inner ul:last-child,
.bbcode-content ol:last-child,
.service-content ol:last-child,
.bbcode-preview-inner ol:last-child {
    margin-bottom: 0;
}

.bbcode-content li,
.service-content li,
.bbcode-preview-inner li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.bbcode-content li:last-child,
.service-content li:last-child,
.bbcode-preview-inner li:last-child {
    margin-bottom: 0;
}

/* Links */
.bbcode-content a,
.service-content a,
.bbcode-preview-inner a {
    color: var(--cyan);
    text-decoration: none;
}

.bbcode-content a:hover,
.service-content a:hover,
.bbcode-preview-inner a:hover {
    text-decoration: underline;
}

/* Blockquotes */
.bbcode-content blockquote,
.service-content blockquote,
.bbcode-preview-inner blockquote {
    border-left: 3px solid var(--cyan);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.bbcode-content blockquote cite,
.service-content blockquote cite,
.bbcode-preview-inner blockquote cite {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-style: normal;
}

/* Code */
.bbcode-content code,
.service-content code,
.bbcode-preview-inner code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.bbcode-content pre,
.service-content pre,
.bbcode-preview-inner pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.bbcode-content pre code,
.service-content pre code,
.bbcode-preview-inner pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
}

/* Images */
.bbcode-content img,
.service-content img,
.bbcode-preview-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Text formatting */
.bbcode-content strong,
.service-content strong,
.bbcode-preview-inner strong {
    font-weight: bold;
}

.bbcode-content em,
.service-content em,
.bbcode-preview-inner em {
    font-style: italic;
}

.bbcode-content u,
.service-content u,
.bbcode-preview-inner u {
    text-decoration: underline;
}

.bbcode-content del,
.service-content del,
.bbcode-preview-inner del {
    text-decoration: line-through;
}

/* Color spans */
.bbcode-content span[style*="color"],
.service-content span[style*="color"],
.bbcode-preview-inner span[style*="color"] {
    display: inline;
}

