/*
Theme Name: Yakutool Theme
Theme URI: https://yakutool.com
Author: Yakutool Team
Version: 1.5.0
Description: Theme Kính Mờ 3D Chuẩn Responsive (Đã sửa Header 3D + 2 Card/Hàng PC, 1 Card/Hàng Mobile).
*/

/* ==========================================================
   1. CÁC BIẾN CẤU HÌNH CƠ BẢN
   ========================================================== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.85);        
  --glass-border: rgba(13, 110, 253, 0.25);     
  --card-radius: 16px;                          
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
  --primary-color: #0d6efd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  line-height: 1.5;
  overflow-x: hidden;
}


/* ==========================================================
   2. FIX ĐỊNH DẠNG HEADER KÍNH MỜ 3D (CĂN HÀNG NGANG CHUẨN)
   ========================================================== */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* LOGO */
.site-logo a {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* KHU VỰC TÌM KIẾM, NGÔN NGỮ & MENU */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ô TÌM KIẾM CÔNG CỤ */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  padding: 8px 12px 8px 32px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  width: 180px;
}

.header-search input:focus {
  border-color: var(--primary-color);
  width: 220px;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.header-search::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  font-size: 12px;
}

/* NÚT / CHỌN NGÔN NGỮ */
.lang-select, .header-menu-btn, .header-dropdown select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  outline: none;
}

/* MENU LIÊN KẾT HEADER */
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.header-nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary-color);
}


/* ==========================================================
   3. BỘ KHUNG CHIA HÀNG (GRID LAYOUT)
   ========================================================== */
.main-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px 60px 20px;
}

.tool-section { 
  margin-bottom: 36px; 
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- CHIA HÀNG TRÊN MÁY TÍNH: 2 CARD / HÀNG --- */
.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; 
}


/* ==========================================================
   4. DESIGN KHUNG CARD KÍNH MỜ 3D
   ========================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  padding: 22px; 
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px; 
}

.glass-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.2);
}

.hero-card.accent-blue {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(224, 242, 254, 0.6));
}
.hero-card.accent-purple {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(243, 232, 255, 0.6));
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-header-icon { font-size: 28px; }
.card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
}
.badge-new { background: #0d6efd; }
.badge-hot { background: #6f42c1; }

.hero-card-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.hero-card-desc { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 12px; }


/* ==========================================================
   5. KHU VỰC DÁN HTML TÙY BIẾN CHO MỖI CARD
   ========================================================== */
.card-custom-html {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  padding: 12px; 
  margin: 10px 0 14px 0;
  min-height: 80px; 
}

.glass-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.glass-btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}


/* ==========================================================
   6. NÚT BẤM DƯỚI CARD & ACTION BAR
   ========================================================== */
.hero-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.quick-btn.btn-primary { background-color: var(--primary-color); color: #ffffff; }
.quick-btn.btn-purple { background-color: #6f42c1; color: #ffffff; }
.quick-btn.btn-outline { background-color: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
.quick-btn:hover { transform: translateY(-2px); }

.card-main-content { display: flex; align-items: flex-start; gap: 12px; }
.card-icon { font-size: 24px; flex-shrink: 0; }
.card-info h3 { font-size: 15px; font-weight: 700; color: #0f172a; }
.card-info p { font-size: 12.5px; color: #64748b; margin-top: 2px; }

.card-action-bar {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 10px;
  margin-top: 10px;
}
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}


/* ==========================================================
   7. CẤU HÌNH RESPONSIVE CHO ĐIỆN THOẠI
   ========================================================== */
@media (max-width: 768px) {
  .site-header { padding: 10px 14px; }
  .header-container { flex-direction: column; align-items: stretch; gap: 10px; }
  .header-actions { justify-content: space-between; }
  .header-search input { width: 100%; }
  
  .grid-2-cols {
    grid-template-columns: 1fr !important;
    gap: 14px; 
  }

  .main-container { padding: 0 12px 40px 12px; }
  .glass-card { padding: 16px; }
}/* ==========================================================
   8. FIX ĐỊNH DẠNG FOOTER KÍNH MỜ 3D (CĂN HÀNG NGANG CHUẨN)
   ========================================================== */
.site-footer {
  margin-top: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--glass-border);
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Bên trái */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
  text-decoration: none;
}

.copyright {
  font-size: 12px;
  color: #64748b;
}

/* Links ở giữa */
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-dot {
  color: #cbd5e1;
  font-size: 10px;
}

/* Nút Back to Top bên phải */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

/* RESPONSIVE CHO ĐIỆN THOẠI */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 14px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}/* --- CONTAINER CHỐNG XUỐNG DÒNG --- */
.yk-slogan-wrap {
  display: inline-flex;
  align-items: center;
  white-space: nowrap; /* Bắt buộc KHÔNG BAO GIỜ xuống dòng */
  flex-shrink: 0;       /* Chống bị đè ép co nhỏ khung */
}

/* --- HIỆU ỨNG CHỮ NỔI LIÊN TỤC (NEON GLOW SHIMMER) --- */
.yk-slogan-text {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;

  /* Dải màu Neon phát sáng chạy liên tục */
  background: linear-gradient(
    90deg, 
    #2563eb 0%, 
    #60a5fa 25%, 
    #ffffff 50%, 
    #60a5fa 75%, 
    #2563eb 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  /* Chạy hiệu ứng ánh sáng liên tục không dừng (2 giây/vòng) */
  animation: ykContinuousGlow 2s linear infinite;

  /* Đổ bóng nhẹ tạo độ sâu cho chữ */
  filter: drop-shadow(0px 1px 2px rgba(37, 99, 235, 0.2));
}

/* Vòng lặp chuyển động ánh sáng liên tục */
@keyframes ykContinuousGlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* --- TỐI ƯU TRÊN ĐIỆN THOẠI (TỰ DỰNG CỠ CHỮ PHÙ HỢP) --- */
@media (max-width: 576px) {
  .yk-slogan-text {
    font-size: 10px; /* Thu nhỏ cỡ chữ trên mobile để luôn vừa 1 hàng */
    letter-spacing: 0.2px;
  }
}

@media (max-width: 360px) {
  .yk-slogan-text {
    font-size: 9px; /* Màn hình siêu nhỏ vẫn không lo tràn hay vỡ dòng */
  }
}
/* --- AP DUNG KHUNG TRANG RONG TONG THE --- */
.main-container, 
.glass-card, 
.entry-content, 
article,
section {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Xoa bo khoảng đệm thừa làm hẹp nội dung bên trong */
article .container,
.entry-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}