/*
Theme Name: needradar lab
Theme URI: https://needradar.io/
Description: needradar lab original theme for marketing blog.
Author: Antigravity
Version: 1.0.0
*/

:root {
  --primary-color: #062850;
  --primary-hover: #083c7a;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --gray-bg: #f8fafc;
  --border-color: #e2e8f0;
  --font-base: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--gray-bg);
  line-height: 1.6;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1000px;
  /* Readability focused */
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Main Content */
.site-main {
  padding: 40px 20px;
}

/* Post Grid (Archive) */
.page-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

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

.post-card {
  background: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-card a {
  color: inherit;
}

.post-thumbnail {
  aspect-ratio: 16/9;
  background: var(--border-color);
  overflow: hidden;
}

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

.no-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.post-content {
  padding: 20px;
}

.post-title {
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single Post */
.single-content-area {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.entry-header {
  margin-bottom: 30px;
  text-align: center;
}

.entry-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.entry-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.entry-meta span {
  margin: 0 10px;
}

.entry-thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.entry-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content h3 {
  font-size: 1.25rem;
  margin-top: 30px;
}

.entry-content p {
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 20px;
  font-size: 1.05rem;
}

/* CTA Shortcode */
.needradar-cta {
  background: linear-gradient(135deg, var(--primary-color), #083c7a);
  color: white;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin-top: 50px;
}

.needradar-cta h3 {
  color: white;
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.needradar-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.needradar-cta .btn-primary {
  background: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 12px 30px;
}

.needradar-cta .btn-primary:hover {
  background: #f0f4f8;
}

.needradar-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px 30px;
  text-decoration: none;
  transition: all 0.3s;
}

.needradar-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Footer */
.site-footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}