/*
Theme Name: VLSIChaps
Theme URI: https://vlsichaps.com
Author: VLSIChaps Team
Author URI: https://vlsichaps.com
Description: The official WordPress theme for VLSIChaps.com — The Global Community for VLSI + AI Engineers. Dark tech theme with semiconductor aesthetics.
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: vlsichaps
Tags: dark, technology, community, blog, two-columns, responsive-layout, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =============================================
   CSS VARIABLES — Brand Design System
   ============================================= */
:root {
  --navy:       #050d1a;
  --navy-2:     #071222;
  --navy-3:     #0a1a30;
  --navy-card:  #0d1f38;
  --blue:       #1d6fde;
  --blue-light: #3b8eff;
  --cyan:       #00d4ff;
  --cyan-dim:   rgba(0,212,255,.12);
  --grey:       #8899aa;
  --grey-light: #aabbcc;
  --white:      #e8f0ff;
  --white-dim:  rgba(232,240,255,.07);
  --border:     rgba(29,111,222,.18);
  --glow:       0 0 28px rgba(0,212,255,.18);
  --radius:     10px;
  --radius-lg:  16px;
  --font-head:  'Space Grotesk', 'Inter', sans-serif;
  --font-body:  'Inter', sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

/* =============================================
   GOOGLE FONTS IMPORT
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-content { min-height: 100vh; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,13,26,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.logo-chip {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.logo-text span { color: var(--cyan); }

/* Primary Nav */
#site-navigation { display: flex; align-items: center; }

.main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.main-menu li a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--grey-light);
  transition: all var(--transition);
}

.main-menu li a:hover,
.main-menu li.current-menu-item a {
  color: var(--white);
  background: var(--white-dim);
}

.nav-cta a {
  background: linear-gradient(135deg, var(--blue), var(--blue-light)) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
}

.nav-cta a:hover { box-shadow: 0 4px 20px rgba(29,111,222,.45); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(29,111,222,.22) 0%, transparent 70%),
              var(--navy);
  overflow: hidden;
}

.hero-section::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(29,111,222,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,222,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events:none;
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.25);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--grey-light);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(29,111,222,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(29,111,222,.55);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-dim);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(29,111,222,.15);
  border-color: var(--blue-light);
  color: var(--white);
}

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }

.hero-stat { text-align: left; }

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span { font-size: .8rem; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }

/* =============================================
   SECTION COMMONS
   ============================================= */
.section { padding: 96px 0; }

.section-alt { background: var(--navy-2); }

.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
  display: inline-block;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,.2);
  color: var(--cyan);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 16px; }

.section-subtitle { font-size: 1.05rem; color: var(--grey); max-width: 580px; margin: 0 auto; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(29,111,222,.4);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

.card-text { font-size: .9rem; color: var(--grey-light); line-height: 1.7; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* =============================================
   DOMAINS SECTION
   ============================================= */
.domain-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
}

.domain-card:hover {
  border-color: var(--blue-light);
  background: linear-gradient(135deg, rgba(29,111,222,.12), rgba(0,212,255,.06));
  transform: translateY(-4px);
}

.domain-icon { font-size: 2.2rem; margin-bottom: 14px; }

.domain-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }

.domain-desc { font-size: .85rem; color: var(--grey); margin-bottom: 14px; }

.domain-tag {
  display: inline-block;
  background: rgba(29,111,222,.15);
  border: 1px solid rgba(29,111,222,.3);
  color: var(--blue-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}

/* =============================================
   BLOG / POSTS
   ============================================= */
.post-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.post-card:hover {
  border-color: rgba(29,111,222,.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.post-thumbnail {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-card));
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.post-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--blue);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-body { padding: 24px; }

.post-meta {
  display: flex;
  gap: 16px;
  font-size: .78rem;
  color: var(--grey);
  margin-bottom: 12px;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-title a { color: var(--white); }
.post-title a:hover { color: var(--cyan); }

.post-excerpt { font-size: .88rem; color: var(--grey-light); line-height: 1.65; margin-bottom: 18px; }

.read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover { color: var(--cyan); gap: 10px; }

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  background: linear-gradient(135deg, rgba(29,111,222,.18), rgba(0,212,255,.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  margin: 96px 0;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 32px auto 0;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus { border-color: var(--blue-light); }
.newsletter-form input[type="email"]::placeholder { color: var(--grey); }

.newsletter-form button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29,111,222,.5);
}

/* =============================================
   SIDEBAR
   ============================================= */
.content-area { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

.sidebar { position: sticky; top: 88px; }

.widget {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   SINGLE POST
   ============================================= */
.entry-header { margin-bottom: 48px; }

.entry-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 20px; }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .85rem;
  color: var(--grey);
  flex-wrap: wrap;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-light);
  max-width: 720px;
}

.entry-content h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--white); }
.entry-content h3 { font-size: 1.25rem; margin: 32px 0 12px; color: var(--white); }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 24px; }
.entry-content li { margin-bottom: 8px; }

.entry-content code {
  background: var(--navy-3);
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .88em;
  font-family: 'Fira Code', monospace;
}

.entry-content pre {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  background: rgba(29,111,222,.08);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--grey-light);
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p { font-size: .88rem; color: var(--grey); margin: 16px 0 24px; line-height: 1.7; }

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 38px; height: 38px;
  background: var(--white-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-light);
  font-size: .9rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(29,111,222,.2);
  border-color: var(--blue-light);
  color: var(--white);
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey);
  margin-bottom: 18px;
}

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

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

.footer-col ul li a {
  font-size: .88rem;
  color: var(--grey-light);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--grey);
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  #site-navigation { display: none; width: 100%; }
  #site-navigation.toggled {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-top: 1px solid var(--border);
  }
  .main-menu { flex-direction: column; width: 100%; gap: 4px; }
  .main-menu li a { display: block; padding: 10px 16px; }
  .navbar { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .newsletter-section { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-cyan    { color: var(--cyan); }
.text-blue    { color: var(--blue-light); }
.text-grey    { color: var(--grey); }
.text-center  { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none; }
