/*
Theme Name: Ask My Docs
Theme URI: https://askmydocs.com
Author: Ask My Docs Team
Author URI: https://askmydocs.com
Description: Custom theme for Ask My Docs documentation site with dark theme matching the main application branding.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ask-my-docs
*/

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #1a1a1a;
  color: #e5e5e5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background-color: #252525;
  border-bottom: 1px solid #333;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  height: 60px;
  width: auto;
  opacity: 0.9;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e5e5e5;
}

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

.main-navigation a {
  color: #aaa;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-navigation a:hover {
  color: #e5e5e5;
  text-decoration: none;
}

/* Main Content */
.site-main {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

.content-area {
  background-color: #252525;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e5e5e5;
}

.entry-meta {
  color: #888;
  font-size: 0.875rem;
}

.entry-content {
  color: #e5e5e5;
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e5e5e5;
  font-weight: 600;
}

.entry-content h2 {
  font-size: 1.75rem;
}

.entry-content h3 {
  font-size: 1.5rem;
}

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

.entry-content ul,
.entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content code {
  background-color: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid #444;
}

.entry-content pre {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #444;
}

.entry-content pre code {
  background: none;
  padding: 0;
  border: none;
}

.entry-content blockquote {
  border-left: 4px solid #444;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #aaa;
  font-style: italic;
}

.entry-content a {
  color: #4f46e5;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #6366f1;
}

/* Footer */
.site-footer {
  background-color: #252525;
  border-top: 1px solid #333;
  padding: 2rem 0;
  margin-top: 4rem;
  color: #888;
  font-size: 0.875rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #4338ca;
  text-decoration: none;
}

.btn-secondary {
  background-color: #444;
}

.btn-secondary:hover {
  background-color: #555;
}

/* Search */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-form input {
  flex: 1;
  padding: 0.75rem;
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e5e5e5;
  font-size: 0.95rem;
}

.search-form input:focus {
  outline: none;
  border-color: #4f46e5;
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background-color: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container {
    padding: 0 1rem;
  }

  .entry-title {
    font-size: 1.5rem;
  }

  .content-area {
    padding: 1.5rem;
  }
}



/* ---- clean marketing site (hand-authored layout) ---- */
.site-main { padding: 3rem 0; }
.hero { text-align: center; padding: 4rem 0 1rem; }
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.hero .lead { font-size: 1.25rem; color: #aaa; max-width: 640px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.video { position: relative; padding-bottom: 50.625%; height: 0; max-width: 900px;
  margin: 3rem auto 0; border-radius: 12px; overflow: hidden; border: 1px solid #333; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.page-title { font-size: 2.25rem; font-weight: 700; margin-bottom: .5rem; }
.page-intro { color: #aaa; margin-bottom: 2.5rem; max-width: 680px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.tier-card { background: #252525; border: 1px solid #333; border-radius: 12px;
  padding: 2rem; display: flex; flex-direction: column; }
.tier-card.featured { border-color: #4f46e5; box-shadow: 0 0 0 1px #4f46e533; }
.tier-card h3 { font-size: 1.5rem; margin-bottom: .5rem; color: #fff; }
.tier-price { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.tier-price span { font-size: 1rem; color: #888; font-weight: 400; }
.tier-features { list-style: none; margin: 0 0 2rem; padding: 0; flex: 1; }
.tier-features li { color: #aaa; margin-bottom: .85rem; padding-left: 1.5rem; position: relative; }
.tier-features li::before { content: "\2713"; position: absolute; left: 0; color: #4f46e5; }
.tier-card .btn { text-align: center; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.docs-sidebar { background: #252525; border: 1px solid #333; border-radius: 12px;
  padding: 1.25rem; position: sticky; top: 100px; }
.docs-sidebar ul { list-style: none; margin: 0; padding: 0; }
.docs-sidebar li { margin-bottom: .25rem; }
.docs-sidebar a { display: block; padding: .5rem .75rem; border-radius: 6px; color: #aaa; font-size: .95rem; }
.docs-sidebar a:hover { background: #1a1a1a; color: #fff; text-decoration: none; }
.doc-section { scroll-margin-top: 100px; }
.doc-section + .doc-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #333; }
.plugin-card { background: #252525; border: 1px solid #333; border-radius: 12px; padding: 2rem; }
.plugin-card h2 { font-size: 1.75rem; color: #fff; margin-bottom: .75rem; }
.badge { display: inline-block; background: #333; color: #aaa; padding: .25rem .75rem;
  border-radius: 6px; font-size: .8rem; margin-right: .5rem; }
.badge.active { background: #10b981; color: #fff; }
.contact-card { background: #252525; border: 1px solid #333; border-radius: 12px;
  padding: 2.5rem; max-width: 560px; }
.footer-logo-img { height: 40px; width: auto; opacity: .9; }
@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .hero h1 { font-size: 2.25rem; }
}

/* Homepage content sections (added for organic/SEO copy) */
.home-section { margin: 3.5rem 0; }
.home-section > h2 { text-align: center; font-size: 1.75rem; margin-bottom: 1.75rem; color: #fff; }
.home-section .tier-card h3 { margin-top: 0; }
.home-steps { max-width: 640px; margin: 0 auto 1.75rem; padding-left: 1.25rem; line-height: 1.8; color: #ccc; }
.home-steps li { margin-bottom: 0.5rem; }
