/* Tradesmarter Knowledge Base - Unified Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Header Styles */
.kb-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
}

.kb-header-content {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.kb-logo {
  display: flex;
  align-items: center;
}

.kb-logo img {
  height: 40px;
  width: auto;
}

.kb-header-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.kb-create-ticket-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}

.kb-create-ticket-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kb-create-ticket-btn svg {
  width: 20px;
  height: 20px;
}

.kb-home-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}

.kb-home-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Main Content Area */
.kb-main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Headings */
h1 {
  color: #1a1a1a;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 10px;
  margin-top: 20px;
}

h2 {
  color: #2a2a2a;
  margin-top: 30px;
  border-left: 4px solid #0066cc;
  padding-left: 12px;
}

h3 {
  color: #3a3a3a;
  margin-top: 20px;
}

h4 {
  color: #4a4a4a;
  margin-top: 15px;
}

/* Meta Information */
.meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
}

.count {
  color: #888;
  font-size: 14px;
}

.description {
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

/* Content Container */
.content {
  margin-top: 20px;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
  font-size: 16px;
}

a:hover {
  text-decoration: underline;
}

/* Card styles - no underline */
.card {
  text-decoration: none !important;
  display: block;
}

.card:hover {
  text-decoration: none !important;
}

.card-title {
  text-decoration: none !important;
}

.card-description {
  text-decoration: none !important;
}

.card-meta {
  text-decoration: none !important;
}

/* Lists */
ul, ol {
  margin: 16px 0;
  padding-left: 24px;
}

li {
  margin: 8px 0;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

li:hover {
  background: #f9f9f9;
}

ul {
  list-style: none;
  padding: 0;
}

.content ul {
  list-style: disc;
  padding-left: 24px;
}

.content ul li {
  border-bottom: none;
  padding: 4px 0;
}

.content ul li:hover {
  background: transparent;
}

.content ol {
  list-style: decimal;
  padding-left: 24px;
}

.content ol li {
  border-bottom: none;
  padding: 4px 0;
}

.content ol li:hover {
  background: transparent;
}

/* Images */
.content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tables */
.content table,
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.content table td,
.content table th,
table td,
table th {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.content table th,
table th {
  background: #f5f5f5;
  font-weight: 600;
}

.content table tr:hover,
table tr:hover {
  background: #fafafa;
}

/* Code Blocks */
pre, code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

pre {
  padding: 16px;
  overflow-x: auto;
  border-left: 4px solid #0066cc;
  margin: 20px 0;
}

/* Alert Boxes */
.note {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}

.note strong {
  color: #1976d2;
}

.warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}

.warning strong {
  color: #f57c00;
}

.success {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}

.success strong {
  color: #388e3c;
}

/* Step Boxes */
.step {
  background: #f9f9f9;
  padding: 16px;
  margin: 12px 0;
  border-radius: 6px;
  border-left: 4px solid #0066cc;
}

.step-number {
  display: inline-block;
  background: #0066cc;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  margin-right: 10px;
  font-weight: bold;
}

/* Paragraphs */
p {
  margin: 12px 0;
  font-size: 16px !important;
}

.content p {
  font-size: 16px !important;
}

.content span {
  font-size: inherit !important;
}

.content p span[style*="font-size"] {
  font-size: 16px !important;
}

/* Strong/Bold */
strong {
  font-weight: 600;
}

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

  .kb-header-right {
    width: 100%;
    justify-content: center;
  }

  .kb-main-content {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  .content table td,
  .content table th,
  table td,
  table th {
    padding: 8px;
    font-size: 14px;
  }
}

/* Google Translate Widget Styles */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

#google_translate_element {
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 4px;
  margin: 1rem 0;
}
