/* ===================================================
   Custom UI Overrides for Hexo Landscape Theme
   =================================================== */

/* --- Fonts --- */
body, .article-entry, .article-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

code, pre, .article-entry pre, .article-entry code {
  font-family: 'JetBrains Mono', 'Source Code Pro', Consolas, monospace;
}

/* --- Background --- */
body {
  background: #f1f5f9;
}

/* --- Header: replace default landscape banner with gradient --- */
#header {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%) !important;
  border-bottom: none;
  box-shadow: 0 4px 24px rgba(30, 27, 75, 0.45);
}

#banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%) !important;
  background-image: none !important;
}

/* Animated subtle grid overlay on header */
#header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#header::after {
  background: none !important;
}

#header-outer {
  position: relative;
  z-index: 1;
}

/* Logo */
#logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -1.5px;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

#logo::before {
  content: '📊 ';
  font-size: 0.75em;
  letter-spacing: 0;
}

#subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* Nav links */
.main-nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
  border-radius: 6px;
  padding: 8px 14px !important;
  margin: 6px 2px;
}

.main-nav-link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.12);
}

/* --- Article Cards --- */
.article-inner {
  border-radius: 14px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.07) !important;
  border: 1px solid rgba(255,255,255,0.9);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  background: #fff;
}

.article-inner:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 12px 40px rgba(79,70,229,0.1) !important;
  transform: translateY(-3px);
}

/* Article title */
.article-title {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1e1b4b;
}

.article-title a:hover {
  color: #4f46e5 !important;
}

/* Article meta date */
.article-date {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

/* Article entry text */
.article-entry {
  color: #374151;
  font-size: 15px;
  line-height: 1.75;
}

/* Headings inside articles */
.article-entry h1,
.article-entry h2,
.article-entry h3,
.article-entry h4 {
  color: #1e1b4b;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.article-entry h2 {
  border-left: 4px solid #4f46e5;
  padding-left: 12px;
  margin-left: -16px;
}

/* Tables */
.article-entry table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  border: 1px solid #e2e8f0;
  font-size: 14px;
}

.article-entry th {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #1e1b4b;
  font-weight: 600;
  padding: 12px 16px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  text-align: left;
}

.article-entry td {
  padding: 10px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #374151;
}

.article-entry tr:last-child td {
  border-bottom: none !important;
}

.article-entry tr:hover td {
  background: #fafbff;
}

/* Code blocks */
.article-entry pre {
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.article-entry p code,
.article-entry li code {
  background: #f1f5f9;
  color: #4f46e5;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
  border: 1px solid #e2e8f0;
}

/* Blockquote */
.article-entry blockquote {
  border-left: 4px solid #4f46e5;
  background: #f8f7ff;
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  margin: 20px 0;
  text-align: left;
  color: #4338ca;
  font-style: italic;
}

/* Article footer */
.article-footer {
  border-top: 1px solid #f1f5f9 !important;
}

/* Tags */
.article-tag-list-link::before {
  content: '#';
  color: #4f46e5;
}

.article-tag-list-link {
  color: #6366f1 !important;
  background: #eef2ff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
}

.article-tag-list-link:hover {
  background: #4f46e5 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* --- Sidebar --- */
.widget {
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.9);
  background: #fff;
}

.widget-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  padding: 14px 20px 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* --- Footer --- */
#footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
  border-top: none;
}

#footer-info {
  color: #64748b;
  font-size: 13px;
}

#footer-info a {
  color: #818cf8 !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* --- Links --- */
.article-entry a {
  color: #4f46e5 !important;
}

.article-entry a:hover {
  color: #3730a3 !important;
}

/* --- Pagination / nav --- */
.article-nav-link-wrap:hover {
  color: #4f46e5 !important;
}
