/* Resource Pages — Shared Styles */

.page-hero {
  padding: 8rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(255, 152, 0, 0.06), transparent 50%),
              radial-gradient(circle at bottom left, rgba(255, 152, 0, 0.03), transparent 50%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.page-hero-centered {
  text-align: center;
}

.page-hero-centered p {
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.breadcrumb svg {
  opacity: 0.4;
}

.page-search {
  margin-top: 2rem;
  max-width: 480px;
  position: relative;
}

.page-hero-centered .page-search {
  margin: 2rem auto 0;
}

.page-search input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 171, 0, 0.1);
}

.page-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover, .tag.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
  transform: translateY(-3px);
}

.resource-card-thumb {
  width: 100%;
  height: 200px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.resource-card-thumb-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card-body {
  padding: 1.5rem;
}

.resource-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-hover);
  margin-bottom: 0.75rem;
}

.resource-card-body h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-bottom: 0.625rem;
}

.resource-card-body h3 a {
  color: var(--text-main);
  transition: color 0.2s;
}

.resource-card-body h3 a:hover {
  color: var(--primary);
}

.resource-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.resource-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  z-index: 1;
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline-tags {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.timeline-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-tag-feature { background: rgba(16, 185, 129, 0.1); color: #059669; }
.timeline-tag-fix { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.timeline-tag-improvement { background: rgba(79, 70, 229, 0.1); color: #4F46E5; }
.timeline-tag-new { background: rgba(249, 171, 0, 0.1); color: var(--primary-hover); }

.faq-page-group {
  margin-bottom: 3rem;
}

.faq-page-group h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

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

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.sidebar-link:hover {
  color: var(--primary);
}

.newsletter-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 2rem;
  color: #fff;
}

.newsletter-cta h4 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.newsletter-cta p {
  font-size: 0.8125rem;
  color: #a1a1aa;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-cta input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  margin-bottom: 0.625rem;
}

.newsletter-cta input::placeholder {
  color: #71717a;
}

.newsletter-cta input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-cta button {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-cta button:hover {
  opacity: 0.9;
}

@media (max-width: 968px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .page-hero h1 { font-size: 2.25rem; }
}

@media (max-width: 640px) {
  .resource-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 6rem 0 3rem; }
}
