/*
Theme Name: Simple Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Một theme WordPress đơn giản, nhẹ, responsive - làm nền tảng để tùy biến.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-theme
*/

/* ===== Reset cơ bản ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.5em;
}

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

/* ===== Header ===== */
.site-header {
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.6rem;
}

.site-branding .site-title a {
    color: #111;
    text-decoration: none;
}

.site-branding .site-description {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* ===== Menu chính ===== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
}

.main-navigation .current-menu-item > a {
    color: #0066cc;
}

/* Menu mobile: toggle đơn giản bằng checkbox, không cần JS */
.menu-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle-label {
        display: block;
    }

    .main-navigation {
        width: 100%;
        display: none;
    }

    #menu-toggle:checked ~ .main-navigation {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Nội dung chính ===== */
.site-content {
    padding: 40px 0;
    min-height: 50vh;
}

.entry-title {
    margin-top: 0;
}

.entry-title a {
    color: #111;
}

.entry-meta {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.entry-thumbnail {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

/* ===== Sidebar ===== */
.content-area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-area .content {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }

    .widget-area {
        width: 100%;
    }
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* ===== Phân trang ===== */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* ===== Comment ===== */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #eaeaea;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* ===== Nút / Form ===== */
button,
input[type="submit"] {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover,
input[type="submit"]:hover {
    background: #0052a3;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
