/*
Theme Name: عسل الباحة البلدي - مدونة مبسطة
Theme URI: https://blog.nasser-alghamdi.com
Author: ناصر غنام الغامدي
Author URI: https://albahahoney.com
Description: ثيم ووردبريس بسيط، فائق السرعة، ومحسن بالكامل لمحركات البحث والذكاء الاصطناعي، يعرض آخر التدوينات بشكل جدول نصوص.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: albaha-honey-blog
*/

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: #fcf9f2;
    color: #2c2520;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styling */
.theme-header {
    background: linear-gradient(135deg, #3d1919 0%, #542222 100%);
    color: #ffffff;
    padding: 50px 0 40px;
    text-align: center;
    border-bottom: 5px solid #d97706;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: #f59e0b;
}

.blog-tagline {
    font-size: 1.1rem;
    color: #fef3c7;
    font-weight: 400;
    opacity: 0.9;
}

/* Navigation menu if registered */
.main-navigation {
    background-color: #3d1919;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-navigation a {
    color: #fef3c7;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #f59e0b;
}

/* Main content wrapper */
.py-8 {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Table Design for Blogs */
.table-container {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ebdcb9;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.05);
    margin-bottom: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #faf5e6;
    border-bottom: 2px solid #ebdcb9;
    padding: 18px 24px;
    font-weight: 700;
    color: #78350f;
    font-size: 0.95rem;
}

.header-title {
    flex: 1;
    text-align: right;
}

.header-date {
    width: 120px;
    text-align: left;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f3ebd4;
    transition: background-color 0.2s;
    cursor: pointer;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: #fffbeb;
}

.row-title {
    flex: 1;
    text-align: right;
    padding-left: 20px;
}

.post-link {
    color: #1e1b18;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s;
    display: inline-block;
    line-height: 1.4;
}

.post-link:hover {
    color: #b45309;
}

.row-date {
    width: 120px;
    text-align: left;
    color: #78716c;
    font-size: 0.9rem;
    white-space: nowrap;
}

.no-posts-row {
    text-align: center;
    padding: 40px;
    color: #78716c;
    font-weight: 600;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #78716c;
    font-weight: 600;
}

/* Single Post Styling */
.single-post {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #ebdcb9;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f3ebd4;
    padding-bottom: 20px;
}

.post-meta {
    font-size: 0.9rem;
    color: #78716c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-sep {
    color: #ebdcb9;
}

.post-category a {
    color: #b45309;
    text-decoration: none;
    font-weight: 600;
}

.post-category a:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e1b18;
    line-height: 1.4;
}

.post-content {
    font-size: 1.15rem;
    color: #2c2520;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2, .post-content h3 {
    color: #1e1b18;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #3d1919;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.3s, transform 0.2s;
    border: 1px solid #3d1919;
}

.back-link:hover {
    background-color: #542222;
    transform: translateY(-2px);
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #ebdcb9;
    color: #78350f;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #fffbeb;
    border-color: #d97706;
}

.pagination .page-numbers.current {
    background-color: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

/* Footer Styling */
.theme-footer {
    background-color: #1e1b18;
    color: #a8a29e;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 4px solid #ebdcb9;
}

.theme-footer p {
    margin-bottom: 8px;
}

.theme-footer .credits {
    font-size: 0.8rem;
    color: #78716c;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .theme-header {
        padding: 35px 0 25px;
    }

    .blog-title {
        font-size: 1.6rem;
    }

    .table-header {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .header-date {
        width: 90px;
    }

    .table-row {
        padding: 14px 16px;
    }

    .row-title {
        padding-left: 10px;
    }

    .post-link {
        font-size: 0.95rem;
    }

    .row-date {
        width: 90px;
        font-size: 0.8rem;
    }

    .single-post {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .post-title {
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .post-content {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}
