/* TimBrik Blog & Content Page Styles */

/* Page Header (shared by category, tag, author, search) */
.page-header {
  padding-top: 9rem;
  padding-bottom: 3rem;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(200, 73, 60, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 3.5rem;
  }
}

.page-header p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 42rem;
  line-height: 1.75;
}

/* Content Layout */
.content-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* Blog List */
.blog-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.pagination .current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .dots {
  border: none;
  background: none;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 6rem;
  }
}

.sidebar-widget {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.sidebar-search {
  display: flex;
  gap: 0.5rem;
}

.sidebar-search input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-search input:focus {
  border-color: var(--primary-color);
}

.sidebar-search button {
  padding: 0.625rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.sidebar-search button:hover {
  background: var(--primary-dark);
}

.sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-post-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.sidebar-post-item img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

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

.sidebar-post-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
  background: #f9fafb;
}

.sidebar-categories a:hover {
  background: rgba(200, 73, 60, 0.05);
  color: var(--primary-color);
}

.sidebar-categories .count {
  font-size: 0.75rem;
  color: #9ca3af;
  background: white;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tags a {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  background: #f3f4f6;
  transition: all 0.2s;
}

.sidebar-tags a:hover {
  background: var(--primary-color);
  color: white;
}

/* Article (single.html) */
.article-header {
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.article-header-inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.article-category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(200, 73, 60, 0.1);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}

.article-category:hover {
  background: rgba(200, 73, 60, 0.2);
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .article-header h1 {
    font-size: 3rem;
  }
}

.article-excerpt {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.article-author-info {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.article-author-name:hover {
  color: var(--primary-color);
}

.article-author-meta {
  font-size: 0.8125rem;
  color: #6b7280;
}

.article-meta-divider {
  width: 1px;
  height: 1.5rem;
  background: #e5e7eb;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.article-meta-item svg {
  width: 1rem;
  height: 1rem;
}

.article-featured-image {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-featured-image-inner {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.article-featured-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Layout (content + sidebar) */
.article-layout {
  padding: 3rem 1.5rem 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

.article-layout-inner {
  display: grid;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .article-layout-inner {
    grid-template-columns: 1fr 320px;
  }
}

.article-main {
  min-width: 0;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  max-width: 44rem;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 0.875rem;
  line-height: 1.3;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.article-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.625rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-color);
  background: #f9fafb;
  border-radius: 0 0.75rem 0.75rem 0;
  font-size: 1.25rem;
  font-style: italic;
  color: #374151;
  line-height: 1.7;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content img {
  width: 100%;
  border-radius: 0.75rem;
}

.article-content code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #C8493C;
}

.article-content pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .article-sidebar {
    position: sticky;
    top: 6rem;
  }
}

/* Article Tables */
.article-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid #dbe3ec;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.article-content table,
.article-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  background: #ffffff;
}

.article-content thead,
.article-table thead {
  background: #f3f6fa;
}

.article-content th,
.article-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #172033;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.article-content td,
.article-table td {
  padding: 0.875rem 1rem;
  color: #334155;
  vertical-align: top;
  border-bottom: 1px solid #e8edf3;
}

.article-content tbody tr:last-child td,
.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-content tbody tr:nth-child(even),
.article-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.article-content tbody tr:hover,
.article-table tbody tr:hover {
  background: #eef5fb;
}

@media (max-width: 640px) {
  .article-table-wrapper {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .article-content th,
  .article-content td,
  .article-table th,
  .article-table td {
    padding: 0.75rem;
  }
}

/* Article Figure */
.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.article-figure figcaption {
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.625rem;
  font-style: italic;
}

/* Article Video Embed */
.article-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1.5rem 0 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Sidebar Featured Tool */
.sidebar-featured-tool {
  padding: 0;
  overflow: hidden;
}

.sidebar-featured-badge {
  display: block;
  padding: 0.375rem 1rem;
  background: white;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-featured-image-link {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  text-decoration: none;
}

.sidebar-featured-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.sidebar-featured-image-link:hover img {
  transform: scale(1.05);
}

.sidebar-featured-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.sidebar-featured-title {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-featured-title:hover {
  color: var(--primary-dark);
}

.sidebar-featured-tool p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Sidebar Newsletter */
.sidebar-newsletter {
  background: #f9fafb;
  border-color: rgba(200, 73, 60, 0.15);
  text-align: center;
}

.newsletter-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(200, 73, 60, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.newsletter-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sidebar-newsletter h3 {
  border: none;
  padding: 0;
  text-align: center;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.sidebar-newsletter p {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

.newsletter-form button {
  padding: 0.625rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.newsletter-success {
  font-size: 0.8125rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.newsletter-note {
  font-size: 0.75rem !important;
  color: #9ca3af !important;
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.article-tags-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}

.article-tags a {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  background: #f3f4f6;
  transition: all 0.2s;
}

.article-tags a:hover {
  background: var(--primary-color);
  color: white;
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.article-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.article-share a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #4b5563;
  transition: all 0.2s;
}

.article-share a:hover {
  background: var(--primary-color);
  color: white;
}

.article-share svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Author Bio Box */
.author-bio {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.author-bio-card {
  background: #f9fafb;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
  .author-bio-card {
    padding: 2.5rem;
  }
}

.author-bio-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.author-bio-info {
  flex: 1;
}

.author-bio-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.author-bio-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.author-bio-name a:hover {
  color: var(--primary-color);
}

.author-bio-role {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.author-bio-desc {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author-bio-social {
  display: flex;
  gap: 0.75rem;
}

.author-bio-social a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #6b7280;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
}

.author-bio-social a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.author-bio-social svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Related Articles */
.related-articles {
  background: #f9fafb;
  padding: 4rem 1.5rem;
}

.related-articles .section-header {
  margin-bottom: 2.5rem;
}

.related-articles .section-header h2 {
  font-size: 2rem;
}

/* Static Page (page.html) */
.static-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.static-page .container {
  position: relative;
  z-index: 1;
}

.static-page-content {
  max-width: 48rem;
  margin: 0 auto;
}

.static-page-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .static-page-content h1 {
    font-size: 3rem;
  }
}

.static-page-content .article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

/* Contact Form */
.contact-form {
  max-width: 40rem;
  margin: 2rem 0;
}

.contact-form-field {
  margin-bottom: 1.5rem;
}

.contact-form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(200, 73, 60, 0.1);
}

.contact-form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-info-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-item {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s;
}

.contact-info-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(200, 73, 60, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}

.contact-info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-info-label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
}

.contact-info-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: var(--primary-color);
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1rem 4rem;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.error-page .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .error-code {
    font-size: 12rem;
  }
}

.error-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .error-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.error-search {
  max-width: 28rem;
  margin: 0 auto;
}

.error-search-form {
  display: flex;
  gap: 0.5rem;
}

.error-search-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.error-search-form input:focus {
  border-color: var(--primary-color);
}

.error-search-form button {
  padding: 0.875rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.error-search-form button:hover {
  background: var(--primary-dark);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.error-links a {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  background: white;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.error-links a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Search Results Header */
.search-form-large {
  max-width: 32rem;
  margin: 1.5rem 0 0;
}

.search-form-large form {
  display: flex;
  gap: 0.5rem;
}

.search-form-large input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-form-large input:focus {
  border-color: var(--primary-color);
}

.search-form-large button {
  padding: 0.875rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.search-form-large button:hover {
  background: var(--primary-dark);
}

/* Author Page */
.author-page-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.author-page-header .container {
  position: relative;
  z-index: 1;
}

.author-page-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.author-page-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 1.5rem;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.author-page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

@media (min-width: 768px) {
  .author-page-avatar {
    width: 7rem;
    height: 7rem;
    font-size: 2.5rem;
  }
}

.author-page-info {
  flex: 1;
  min-width: 200px;
}

.author-page-info h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .author-page-info h1 {
    font-size: 2.5rem;
  }
}

.author-page-role {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.author-page-bio {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: 1rem;
}

.author-page-social {
  display: flex;
  gap: 0.75rem;
}

.author-page-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #6b7280;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
}

.author-page-social a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.author-page-social svg {
  width: 1rem;
  height: 1rem;
}

.author-page-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.author-stat {
  text-align: center;
}

.author-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.author-stat-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}

.no-results svg {
  width: 4rem;
  height: 4rem;
  color: #d1d5db;
  margin: 0 auto 1.5rem;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.no-results p {
  color: #6b7280;
  font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #d1d5db;
}

.breadcrumb .current {
  color: var(--primary-color);
  font-weight: 600;
}
