/*
Theme Name: Modern Blog Theme
Theme URI: https://deeaytee.xyz
Author: Dat Nguyen
Author URI: https://deeaytee.xyz
Description: A modern, light WordPress theme with particle effects and clean design
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-blog
Tags: blog, modern, clean, responsive, light
*/

/* ===== 1. VARIABLES & RESET ===== */
:root {
  --primary: #007AFF;
  --primary-dark: #005BBF;
  --bg: #F8FAFC;
  --text: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --border: rgba(0, 122, 255, 0.1);
  --spacing: 30px;
}
/* Header Social Icons */
.header-social-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    align-items: center;
}

.header-social-icons .social-icon {
    font-size: 16px;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
}

.header-social-icons .social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

/* Màu riêng cho từng mạng */
.header-social-icons .social-icon.facebook:hover { background: #1877f2; }
.header-social-icons .social-icon.twitter:hover { background: #1da1f2; }
.header-social-icons .social-icon.instagram:hover { background: #e1306c; }
.header-social-icons .social-icon.linkedin:hover { background: #0077b5; }
.header-social-icons .social-icon.github:hover { background: #333; }
.header-social-icons .social-icon.youtube:hover { background: #ff0000; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-social-icons {
        margin: 10px 0;
        justify-content: center;
    }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    linear-gradient(rgba(0, 122, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.site {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== 2. ENHANCED HEADER ===== */
.site-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 122, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.05),
    0 10px 60px rgba(0, 122, 255, 0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 15px 80px rgba(0, 122, 255, 0.12);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 122, 255, 0.03),
    rgba(139, 92, 246, 0.03),
    transparent
  );
  animation: shimmer 8s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.333%); }
}

.site-branding {
  position: relative;
}

.site-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #1E293B 0%, #007AFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}

.site-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #007AFF, #8B5CF6);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-title:hover::after {
  width: 100%;
}

.site-title:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #007AFF 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-navigation {
  position: relative;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.main-navigation a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.main-navigation a:hover::before {
  opacity: 1;
}

.main-navigation a:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(139, 92, 246, 0.1));
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007AFF, #8B5CF6);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-navigation a:hover::after {
  width: 60%;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #007AFF, #8B5CF6, #EC4899);
  transition: width 0.3s ease;
  z-index: 101;
}

/* ===== 3. FEATURED BANNER ===== */
.featured-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 60px 40px;
  margin: 30px 0;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-content h2,
.featured-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
}

.featured-text .welcome-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== 4. TIMELINE LAYOUT ===== */
.primary-content {
  position: relative;
  width: 100%;
  padding: 40px 0;
  display: block;
}

.primary-content::after {
  content: "";
  display: table;
  clear: both;
}

.primary-content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--primary) 20%,
    #8B5CF6 50%, 
    var(--primary) 80%,
    transparent 100%
  );
  z-index: 0;
  box-shadow: 0 0 15px rgba(0, 122, 255, 0.5);
}

.post-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  margin-bottom: 60px !important;
  box-sizing: border-box;
  float: none;
  clear: none;
  box-shadow: 
    0 10px 30px -5px rgba(0, 0, 0, 0.05),
    0 20px 60px -10px rgba(0, 122, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.post-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.1),
    0 25px 80px -10px rgba(0, 122, 255, 0.2);
  border-color: var(--primary);
}

.post-thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.08);
}

.post-content {
  padding: 24px;
  text-align: left;
}

.post-category {
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 122, 255, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-block;
}

.post-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.post-title a:hover {
  background: -webkit-linear-gradient(45deg, #007AFF, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-light);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta i {
  color: var(--primary);
  font-size: 12px;
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
  color: white !important;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
  transition: all 0.3s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
  background: linear-gradient(135deg, #005BBF 0%, #007AFF 100%);
}

.read-more:hover i {
  transform: translateX(4px);
}

.read-more i {
  transition: transform 0.3s ease;
}

/* ZIGZAG LAYOUT */
article.post-card {
  width: 45%;
}

article.post-card:nth-of-type(odd) {
  float: left;
  clear: left;
  margin-right: 5%;
  text-align: right;
}

article.post-card:nth-of-type(odd) .post-content {
  text-align: right;
}

article.post-card:nth-of-type(odd) .read-more {
  flex-direction: row-reverse;
}

article.post-card:nth-of-type(even) {
  float: right;
  clear: right;
  margin-left: 5%;
  margin-top: 80px;
  text-align: left;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 1px #E2E8F0;
}

.post-card::after {
  content: '';
  position: absolute;
  top: 34px;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 5;
}

article.post-card:nth-of-type(odd)::before {
  right: -11.6%;
  left: auto;
}

article.post-card:nth-of-type(odd)::after {
  right: -10px;
  left: auto;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #fff;
}

article.post-card:nth-of-type(even)::before {
  left: -11.6%;
  right: auto;
}

article.post-card:nth-of-type(even)::after {
  left: -10px;
  right: auto;
  border-width: 10px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
}

/* ===== 5. SINGLE POST PAGE ===== */
.single .site-main {
  padding: 40px 0;
}

.single .primary-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.single .primary-content::before {
  display: none;
}

.single .post-card {
  width: 100% !important;
  float: none !important;
  margin: 0 auto 40px !important;
  padding: 0 !important;
  text-align: left !important;
}

.single .post-card::before,
.single .post-card::after {
  display: none !important;
}

.single .post-thumbnail {
  height: 450px;
  border-radius: 16px;
  margin-bottom: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.single .post-content {
  padding: 40px;
  text-align: left !important;
}

.single .post-category {
  background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.single .post-title {
  font-size: 36px;
  font-weight: 900;
  margin: 20px 0;
  letter-spacing: -1px;
}

.single .post-meta {
  padding: 20px 0;
  border-bottom: 2px solid #F1F5F9;
  margin-bottom: 30px;
  font-size: 14px;
}

.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 40px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.post-body h2 {
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}

.post-body h3 {
  font-size: 24px;
}

.post-body h4 {
  font-size: 20px;
}

.post-body ul,
.post-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 30px;
  margin: 30px 0;
  background: #F8FAFC;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-light);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-body a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s;
}

.post-body a:hover {
  color: var(--primary-dark);
}

.post-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 30px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.post-body code {
  background: #F1F5F9;
  color: #e11d48;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.post-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #F1F5F9;
}

.post-tags strong {
  display: block;
  margin-bottom: 15px;
  color: var(--text);
  font-size: 16px;
}

.post-tags a {
  display: inline-block;
  background: #F8FAFC;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px 5px 5px 0;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  transition: all 0.3s;
}

.post-tags a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.author-box {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 16px;
  display: flex;
  gap: 25px;
  align-items: center;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
}

.author-info p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 50px 0;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.post-navigation a {
  display: block;
  padding: 25px;
  background: white;
  border: 2px solid rgba(0, 122, 255, 0.15);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.post-navigation a:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(139, 92, 246, 0.05));
}

.post-navigation span {
  display: block;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-navigation strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #E2E8F0;
}

.comments-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* ===== 6. PAGINATION & FOOTER ===== */
.pagination {
  clear: both;
  text-align: center;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding-top: 40px;
}

.pagination span,
.pagination a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.pagination .current {
  background: var(--primary);
  color: white;
}

.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 60px;
}

/* ===== 7. RESPONSIVE ===== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .site-header .container {
    padding: 0 15px;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }
  
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .main-navigation a {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .site-title {
    font-size: 22px;
  }
  
  .primary-content::before {
    left: 20px;
  }
  
  .post-card,
  article.post-card:nth-of-type(odd),
  article.post-card:nth-of-type(even) {
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 30px 0 !important;
    padding-left: 50px;
    text-align: left !important;
  }
  
  .post-content,
  article.post-card:nth-of-type(odd) .post-content {
    text-align: left !important;
  }
  
  article.post-card:nth-of-type(odd) .read-more {
    flex-direction: row;
  }
  
  .post-card::before,
  article.post-card:nth-of-type(odd)::before,
  article.post-card:nth-of-type(even)::before {
    left: 14px;
    right: auto;
    margin: 0;
  }
  
  .post-card::after {
    display: none;
  }
  
  .featured-banner {
    margin: 20px 15px;
    padding: 30px 20px;
  }
  
  .single .primary-content {
    padding: 0 15px;
  }
  
  .single .post-thumbnail {
    height: 250px;
  }
  
  .single .post-content {
    padding: 25px 20px;
  }
  
  .single .post-title {
    font-size: 26px;
  }
  
  .post-body {
    font-size: 16px;
  }
  
  .post-body h2 {
    font-size: 22px;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .nav-next {
    text-align: left;
  }
}
/* ===== 8. COMMENT FORM STYLES (MỚI) ===== */

/* Tổng thể khung form */
.comment-respond {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    color: var(--text);
}

.comment-reply-title small a {
    float: right;
    font-size: 14px;
    color: var(--primary);
    font-weight: normal;
}

/* Layout các ô input */
.comment-form {
    display: grid;
    gap: 20px;
}

.comment-notes,
.logged-in-as {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    width: 100%;
}

/* Style cho Input và Textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
}

.comment-form textarea {
    height: 150px;
    resize: vertical;
}

/* Hiệu ứng khi click vào ô nhập */
.comment-form input:focus,
.comment-form textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Style cho Label (Ẩn hoặc làm đẹp) */
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

/* Nút Submit (Đồng bộ với nút Read More) */
.form-submit {
    margin-top: 10px;
}

.submit {
    background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
    background: linear-gradient(135deg, #005BBF 0%, #007AFF 100%);
}

.submit i {
    font-size: 14px;
}

/* Responsive cho form */
@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .comment-form-comment,
    .form-submit,
    .comment-notes,
    .logged-in-as {
        grid-column: 1 / -1;
    }
    
    .comment-form-url {
        grid-column: 1 / -1;
    }
}
/* ===== 9. ENHANCED CATEGORY BADGES ===== */

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Khoảng cách giữa icon và chữ */
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    background: rgba(0, 122, 255, 0.1); /* Màu nền mặc định */
    color: var(--primary);              /* Màu chữ mặc định */
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.post-category i {
    font-size: 14px; /* Kích thước icon */
}

.post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

/* --- TÙY CHỈNH MÀU SẮC RIÊNG CHO TỪNG CATEGORY --- */

/* Chuyện Đời Thường: Màu Cam / Vàng */
.post-category.chuyen-doi-thuong {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Mẻ Công Nghệ: Màu Xanh Dương / Tím */
.post-category.me-cong-nghe {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Thêm các category khác tại đây (nếu có):
   - Copy format bên dưới và thay đổi slug + màu sắc
*/

/* 
.post-category.ten-slug-category {
    color: #MÃ-MÀU-CHỮ;
    background: rgba(R, G, B, 0.1);
    border-color: rgba(R, G, B, 0.2);
}
*/
/* ===== RELATED POSTS ===== */
.related-posts-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #E2E8F0;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột trên desktop */
    gap: 25px;
}

.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.15);
}

.related-thumb {
    height: 180px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-thumb img {
    transform: scale(1.1);
}

.related-content {
    padding: 15px;
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.related-content h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.related-content h4 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.related-content h4 a:hover {
    color: var(--primary);
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
}
/* ===== BREADCRUMBS ===== */
.modern-breadcrumbs {
    padding: 15px 0;
    background: transparent; /* Nền trong suốt */
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: -20px; /* Kéo sát lên header một chút */
    position: relative;
    z-index: 5;
}

.modern-breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-breadcrumbs a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.modern-breadcrumbs a:hover {
    color: var(--primary);
}

.modern-breadcrumbs .home-link i {
    margin-right: 4px;
}

.modern-breadcrumbs .separator {
    font-size: 10px;
    opacity: 0.6;
}

.modern-breadcrumbs .current-item {
    color: var(--text); /* Màu đậm hơn cho trang hiện tại */
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px; /* Giới hạn chiều dài tên bài trên breadcrumb */
}

/* Dark mode support cho Breadcrumbs */
body.dark-mode .modern-breadcrumbs .current-item {
    color: var(--text);
}
/* ===== COMMENT LIST STYLING ===== */

/* 1. Reset danh sách (Xóa số 1, 2, 3...) */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: 25px;
}

/* 2. Tạo khung Card cho từng bình luận */
.comment-body {
    background: rgba(255, 255, 255, 0.7); /* Nền trắng mờ */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px; /* Bo góc tròn */
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03); /* Đổ bóng nhẹ */
    transition: all 0.3s ease;
    position: relative;
}

.comment-body:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.1);
    border-color: var(--primary);
}

/* 3. Header: Avatar + Tên + Ngày tháng */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

/* Avatar tròn đẹp */
.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Tên người bình luận */
.comment-author .fn {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.comment-author a {
    text-decoration: none;
    color: inherit;
}

/* Ngày giờ & Edit link */
.comment-metadata {
    margin-left: auto; /* Đẩy ngày tháng sang phải */
    font-size: 13px;
    color: var(--text-light);
}

.comment-metadata a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--primary);
}

/* 4. Nội dung bình luận */
.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 10px;
}

/* 5. Nút Trả lời (Reply) */
.reply {
    text-align: right;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: rgba(0, 122, 255, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.comment-reply-link::before {
    content: "\f3e5"; /* Icon Reply FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* 6. Bình luận con (Cấp 2, 3...) */
.children {
    list-style: none;
    padding-left: 0;
    margin-left: 40px; /* Thụt lề trái */
    margin-top: 20px;
    border-left: 2px solid rgba(0, 122, 255, 0.1); /* Đường kẻ dọc nối cha-con */
}

.children li {
    padding-left: 20px; /* Cách đường kẻ ra một chút */
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .children {
        margin-left: 15px;
    }
    
    .comment-meta {
        flex-wrap: wrap; /* Xuống dòng nếu tên quá dài */
    }
    
    .comment-metadata {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
}