/*
 Theme Name:   GeneratePress Child - Geotab
 Template:     generatepress
 Description:  Geotab Userguide child theme
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* ===== Reset for front page ===== */
.gp-front-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ===== Site Header ===== */
.gp-site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.gp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.gp-site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a237e;
  text-decoration: none;
}

.gp-site-logo:hover { color: #0277bd; }

.gp-logo-icon {
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}



.gp-main-nav .gp-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.gp-main-nav .gp-nav-list li a {
  display: block;
  padding: 8px 16px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.gp-main-nav .gp-nav-list li a:hover {
  background: #f0f4ff;
  color: #1a237e;
}

/* ===== Site Footer ===== */
.gp-site-footer {
  background: #1a237e;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

.gp-site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.gp-site-footer a:hover { color: #fff; }

/* ===== Hero Section ===== */
.gp-hero {
  background: linear-gradient(135deg, #1a237e 0%, #0277bd 50%, #00838f 100%);
  color: #fff;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.gp-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.gp-hero-text {
  flex: 1;
  min-width: 0;
}

.gp-hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.gp-hero-text .gp-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  font-weight: 300;
}

.gp-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.gp-hero-buttons a {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gp-btn-primary { background: #fff; color: #1a237e; }
.gp-btn-primary:hover { background: #e8eaf6; color: #1a237e; transform: translateY(-1px); }

.gp-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.gp-btn-secondary:hover { background: rgba(255,255,255,0.25); color: #fff; transform: translateY(-1px); }

.gp-hero-image {
  flex-shrink: 0;
}

.gp-hero-image img {
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.3));
}

/* ===== Section Common ===== */
.gp-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.gp-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a237e;
}

.gp-section-desc {
  color: #666;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ===== Post Cards ===== */
.gp-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gp-post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.gp-post-card:hover {
  border-color: #0277bd;
  box-shadow: 0 4px 20px rgba(2, 119, 189, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.gp-post-card .gp-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gp-cat-geotab { background: #e3f2fd; color: #1565c0; }
.gp-cat-case { background: #fce4ec; color: #c62828; }
.gp-cat-howto { background: #e8f5e9; color: #2e7d32; }
.gp-cat-mygeotab { background: #f3e5f5; color: #7b1fa2; }
.gp-cat-api { background: #fff3e0; color: #e65100; }
.gp-cat-obd2 { background: #e0f2f1; color: #00695c; }

.gp-post-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #222;
}

.gp-post-card .gp-card-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}


/* ===== Post Card Thumbnails ===== */
.gp-card-thumb {
  margin: -24px -24px 16px -24px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  line-height: 0;
}

.gp-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gp-post-card:hover .gp-card-thumb img {
  transform: scale(1.03);
}

.gp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== Categories Section ===== */
.gp-categories-bg { background: #f5f7fa; }

.gp-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.gp-category-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
}

.gp-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  color: #1a237e;
}

.gp-category-card .gp-cat-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.gp-category-card .gp-cat-name { font-weight: 600; font-size: 0.95rem; display: block; }
.gp-category-card .gp-cat-count { font-size: 0.8rem; color: #999; margin-top: 4px; display: block; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .gp-hero { padding: 40px 20px; }
  .gp-hero-content { flex-direction: column; text-align: center; gap: 32px; }
  .gp-hero-text h1 { font-size: 1.8rem; }
  .gp-hero-buttons { justify-content: center; }
  .gp-hero-image img { max-width: 280px; }
  .gp-posts-grid { grid-template-columns: 1fr; }
  .gp-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-section { padding: 40px 16px; }
  .gp-header-inner { padding: 0 16px; }
  .gp-main-nav .gp-nav-list { gap: 0; flex-wrap: wrap; }
  .gp-main-nav .gp-nav-list li a { padding: 6px 10px; font-size: 0.8rem; }
}
