/* ========================================
Guide Content Page Styles - TechRepair.Co
Single guide article styling
======================================== */

/* Guide Layout */
.guide-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* Guide Header */
.guide-header-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.guide-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.guide-header-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, white, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-meta-header {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #64748b;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.guide-meta-header span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Guide Content Sections */
.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 1.4rem;
  margin: 40px 0 20px;
  color: #00d4ff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #00d4ff, transparent);
  border-radius: 2px;
}

.guide-section h3 {
  font-size: 1.1rem;
  margin: 28px 0 12px;
  color: #94a3b8;
}

.guide-section p {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-section ul,
.guide-section ol {
  margin: 16px 0;
  padding-left: 24px;
  color: #94a3b8;
}

.guide-section li {
  margin: 10px 0;
  line-height: 1.7;
}

.guide-section strong {
  color: #fff;
  font-weight: 600;
}

.guide-section code {
  background: rgba(0, 212, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  color: #00d4ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* Info Boxes */
.info-box {
  background: rgba(0, 212, 255, 0.08);
  border-left: 3px solid #00d4ff;
  border-radius: 0 8px 8px 0;
  padding: 20px;
  margin: 24px 0;
}

.info-box.warning {
  background: rgba(255, 170, 0, 0.08);
  border-left-color: #ffaa00;
}

.info-box.danger {
  background: rgba(255, 107, 107, 0.08);
  border-left-color: #ff6b6b;
}

.info-box h4 {
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box.warning h4 { color: #ffaa00; }
.info-box.danger h4 { color: #ff6b6b; }

.info-box p {
  margin: 0;
  color: #94a3b8;
}

/* Step Cards */
.step-card {
  background: rgba(15, 20, 30, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #00d4ff, #00a8ff);
  color: #050508;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-card h4 {
  color: #fff;
  margin-bottom: 12px;
}

/* Component Images */
.component-image {
  margin: 32px 0;
  text-align: center;
}

.component-image img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.component-image figcaption {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Code Blocks */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  color: #94a3b8;
}

/* Tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.guide-table th {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.guide-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  color: #94a3b8;
}

.guide-table tr:hover td {
  background: rgba(0, 212, 255, 0.05);
}

/* Color Coded Cells */
.guide-table .color-black { background: #000; color: #fff; }
.guide-table .color-brown { background: #8B4513; color: #fff; }
.guide-table .color-red { background: #DC143C; color: #fff; }
.guide-table .color-orange { background: #FF8C00; }
.guide-table .color-yellow { background: #FFD700; }
.guide-table .color-green { background: #228B22; color: #fff; }
.guide-table .color-blue { background: #1E90FF; color: #fff; }
.guide-table .color-violet { background: #9400D3; color: #fff; }
.guide-table .color-grey { background: #808080; color: #fff; }
.guide-table .color-white { background: #fff; color: #000; }
.guide-table .color-gold { background: linear-gradient(135deg, #FFD700, #DAA520); }
.guide-table .color-silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); }

/* Tools List */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.tool-item {
  background: rgba(0, 212, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-item i {
  color: #00d4ff;
  font-size: 1.2rem;
}

/* Accordion (uses shared.js) */
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.accordion-btn:hover {
  background: rgba(0, 212, 255, 0.15);
}

.accordion-btn::after {
  content: '+';
  font-size: 1.2rem;
  color: #00d4ff;
  transition: transform 0.2s;
}

.accordion-btn.active::after {
  content: '−';
}

.accordion-content {
  padding: 20px;
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
  margin-bottom: 16px;
}

/* Breadcrumb */
.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.guide-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.guide-breadcrumb a:hover {
  color: #00d4ff;
}

.guide-breadcrumb .separator {
  color: #64748b;
}

.guide-breadcrumb .current {
  color: #00d4ff;
}

/* Related Guides */
.related-guides {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.related-guides h3 {
  color: #fff;
  margin-bottom: 24px;
}

/* Back to Guides */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #00d4ff;
}

/* Responsive */
@media (max-width: 768px) {
  .guide-article {
    padding: 100px 16px 60px;
  }

  .guide-meta-header {
    gap: 16px;
  }

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

  .guide-table {
    font-size: 0.85rem;
  }

  .guide-table th,
  .guide-table td {
    padding: 10px;
  }
}
