/*
Theme Name: Uyghur Structured Blog
Theme URI: https://yourdomain.com
Author: Your Name
Description: Lightweight RTL structured blog theme with category overview homepage.
Version: 1.0
Text Domain: uyghur-structured-blog
*/

/* ===============================
   GLOBAL
=================================*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
    direction: rtl;
    text-align: right;
}

a {
    color: #1e3a5f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   HEADER
=================================*/

.site-header {
    background: #1e3a5f;
    color: white;
    padding: 25px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Top header row */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Site title (right side in RTL) */
.site-title {
    font-size: 26px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

/* Search box */
.header-search input[type="search"] {
    width: 320px;
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    white-space: nowrap;
}

.header-search input[type="submit"] {
    padding: 8px 14px;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    margin-right: 5px;
}

/* ===============================
   MENU
=================================*/

.main-menu {
    margin-top: 15px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.menu-list li a {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.menu-list li a:hover {
    text-decoration: underline;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ===============================
   LAYOUT
=================================*/

.container {
    display: flex;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    gap: 30px;
}

/* Content grid */
.content {
    width: 70%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Sidebar */
.sidebar {
    width: 30%;
    padding: 20px;
    background: #ffffff;
    border-left: 1px solid #ddd;
}

/* ===============================
   CATEGORY BLOCK
=================================*/

.category-block {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
}

/* Category title */
.category-block h2 {
    border-bottom: 2px solid #1e3a5f;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Remove default list style */
.category-block ul,
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List item */
.category-block ul li,
.sidebar ul li {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid #edf0f3;
    line-height: 1.8;
    transition: background-color 0.2s ease;
}

/* Remove last divider */
.category-block ul li:last-child,
.sidebar ul li:last-child {
    border-bottom: none;
}

/* Blue circle bullet */
.category-block ul li::before,
.sidebar ul li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1e3a5f;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

/* Hover highlight */
.category-block ul li:hover,
.sidebar ul li:hover {
    background-color: #f3f4f6;
}

/* Remove link underline */
.category-block ul li a,
.sidebar ul li a {
    text-decoration: none;
    color: #1e3a5f;
}

.category-block ul li a:hover,
.sidebar ul li a:hover {
    color: #0d2745;
}

/* ===============================
   FOOTER
=================================*/

.site-footer {
    background: #1e3a5f;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ===============================
   RESPONSIVE DESIGN
=================================*/

@media (max-width: 768px) {

    /* Hide sidebar */
    .sidebar {
        display: none;
    }

    /* Stack layout */
    .container {
        flex-direction: column;
    }

    /* Single column grid */
    .content {
        width: 100%;
        grid-template-columns: 1fr;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Hide normal menu */
    .menu-list {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #1e3a5f;
        padding: 10px 0;
    }

    /* Show when active */
    .menu-list.active {
        display: flex;
    }

    /* Smaller search box */
    .header-search input[type="search"] {
        width: 220px;
    }

    /* Collapsible categories */
    .category-list {
       display: block;
    }

    .category-list.open {
        display: block;
    }

    .category-toggle {
        cursor: pointer;
    }
}
