/**
 * SEO Pages Styles - Works with existing dark theme
 */

/* Container for SEO page content */
.seo-page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  padding: 15px 0;
}

.breadcrumbs a {
  color: var(--primary-glow);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumbs a:hover {
  opacity: 0.8;
}

.breadcrumbs span {
  color: var(--text-muted);
}

/* Category Hero */
.category-hero {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 20px;
}

.category-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.category-hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #fff;
}

.category-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
}

.content-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.step-num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-glow);
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: rgba(0, 242, 255, 0.05);
  border: 1px solid rgba(0, 242, 255, 0.15);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.tip-check {
  color: var(--primary-glow);
  font-weight: bold;
  flex-shrink: 0;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  transition: background 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(0, 242, 255, 0.05);
}

.faq-item[open] summary {
  background: rgba(0, 242, 255, 0.1);
  border-bottom: 1px solid var(--border-light);
}

.faq-num {
  background: var(--primary-glow);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-answer {
  padding: 16px 20px;
  padding-left: 56px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Related Tags */
.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.related-tag:hover {
  border-color: var(--primary-glow);
  background: rgba(0, 242, 255, 0.1);
  transform: translateY(-2px);
}

.related-tag span {
  font-size: 16px;
}

/* Page Actions */
.page-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

/* News Article Box */
.news-article-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.news-article-box h1 {
  font-size: 28px;
  line-height: 1.3;
  padding: 25px 30px 15px;
  margin: 0;
}

.article-category-tag {
  display: inline-block;
  margin: 25px 30px 0;
  padding: 6px 14px;
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 50px;
  color: var(--primary-glow);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.article-meta {
  display: flex;
  gap: 20px;
  padding: 0 30px 20px;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

.article-image {
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
}

.article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.article-body {
  padding: 30px;
}

.article-summary {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.article-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.article-body a {
  color: var(--primary-glow);
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-source {
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

.article-source a {
  color: var(--primary-glow);
  text-decoration: none;
}

/* Share Box */
.share-box {
  padding: 20px 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.share-box > span {
  color: var(--text-muted);
  font-size: 14px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }
.share-btn.telegram { background: #0088cc; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* Inline Scam Checker */
.scam-checker-inline {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), rgba(147, 51, 234, 0.08));
  border: 1px solid rgba(0, 242, 255, 0.25);
}

.checker-mini .input-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checker-mini .scan-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
}

.checker-mini .scan-input:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.checker-mini .scan-input::placeholder {
  color: var(--text-muted);
}

.checker-mini .scan-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary-glow), #9333ea);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.checker-mini .scan-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 242, 255, 0.3);
}

.checker-mini .scan-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#inline-scan-result {
  margin-top: 15px;
}

.result-loading {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.result-loading .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 242, 255, 0.2);
  border-top-color: var(--primary-glow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scan-result {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid;
}

.scan-result.safe {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.scan-result.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.scan-result.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.scan-result.error {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.3);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.result-icon {
  font-size: 24px;
}

.result-status {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.scan-result.safe .result-status { color: #10b981; }
.scan-result.warning .result-status { color: #f59e0b; }
.scan-result.danger .result-status { color: #ef4444; }

.result-detail {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.result-indicators {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-indicators li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.result-indicators li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--primary-glow);
}

/* Responsive */
@media (max-width: 768px) {
  .seo-page-content {
    padding: 15px 0 40px;
  }

  .category-hero {
    padding: 30px 15px;
    margin-bottom: 25px;
  }

  .category-hero h1 {
    font-size: 24px;
  }

  .content-section {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .content-section h2 {
    font-size: 18px;
  }

  .news-article-box h1 {
    font-size: 22px;
    padding: 20px 20px 10px;
  }

  .article-category-tag {
    margin: 20px 20px 0;
  }

  .article-meta {
    padding: 0 20px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .article-body {
    padding: 20px;
  }

  .share-box {
    padding: 15px 20px;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .checker-mini .input-wrapper {
    flex-direction: column;
  }

  .checker-mini .scan-input {
    min-width: 100%;
  }

  .checker-mini .scan-btn {
    width: 100%;
    padding: 16px;
  }
}
