/**
 * Page Styles - تنسيقات الصفحات
 * @package Kora_Plus_Pro
 */

.single-page {
    background: #fff;
    padding: 40px 0;
}

/* Header */
.single-page .page-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 10px;
    border-right: 5px solid var(--primary, #00A859);
    margin-bottom: 25px;
}

.single-page .page-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* Meta */
.single-page .page-meta {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.single-page .page-meta span {
    color: #666;
    font-weight: 600;
}

.single-page .page-meta a {
    color: var(--primary, #00A859);
    text-decoration: none;
    font-weight: 700;
}

/* Thumbnail */
.single-page .page-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.single-page .page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
}

/* === تنسيقات المحرر === */

/* Paragraphs */
.page-content p {
    margin: 0 0 20px;
    line-height: 1.8;
    color: #333;
}

/* Headings */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 15px;
    line-height: 1.3;
}

.page-content h1 {
    font-size: 32px;
    border-bottom: 3px solid var(--primary, #00A859);
    padding-bottom: 10px;
}

.page-content h2 {
    font-size: 28px;
    border-right: 4px solid var(--primary, #00A859);
    padding-right: 15px;
}

.page-content h3 {
    font-size: 24px;
    color: var(--primary, #00A859);
}

.page-content h4 {
    font-size: 20px;
}

.page-content h5 {
    font-size: 18px;
}

.page-content h6 {
    font-size: 16px;
}

/* Lists - القوائم */
.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-right: 30px;
    line-height: 1.8;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.8;
}

/* Unordered Lists - تنقيط */
.page-content ul {
    list-style-type: disc;
}

.page-content ul li::marker {
    color: var(--primary, #00A859);
    font-size: 1.2em;
}

.page-content ul ul {
    list-style-type: circle;
    margin: 10px 0;
}

.page-content ul ul ul {
    list-style-type: square;
}

/* Ordered Lists - ترقيم */
.page-content ol {
    list-style-type: decimal;
}

.page-content ol li::marker {
    color: var(--primary, #00A859);
    font-weight: 700;
}

.page-content ol ol {
    list-style-type: lower-alpha;
    margin: 10px 0;
}

.page-content ol ol ol {
    list-style-type: lower-roman;
}

/* Links */
.page-content a {
    color: var(--primary, #00A859);
    text-decoration: underline;
    font-weight: 600;
}

.page-content a:hover {
    color: #008a47;
}

/* Bold & Italic */
.page-content strong,
.page-content b {
    font-weight: 800;
    color: #1a1a1a;
}

.page-content em,
.page-content i {
    font-style: italic;
}

/* Blockquote */
.page-content blockquote {
    background: #f8f9fa;
    border-right: 5px solid var(--primary, #00A859);
    padding: 20px 30px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
    border-radius: 8px;
}

.page-content blockquote p {
    margin: 0;
}

/* Code */
.page-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.page-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    direction: ltr;
    text-align: left;
}

.page-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-content table th {
    background: var(--primary, #00A859);
    color: #fff;
    padding: 15px;
    text-align: right;
    font-weight: 700;
}

.page-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.page-content table tr:last-child td {
    border-bottom: none;
}

.page-content table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Images */
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-content .alignleft {
    float: right;
    margin: 0 0 20px 20px;
}

.page-content .alignright {
    float: left;
    margin: 0 20px 20px 0;
}

.page-content .aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

/* HR */
.page-content hr {
    border: none;
    border-top: 3px solid #e9ecef;
    margin: 30px 0;
}

/* Buttons */
.page-content .wp-block-button__link,
.page-content .button {
    background: var(--primary, #00A859);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    border: none;
}

.page-content .wp-block-button__link:hover,
.page-content .button:hover {
    background: #008a47;
}

/* Responsive */
@media (max-width: 768px) {
    .single-page .page-header {
        padding: 20px;
    }
    
    .single-page .page-title {
        font-size: 24px;
    }
    
    .page-content {
        padding: 20px 15px;
    }
    
    .page-content h1 {
        font-size: 26px;
    }
    
    .page-content h2 {
        font-size: 22px;
    }
    
    .page-content h3 {
        font-size: 20px;
    }
    
    .page-content table {
        display: block;
        overflow-x: auto;
    }
}

