/* CMS Page Styles - Extracted from Page.vue */

.page-container {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-content {
    background: white;
}

.page-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--secondary-color);
}

.page-title {
    font-size: 42px;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-weight: 700;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-icon {
    font-size: 16px;
}

.page-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* CMS Content Styling - Deep styles for TinyMCE content */
.cms-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.cms-content h1 { font-size: 36px; }
.cms-content h2 { font-size: 30px; }
.cms-content h3 { font-size: 24px; }
.cms-content h4 { font-size: 20px; }
.cms-content h5 { font-size: 18px; }
.cms-content h6 { font-size: 16px; }

.cms-content p {
    margin: 1em 0;
    line-height: 1.8;
}

.cms-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.2s ease;
}

.cms-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.cms-content strong,
.cms-content b {
    font-weight: 700;
    color: var(--text-primary);
}

.cms-content em,
.cms-content i {
    font-style: italic;
}

.cms-content u {
    text-decoration: underline;
}

/* Lists */
.cms-content ul,
.cms-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

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

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

.cms-content li {
    margin: 0.5em 0;
    line-height: 1.8;
}

/* Images */
.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
    display: block;
}

/* Tables */
.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
}

.cms-content table th {
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

.cms-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.cms-content table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Blockquotes */
.cms-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    font-style: italic;
    color: var(--text-secondary);
}

/* Code blocks */
.cms-content pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.cms-content code {
    background-color: var(--secondary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

.cms-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Horizontal Rule */
.cms-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3em 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-article {
        padding: 40px 16px;
    }

    .page-title {
        font-size: 32px;
    }

    .cms-content h1 { font-size: 28px; }
    .cms-content h2 { font-size: 24px; }
    .cms-content h3 { font-size: 20px; }
    .cms-content h4 { font-size: 18px; }
    .cms-content h5 { font-size: 16px; }
    .cms-content h6 { font-size: 15px; }
}
