/*
Theme Name: Sửa Điều Hòa Online Theme
Theme URI: http://suadieuhoa.online/
Author: Antigravity AI
Author URI: https://gemini.google.com/
Description: Theme WordPress tối ưu SEO, siêu nhẹ, thiết kế Light Theme với tông màu sáng và xanh da trời tươi mát. Phù hợp cho cổng thông tin, tích hợp sẵn Mục lục (TOC) và Schema.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suadieuhoa-online
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables --- */
:root {
    --bg-light: #f0f9ff; /* Xanh trời siêu nhạt mang cảm giác mát mẻ */
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(14, 165, 233, 0.08);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --text-white: #ffffff;
    
    /* Gradients & Accent Colors */
    --primary-grad: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    --sky-neon: #0284c7;
    --cyan-neon: #06b6d4;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --glow-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
    
    /* Layout */
    --max-width: 1200px;
    --font-sans: 'Be Vietnam Pro', sans-serif;
    --font-heading: 'Be Vietnam Pro', sans-serif;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--sky-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cyan-neon);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

/* --- Typography Utilities --- */
.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Glassmorphism Card Style (Light) --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 132, 199, 0.25);
    box-shadow: 0 10px 40px rgba(2, 132, 199, 0.1);
}

/* --- Header & Nav --- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-grad);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: var(--glow-shadow);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.menu-list a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.menu-list a:hover,
.menu-list .current-menu-item > a {
    color: var(--sky-neon);
}

.btn-cta {
    background: var(--primary-grad);
    color: var(--text-white) !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--glow-shadow);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
}

/* --- Breadcrumbs --- */
.breadcrumbs-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px 0;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.breadcrumbs a {
    color: var(--sky-neon);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: rgba(0, 0, 0, 0.1);
}

.breadcrumbs .current {
    color: var(--text-main);
}

/* --- Layout Main --- */
.site-main {
    max-width: var(--max-width);
    margin: 30px auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    position: relative;
}

.hero-tag {
    background: rgba(2, 132, 199, 0.08);
    color: var(--sky-neon);
    border: 1px solid rgba(2, 132, 199, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- Features/Categories Grid --- */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-grad);
    margin: 10px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}

/* --- Posts / Cards Grid --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.post-card-thumb {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border-color);
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
}

.post-card-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--sky-neon);
    font-weight: 700;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 18px;
    border-bottom: 2px solid rgba(14, 165, 233, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* --- Single Post Detail --- */
.single-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-category-tag {
    color: var(--sky-neon);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.post-main-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-meta-details {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.post-featured-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body-content {
    font-size: 17px;
    line-height: 1.8;
}

.post-body-content p {
    margin-bottom: 20px;
}

.post-body-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid var(--sky-neon);
    padding-left: 12px;
    color: var(--text-dark);
}

.post-body-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.post-body-content ul, .post-body-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body-content li {
    margin-bottom: 8px;
}

.post-body-content blockquote {
    background: rgba(2, 132, 199, 0.03);
    border-left: 4px solid var(--sky-neon);
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

/* --- Table of Contents (TOC) --- */
.post-toc {
    margin: 30px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title::before {
    content: '📊';
    font-size: 16px;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 12px;
    line-height: 1.4;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-item a {
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
}

.toc-item a:hover {
    color: var(--sky-neon);
    padding-left: 4px;
}

.toc-level-2 {
    padding-left: 0;
    font-weight: 600;
}

.toc-level-3 {
    padding-left: 20px;
    font-size: 14px;
    font-weight: 400;
}

.toc-level-3 a {
    color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-grad);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-muted);
}

.footer-column a:hover {
    color: var(--sky-neon);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 73px;
        left: -100%;
        right: 0;
        bottom: 0;
        background: #ffffff; /* Nền trắng đặc hoàn toàn trên mobile */
        flex-direction: column;
        padding: 40px 24px;
        align-items: center;
        gap: 30px;
        transition: left 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 9999;
        width: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: none;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .menu-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        text-align: center;
    }
    
    .menu-list a {
        font-size: 20px;
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        color: var(--text-main);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .single-nav {
        display: none;
    }
}
