/*
Theme Name: Theme
Description: Theme minimal, chỉ lấy header và footer, body do plugin/block quản lý.
Version: 1.1
*/

:root { 
    --brand: #000; 
    --bg: #fff; 
    --text: #000; 
    --max-width: 800px; 
}

* {
    box-sizing: border-box; /* QUAN TRỌNG: Ngăn padding làm tăng chiều rộng */
}

/* Thêm vào CSS của bạn */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Chiều cao tối thiểu bằng viewport */
    display: flex;
    flex-direction: column;

    /* Chặn bôi đen và menu copy trên mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Content wrapper sẽ đẩy footer xuống dưới */
.site {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 12px 40px;
    flex: 1; /* Chiếm toàn bộ không gian còn lại */
    width: 100%;
}


/* ===== HEADER ===== */
header {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 12px;
    margin: 0;              /* sát mép trên */
    border-radius: 0;
    width: 100%;            /* full chiều ngang */
}

header .site-title {
    font-size: 1.8rem;
    margin: 0;
}

/* ===== FOOTER ===== */
footer {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 16px 12px;
    margin: 0;              /* sát mép dưới */
    border-radius: 0;
    width: 100%;            /* full chiều ngang */
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-weight: 600;
    margin-top: 12px;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer .social-links {
    margin: 8px 0;
}

footer .social-links a {
    font-size: 20px;
    color: #fff;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #ddd;
}

/* ===== CONTENT WRAPPER ===== */
.site {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 12px 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    header .site-title {
        font-size: 1.2rem;
    }

    footer .footer-links {
        flex-direction: column;
        gap: 6px;
    }
}
