/* ===== Smart AI Tools 鈥?Premium Design System v1.1 ===== */
/* ---- Color Palette (Enhanced Contrast) ---- */
:root {
  --contrast: #f0f0ff;
  --contrast-2: #b0b0d0;
  --contrast-3: #8080aa;
  --base: #08081a;
  --base-2: #060612;
  --base-3: #0d0d22;
  --accent: #9b8cf7;
  --accent-bg: #9b8cf7;
  --gp-bg: #060612;
  --gp-surface: #141430;
  --gp-surface-2: #1c1c44;
  --gp-surface-3: #262658;
  --gp-text: #f0f0ff;
  --gp-text-muted: #b0b0d0;
  --gp-accent: #7c6cf0;
  --gp-accent-glow: #a29bfe;
  --gp-accent-2: #00d4d0;
  --gp-accent-3: #fd79a8;
  --gp-border: #2e2e62;
  --gp-gradient-1: linear-gradient(135deg, #7c6cf0, #a29bfe);
  --gp-gradient-2: linear-gradient(135deg, #060612, #141430);
  --gp-card-shadow: 0 8px 32px rgba(124, 108, 240, 0.2);
  --gp-radius: 16px;
  --gp-radius-sm: 10px;
}

/* ---- Override GeneratePress defaults ---- */
body, .site-header, .main-navigation, .main-navigation ul ul,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header,
.sidebar .widget,
.footer-widgets,
.site-info {
  background-color: var(--base-2) !important;
}
body {
  color: var(--gp-text) !important;
}
.site-header {
  background: rgba(6, 6, 18, 0.95) !important;
}

/* ---- Base ---- */
body {
  background: var(--gp-bg);
  color: var(--gp-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gp-accent-glow);
  transition: all 0.3s ease;
}
a:hover {
  color: #c0b8ff;
  text-decoration: none;
}

/* ---- Header ---- */
.site-header {
  background: rgba(6, 6, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-navigation {
  background: transparent !important;
}
.main-navigation .main-nav ul li a {
  color: var(--gp-text-muted) !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0 20px;
  line-height: 70px;
}
.main-navigation .main-nav ul li a:hover {
  color: var(--gp-text) !important;
}

/* ---- Hero Section ---- */
.page-hero {
  background: var(--gp-gradient-2);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124,108,240,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(0,212,208,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 3.2em;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #b8b0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
}
.page-hero p {
  font-size: 1.2em;
  color: var(--gp-text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.hero-cta .btn-primary {
  background: var(--gp-gradient-1);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 108, 240, 0.35);
}
.hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 108, 240, 0.45);
}
.hero-cta .btn-secondary {
  background: transparent;
  color: var(--gp-text);
  border: 1px solid var(--gp-border);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-cta .btn-secondary:hover {
  border-color: var(--gp-accent);
  color: var(--gp-accent-glow);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  position: relative;
}
.hero-stats .stat-item {
  text-align: center;
}
.hero-stats .stat-value {
  font-size: 2em;
  font-weight: 800;
  color: var(--gp-text);
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.85em;
  color: var(--gp-text-muted);
  margin-top: 5px;
}

/* ---- Featured Grid ---- */
.featured-section {
  padding: 80px 0;
}
.featured-section h2 {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.featured-section .section-subtitle {
  text-align: center;
  color: var(--gp-text-muted);
  font-size: 1.1em;
  margin-bottom: 50px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

article {
  background: var(--gp-surface) !important;
  border: 1px solid var(--gp-border) !important;
  border-radius: var(--gp-radius);
  overflow: hidden;
  transition: all 0.4s ease;
}
article:hover {
  transform: translateY(-5px);
  border-color: var(--gp-accent) !important;
  box-shadow: var(--gp-card-shadow);
}

article .post-image {
  height: 200px;
  overflow: hidden;
}
article .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
article:hover .post-image img {
  transform: scale(1.05);
}

article .inside-article {
  padding: 25px !important;
}
article .entry-header {
  margin-bottom: 15px;
}
article .entry-title {
  font-size: 1.2em;
  font-weight: 700;
  margin: 0;
}
article .entry-title a {
  color: var(--gp-text) !important;
}
article .entry-title a:hover {
  color: var(--gp-accent-glow) !important;
}
article .entry-meta {
  font-size: 0.85em;
  color: var(--gp-text-muted) !important;
}
article .entry-summary {
  color: var(--gp-text-muted) !important;
  font-size: 0.95em;
  line-height: 1.6;
}
article .read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--gp-accent-glow) !important;
  font-weight: 600;
  font-size: 0.9em;
}

/* ---- Category Cards ---- */
.categories-section {
  padding: 60px 0;
  background: var(--gp-surface);
}
.categories-section h2 {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--gp-surface-2);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--gp-accent);
  transform: translateY(-3px);
  box-shadow: var(--gp-card-shadow);
}
.cat-card .cat-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}
.cat-card .cat-name {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--gp-text);
  margin-bottom: 5px;
}
.cat-card .cat-count {
  font-size: 0.85em;
  color: var(--gp-text-muted);
}

/* ---- Newsletter ---- */
.newsletter-section {
  background: var(--gp-gradient-2);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--gp-border);
  border-bottom: 1px solid var(--gp-border);
}
.newsletter-section h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
}
.newsletter-section p {
  color: var(--gp-text-muted);
  max-width: 500px;
  margin: 0 auto 30px;
}
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid var(--gp-border);
  background: var(--gp-surface-2);
  color: var(--gp-text);
  font-size: 1em;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gp-accent);
}
.newsletter-form button {
  padding: 14px 28px;
  background: var(--gp-gradient-1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gp-bg);
  border-top: 1px solid var(--gp-border);
  padding: 40px 0;
  text-align: center;
  color: var(--gp-text-muted);
  font-size: 0.9em;
}

/* ---- Sidebar ---- */
.separate-containers .widget {
  background: var(--gp-surface) !important;
  border: 1px solid var(--gp-border) !important;
  border-radius: var(--gp-radius-sm);
  padding: 25px !important;
}
.widget-title {
  font-weight: 700 !important;
  color: var(--gp-text) !important;
  margin-bottom: 20px;
}

/* Override headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--gp-text) !important;
}

/* Override links */
a, .entry-title a, .entry-title a:hover {
  color: var(--gp-accent-glow) !important;
}
a:hover {
  color: #c0b8ff !important;
  text-decoration: none !important;
}

/* Override entry meta */
.entry-meta, .entry-meta a {
  color: var(--gp-text-muted) !important;
}

/* Override site info footer */
.site-info {
  color: var(--gp-text-muted) !important;
}

/* Override buttons */
button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.wp-block-button__link:not(.has-background) {
  background: var(--gp-gradient-1) !important;
  color: #fff !important;
  border: none !important;
}

/* Override input fields */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  background: var(--gp-surface-2) !important;
  color: var(--gp-text) !important;
  border-color: var(--gp-border) !important;
}

/* Override search modal */
:root {
  --gp-search-modal-bg-color: var(--gp-surface) !important;
  --gp-search-modal-text-color: var(--gp-text) !important;
  --gp-search-modal-overlay-bg-color: rgba(0,0,0,0.8) !important;
}

/* ---- Pagination ---- */
.paging-navigation {
  margin-top: 40px;
}
.page-numbers {
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  color: var(--gp-text);
  padding: 10px 16px;
  border-radius: 8px;
}
.page-numbers.current {
  background: var(--gp-gradient-1);
  border-color: transparent;
  color: #fff;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gp-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gp-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gp-accent);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0 50px;
  }
  .page-hero h1 {
    font-size: 2em;
  }
  .hero-stats {
    gap: 25px;
    flex-wrap: wrap;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-form {
    flex-direction: column;
  }
}

/* ========== Single Post / Article Page ========== */
/* Brighten content text for reading comfort */
.single .inside-article,
.page .inside-article {
  background: var(--gp-surface) !important;
  border: 1px solid var(--gp-border) !important;
  border-radius: var(--gp-radius);
  padding: 40px !important;
}
.single .entry-content {
  color: var(--gp-text);
  line-height: 1.8;
  font-size: 1.05em;
}
.single .entry-content p {
  margin-bottom: 1.5em;
}
.single .entry-content h2 {
  font-size: 1.6em;
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: #ffffff !important;
}
.single .entry-content h3 {
  font-size: 1.25em;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  color: #ffffff !important;
}
.single .entry-content strong, 
.single .entry-content b {
  color: #ffffff;
}

/* Tables in articles */
.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: var(--gp-surface-2);
  border-radius: var(--gp-radius-sm);
  overflow: hidden;
}
.single .entry-content th {
  background: var(--gp-surface-3);
  color: var(--gp-text);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--gp-accent);
}
.single .entry-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gp-border);
  color: var(--gp-text);
}
.single .entry-content tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.single .entry-content blockquote {
  border-left: 4px solid var(--gp-accent);
  margin: 1.5em 0;
  padding: 15px 20px;
  background: var(--gp-surface-2);
  border-radius: 0 var(--gp-radius-sm) var(--gp-radius-sm) 0;
  color: var(--gp-text-muted);
  font-style: italic;
}

/* Code blocks */
.single .entry-content pre {
  background: var(--base-3);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  padding: 20px;
  overflow-x: auto;
  color: var(--gp-text);
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.single .entry-content li {
  margin-bottom: 0.5em;
  color: var(--gp-text);
}

/* Horizontal rule */
.single .entry-content hr {
  border: none;
  height: 1px;
  background: var(--gp-border);
  margin: 2em 0;
}

/* ---- Tags / Categories on single posts ---- */
.single .entry-meta {
  padding: 15px 0;
  border-top: 1px solid var(--gp-border);
  margin-top: 30px;
}
.single .entry-meta span {
  color: var(--gp-text-muted);
}
.single .entry-meta a {
  color: var(--gp-accent-glow) !important;
}

/* ---- Archives / Category pages ---- */
.blog .inside-article,
.archive .inside-article,
.search .inside-article {
  background: var(--gp-surface) !important;
}
.blog .entry-summary,
.archive .entry-summary,
.search .entry-summary {
  color: var(--gp-text-muted) !important;
}
