/**
 * Content Fix Styles - Fix màu sắc cho nội dung bài viết
 *
 * @package ATH_ATRAHI_DESIGN
 */

/* ==========================================================================
   Entry Content cho trang sáng (Light Mode)
   ========================================================================== */

/* Trang page thường - nền sáng */
body.page:not(.page-template-page-blog) .entry-content,
body.page:not(.single) .page-content,
body:not(.single-post) .page-main .entry-content {
    color: #333;
}

body.page:not(.page-template-page-blog) .entry-content h1,
body.page:not(.page-template-page-blog) .entry-content h2,
body.page:not(.page-template-page-blog) .entry-content h3,
body.page:not(.page-template-page-blog) .entry-content h4,
body.page:not(.page-template-page-blog) .entry-content h5,
body.page:not(.page-template-page-blog) .entry-content h6 {
    color: var(--atrahi-dark);
}

body.page:not(.page-template-page-blog) .entry-content p {
    color: #555;
    line-height: 1.8;
}

body.page:not(.page-template-page-blog) .entry-content a {
    color: var(--atrahi-gold);
}

body.page:not(.page-template-page-blog) .entry-content ul,
body.page:not(.page-template-page-blog) .entry-content ol {
    color: #555;
}

/* ==========================================================================
   Fix màu cho trang subpage (light background)
   ========================================================================== */

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) {
    background: #fff;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content h2,
.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content h3,
.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content h4 {
    color: var(--atrahi-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content h2 {
    font-size: 26px;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content h3 {
    font-size: 22px;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content h4 {
    font-size: 18px;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content p {
    margin-bottom: 1.5em;
    color: #555;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content a {
    color: var(--atrahi-gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content a:hover {
    color: var(--atrahi-gold-dark);
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content ul,
.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content ol {
    padding-left: 25px;
    margin: 20px 0;
    color: #555;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content blockquote {
    border-left: 4px solid var(--atrahi-gold);
    padding: 20px 25px;
    margin: 25px 0;
    background: #f9f9f9;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content th,
.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content th {
    background: var(--atrahi-gold);
    color: #fff;
    font-weight: 600;
}

.page-main:not(.single-post-page):not(.blog-page):not(.archive-page) .entry-content tr:nth-child(even) {
    background: #f9f9f9;
}

/* ==========================================================================
   WordPress Block Editor - Light Mode Fix
   ========================================================================== */

.page-main:not(.single-post-page) .wp-block-heading {
    color: var(--atrahi-dark);
}

.page-main:not(.single-post-page) .wp-block-paragraph {
    color: #555;
}

.page-main:not(.single-post-page) .wp-block-list {
    color: #555;
}

.page-main:not(.single-post-page) .wp-block-quote {
    border-left: 4px solid var(--atrahi-gold);
    background: #f9f9f9;
}

.page-main:not(.single-post-page) .wp-block-quote p {
    color: #555;
}

.page-main:not(.single-post-page) .wp-block-image figcaption {
    color: #888;
    font-size: 14px;
}

/* ==========================================================================
   Fix màu cho sidebar bên phải (nếu có)
   ========================================================================== */

.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-widget h3,
.sidebar-widget .widget-title {
    color: var(--atrahi-dark);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--atrahi-gold);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: var(--atrahi-gold);
}

/* ==========================================================================
   Fix Breadcrumb trên trang sáng
   ========================================================================== */

.breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumbs {
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--atrahi-gold);
}

.breadcrumbs .breadcrumb-sep {
    color: #999;
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--atrahi-gold);
}

/* ==========================================================================
   Logo Fixed Size
   ========================================================================== */

/* Desktop: 90px */
@media (min-width: 769px) {
    .nav-logo .logo-img,
    .site-header .logo-img {
        height: 90px !important;
        width: auto !important;
    }
    
    .main-nav.scrolled .logo-img {
        height: 70px !important;
    }
}

/* Tablet */
@media (max-width: 992px) and (min-width: 769px) {
    .nav-logo .logo-img,
    .site-header .logo-img {
        height: 80px !important;
    }
}

/* Mobile: 60px */
@media (max-width: 768px) {
    .nav-logo .logo-img,
    .site-header .logo-img,
    .mobile-logo img {
        height: 60px !important;
        width: auto !important;
    }
    
    .main-nav.scrolled .logo-img {
        height: 55px !important;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-img,
    .site-header .logo-img,
    .mobile-logo img {
        height: 60px !important;
    }
}

/* ==========================================================================
   Fix WooCommerce Breadcrumb màu sắc
   ========================================================================== */

.woocommerce-breadcrumb {
    color: #666;
    font-size: 14px;
    padding: 15px 0;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: var(--atrahi-gold);
}
