/* Tinrocket FAQs - Styles matching WordPress site */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: #0ea5e9;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Header */
.site-header {
  padding: 20px 0;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.site-branding:hover {
  text-decoration: none;
}

.site-logo {
  width: 80px;
  height: 80px;
  margin-left: -1.125em;
  margin-right: 0.5em;
}

.site-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 42px;
}

.site-nav {
  display: flex;
  gap: 1.5em;
  align-self: center;
  margin-top: 0.65em;
}

.site-nav a {
  color: #333;
  font-size: 16px;
}

.site-nav a:hover {
  text-decoration: none;
}

/* Main content */
.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

/* Search (Pagefind) */
.search-container {
  max-width: 500px;
  margin: 0 auto 50px;
}

.pagefind-ui .pagefind-ui__search-input {
  border: 2px solid #0ea5e9;
  border-radius: 4px;
  font-size: 1em;
}

.pagefind-ui .pagefind-ui__search-input:focus {
  border-color: #0284c7;
}

.pagefind-ui .pagefind-ui__result-link {
  color: #0ea5e9;
}

/* App List (Homepage) */
.app-list {
  max-width: 700px;
}

/* App Grid (Homepage - legacy) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  max-width: 700px;
  margin: 0 auto;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.app-card:hover {
  text-decoration: none;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-name {
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
}

.app-subtitle {
  color: #666;
}

/* App Page (FAQ List) */
.app-page {
  max-width: 1000px;
  margin: 0 auto;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 30px;
}

.page-title .subtitle {
  color: #666;
}

/* 2-column FAQ grid like WordPress */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
}

.faq-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.faq-item {
  margin-bottom: 12px;
  line-height: 1.5;
}

.faq-item a {
  color: #0ea5e9;
}

/* Article Page */
.article-page {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.article-sidebar {
  order: -1;
}

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

.article-title {
  font-size: 28px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-content {
  font-size: 16px;
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 16px;
}

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

/* Sidebar */
.article-sidebar {
  padding-top: 0;
}

.sidebar-app-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 30px;
}

.sidebar-app-name a {
  color: #333;
  text-decoration: none;
}

.sidebar-app-name a:hover {
  color: #0ea5e9;
}

.sidebar-section {
  margin-bottom: 15px;
}

.sidebar-section .sidebar-heading {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

.section-articles {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.section-articles li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.section-articles a {
  color: #0ea5e9;
}

.section-articles li.current a {
  color: #0ea5e9;
  font-weight: 700;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .article-page {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    padding-top: 1.875em;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.625em 1em;
  }

  .site-main {
    padding: 2em 1em;
  }

  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.625em;
  }
}
