/*
Theme Name: KakoBuy Aesthetic Light SEO Theme (No Image Dependency Fix)
Theme URI: https://cnfansfindspreadsheet.com/
Author: SEO Expert
Description: Ultra-reliable light theme with embedded SVG visuals and CSS gradients, guaranteeing 100% image loading success across all browsers.
Version: 3.2.0
License: GNU General Public License v2 or later
Text Domain: kakobuy-aesthetic-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 50%, #f1f5f9 100%);
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --button-buy-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --card-hover-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.12), 0 8px 10px -6px rgba(59, 130, 246, 0.05);
  --border-light: rgba(226, 232, 240, 0.8);
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

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

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo a {
  font-size: 24px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-menu { display: flex; list-style: none; gap: 12px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  color: var(--text-main);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-item > a:hover {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  min-width: 240px;
  border-radius: var(--radius-xl);
  padding: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.dropdown-menu li a:hover {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 500;
}

.cta-buttons { 
  display: flex; 
  justify-content: center; 
  align-items: center;
  gap: 20px; 
  flex-wrap: wrap; 
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-buy {
  background: var(--button-buy-gradient);
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* Foreword / Introduction Section (Reliable Vector Illustration) */
.foreword-section {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 30px 0 50px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.foreword-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.foreword-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.foreword-highlights {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Vector Illustration Box replacing broken external image */
.foreword-visual {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.foreword-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.foreword-visual svg {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.foreword-visual span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.foreword-visual p {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

/* Category Grid Vector Cards */
.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.8px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.cat-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.cat-card-banner {
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cat-card-banner svg {
  width: 44px;
  height: 44px;
  transition: var(--transition-smooth);
}

.cat-card-content {
  padding: 14px 10px;
  text-align: center;
}

.cat-card-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--card-hover-shadow);
}

.cat-card:hover .cat-card-banner svg {
  transform: scale(1.15);
}

.cat-card:hover .cat-card-content h3 {
  color: var(--accent-primary);
}

/* Category Specific Custom Colors */
.bg-shoes { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; }
.bg-hoodies { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); color: #dc2626; }
.bg-tshirts { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #16a34a; }
.bg-jackets { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); color: #ea580c; }
.bg-pants { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); color: #9333ea; }
.bg-headwear { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); color: #0d9488; }
.bg-belt { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); color: #e11d48; }
.bg-jersey { background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%); color: #ca8a04; }
.bg-accessories { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); color: #475569; }
.bg-other { background: linear-gradient(135deg, #ecfeff 0%, #cffaff 100%); color: #0891b2; }

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
  align-items: stretch;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.article-card-body {
  flex: 1 1 auto;
  margin-bottom: 16px;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.article-card h3 a:hover { color: var(--accent-primary); }

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.read-more {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(59, 130, 246, 0.3);
}

.article-card:hover .read-more { transform: translateX(4px); }

/* Content Area Fix for Single Page */
.content-area {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin: 30px 0 50px;
}

.entry-title {
  font-size: 30px;
  margin-bottom: 20px;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
}

.entry-content {
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.internal-link-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-left: 4px solid var(--accent-primary);
  padding: 18px 20px;
  margin: 30px 0 10px;
  border-radius: 8px var(--radius-xl) var(--radius-xl) 8px;
}

.link-primary { color: #2563eb; font-weight: 700; }
.link-accent { color: #f97316; font-weight: 700; }

footer.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .foreword-section { grid-template-columns: 1fr; padding: 24px; }
  .foreword-visual { height: 200px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .article-grid { grid-template-columns: 1fr; }
  .content-area { padding: 20px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}