/*
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: #4a9eff;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #6bb3ff;
}

/* 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: #4a9eff;
  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: #3a8eef;
  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: #4a9eff;
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background-color: #4a9eff;
  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;
  }
}

