/*
Theme Name: Tin Giá Mới
Theme URI: https://tingiamoi.com
Author: Nguyễn Văn Chiến
Author URI: https://tingiamoi.com
Description: Theme tin tức giá cả chuyên nghiệp cho tingiamoi.com. Thiết kế hiện đại, tối ưu SEO và hiệu suất. Không sử dụng plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tin-gia-moi
Tags: news, blog, custom-menu, featured-images, translation-ready
*/

/* ===== Custom Utilities ===== */
.text-gradient {
    background: linear-gradient(to right, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-brand {
    background: linear-gradient(to right, #2563eb, #06b6d4);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.img-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* ===== WordPress Core Alignments ===== */
.alignwide {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== Single Post Content Styles ===== */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #374151;
}

.entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 0.5rem 0.5rem 0;
}

.entry-content blockquote p {
    font-style: italic;
    color: #4b5563;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.entry-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: #1d4ed8;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.entry-content th {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
}

/* ===== Admin Bar Fix ===== */
body.admin-bar header.sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.sticky {
        top: 46px;
    }
}

/* ===== Screen Reader Text ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ===== WordPress Navigation ===== */
.navigation .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.navigation .page-numbers:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.navigation .page-numbers.current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
