/* =================================================
   Flavor News - Single Post CSS
   ================================================= */
/* ===== Post Content Lists ===== */
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol,
.content ul,
.content ol {
    margin: 1em 0;
    padding: 0;
    padding-right: 2em;
    list-style-position: outside;
}
.post-content ul,
.entry-content ul,
.content ul {
    list-style-type: disc;
}
.post-content ol,
.entry-content ol,
.content ol {
    list-style-type: decimal;
}
.post-content li,
.entry-content li,
.content li {
    margin-bottom: 0.5em;
    line-height: 1.8;
    font-size: 15.5px;
}
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin: 0.4em 0;
    padding-right: 1.5em;
}
.single-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-layout.no-sidebar .single-grid {
    display: block;
}

.single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.single-content {
    min-width: 0;
}

.single-content .content {
    background: #fff;
    padding: 28px 32px;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #eef0f4;
}

.single-content .title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
}

.single-sidebar {
    position: sticky;
    top: 30px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}
.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #999;
}
.breadcrumbs a {
    color: var(--main-color);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}
.pagination ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.pagination li {
    display: inline-block;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--main-color);
    color: #fff;
}
.pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
}

/* Related Posts & Comments - Same width as article content, centered */
.single-layout .related-posts,
.single-layout .site-section-author,
.single-layout #comments {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ===== Author Box ===== */
.site-section-author {
    margin: 30px auto;
}
.author-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #eef0f4;
    overflow: hidden;
    text-align: center;
}
.author-inner-top {
    background: linear-gradient(135deg, var(--main-color, #3b4cca) 0%, #6c7ee1 100%);
    padding: 30px 24px 50px;
}
.author-avatar-inner {
    margin-top: -40px;
    margin-bottom: 12px;
}
.author-avatar-inner img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.author-info {
    padding: 0 24px 24px;
}
.author-title h2 {
    font-size: 1.1rem;
    margin: 8px 0 4px;
}
.author-title h2 a {
    color: #111;
    text-decoration: none;
}
.author-title h2 a:hover {
    color: var(--main-color, #3b4cca);
}
.author-badge {
    display: inline-block;
    background: var(--main-color, #3b4cca);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.author-description {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    max-width: 520px;
    margin: 10px auto;
}
.author-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    background: var(--main-color, #3b4cca);
    color: #fff !important;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}
.author-all-posts:hover { opacity: .85 }

/* ===== Comments ===== */
#comments {
    margin: 30px auto;
}
#comments .comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--main-color, #3b4cca);
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comment-list .comment {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #eef0f4;
}
.comment-list .children {
    list-style: none;
    padding-right: 30px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.comment-body .avatar {
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #dde3ee;
}
.comment-meta {
    flex: 1;
    min-width: 0;
}
.comment-author-name {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}
.comment-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--main-color, #3b4cca);
    text-decoration: none;
    font-weight: 600;
    padding: 3px 10px;
    border: 1px solid var(--main-color, #3b4cca);
    border-radius: 20px;
    transition: all .2s;
}
.comment-reply-link:hover {
    background: var(--main-color, #3b4cca);
    color: #fff;
}
/* Comment Form */
.leave-comment-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color, #3b4cca);
}
.comment-form p {
    margin-bottom: 14px;
}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde3ee;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fc;
    color: #222;
    transition: border-color .2s;
    font-family: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--main-color, #3b4cca);
    background: #fff;
}
.comment-form textarea { min-height: 120px; resize: vertical }
.comment-form .submit {
    background: var(--main-color, #3b4cca);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    font-family: inherit;
}
.comment-form .submit:hover { opacity: .85 }

/* =================================================
   Read More Gate (اقرأ الخبر كاملاً)
   ================================================= */
.post-content--gated {
    position: relative;
}

.post-content-excerpt {
    position: relative;
    overflow: hidden;
}

.read-more-gate {
    position: relative;
    margin-top: -100px;
    padding-top: 100px;
    text-align: center;
}

.read-more-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--body-bg, #fff) 90%);
    pointer-events: none;
    z-index: 1;
}

/* Dark mode support */
body.dark .read-more-fade {
    background: linear-gradient(to bottom, transparent, #121212 90%);
}

.read-more-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 24px;
    padding: 13px 30px;
    background: var(--main-color, #e63946);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    direction: rtl;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    letter-spacing: .3px;
}

.read-more-btn:hover {
    background: var(--main-color-dark, #c1121f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    text-decoration: none;
}

.read-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* When no link: just fade out, no button */
.read-more-gate--no-link {
    padding-top: 0;
    margin-top: -80px;
    height: 80px;
}

.read-more-gate--no-link .read-more-fade {
    height: 80px;
}