/* ========================================================
   PC KITA — Theme & Styling
   pc.techkita.my — Portal PC, Laptop, Hardware & Software
   ======================================================== */

:root {
  --bg: #07090e;
  --bg-card: #0d111a;
  --bg-card-hover: #131926;
  --border: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(6, 182, 212, 0.25);
  --border-cyan-glow: rgba(6, 182, 212, 0.5);
  --accent: #06b6d4;
  --accent-glow: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  --max-w: 1240px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
}

/* Ambient glow orb */
.ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 500px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  filter: blur(80px);
}
.ambient-glow-2 {
  position: absolute;
  top: -100px;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  filter: blur(90px);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo-img {
  height: 38px;
  width: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.search-trigger:hover {
  border-color: var(--border-cyan);
  color: var(--text);
  background: rgba(6, 182, 212, 0.05);
}
.search-key {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Category Filter Tabs Bar */
.category-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 26, 0.4);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar {
  display: none;
}
.cat-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  white-space: nowrap;
}
.cat-pill {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}
.cat-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.cat-pill.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--border-cyan);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: clamp(36px, 6vw, 64px) 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.hero-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-cyan-glow);
  box-shadow: 0 16px 36px -12px rgba(6, 182, 212, 0.15);
}
.hero-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #000;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-card:hover .hero-img {
  transform: scale(1.03);
}
.hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cyan);
  color: var(--accent);
}
.hero-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}
.hero-excerpt {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

/* Secondary Hero Stack */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 12px;
  transition: all 0.25s ease;
}
.side-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}
.side-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  aspect-ratio: 4 / 3;
}
.side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.side-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.side-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-meta {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Section Header */
.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-indicator {
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}
.sec-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.sec-action {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sec-action:hover {
  text-decoration: underline;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.article-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #090c13;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-img {
  transform: scale(1.05);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(7, 9, 14, 0.9);
  color: var(--accent);
  letter-spacing: 0.05em;
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* PC Hardware & Deals Banner */
.hardware-deals-band {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.deals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.deals-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.deal-box {
  background: rgba(13, 17, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.deal-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: rgba(19, 25, 38, 0.9);
}
.deal-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 6px;
}
.deal-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.deal-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #34d399;
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.deal-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

/* Site Footer */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.search-modal.active {
  display: flex;
}
.search-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: var(--font-main);
}
.search-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}
.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
}
.search-hit {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: background 0.2s;
}
.search-hit:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .header-nav, .search-key {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
