/* helpcenter article css */
/* created by yustinjustin for skylight ui - 2025-09-05 19:32 */

/* global site - scoped to help pages */

.route-help .wrapper.wrapper-profile.white {
    width: 1000px;
}

/* Specific to help pages to avoid breaking other things */
.route-help .content-main, 
.route-help #welcomeTo {
    width: 690px !important;
}

.route-help .header-btn-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.route-help .header-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.route-help .header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.route-help .color-swatch {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.route-help .asset-card {
    background: #f5f8fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.route-help .asset-card strong {
    display: block;
    color: #14171a;
    margin-bottom: 4px;
}

.route-help .asset-card p {
    color: #657786;
    margin-bottom: 8px;
}

.route-help .asset-card code {
    display: block;
    color: #657786;
    font-size: 13px;
    margin-top: 4px;
}

/* UI Elements */
.route-help .help-icon {
    transition: filter 0.2s ease;
}

.route-help.dark-mode .help-icon,
.dark-mode .route-help .help-icon {
    filter: invert(1) brightness(1.5);
}

.route-help .rainbow-badge {
    --verified-rainbow: #ff8b9d;
    animation: rainbow-scroll 4s linear infinite;
    filter: saturate(1.8) brightness(1.1);
}

@keyframes rainbow-scroll {
    0% { filter: saturate(1.8) hue-rotate(0deg); }
    100% { filter: saturate(1.8) hue-rotate(360deg); }
}

.route-help .verified-rainbow-svg circle:first-of-type {
    fill: var(--verified-rainbow);
    transition: fill 0.1s linear;
}

/* Fallback if Hue Rotate is still not enough */
.route-help .rainbow-active {
    animation: rainbow-color-cycle 8s linear infinite;
}

@keyframes rainbow-color-cycle {
    0% { color: #ff0000; fill: #ff0000; }
    17% { color: #ff8800; fill: #ff8800; }
    33% { color: #ffff00; fill: #ffff00; }
    50% { color: #00ff00; fill: #00ff00; }
    67% { color: #0000ff; fill: #0000ff; }
    83% { color: #8800ff; fill: #8800ff; }
    100% { color: #ff0000; fill: #ff0000; }
}

.route-help.dark-mode .asset-card,
.dark-mode .route-help .asset-card {
    background: var(--dm-surface-raised) !important;
    border-color: var(--dm-border) !important;
}

.route-help.dark-mode .asset-card strong,
.dark-mode .route-help .asset-card strong,
.route-help.dark-mode .asset-card h1,
.dark-mode .route-help .asset-card h1,
.route-help.dark-mode .asset-card h2,
.dark-mode .route-help .asset-card h2,
.route-help.dark-mode .asset-card h3,
.dark-mode .route-help .asset-card h3 {
    color: var(--dm-text) !important;
}

.route-help.dark-mode .asset-card p,
.dark-mode .route-help .asset-card p,
.route-help.dark-mode .asset-card code,
.dark-mode .route-help .asset-card code {
    color: var(--dm-text-secondary) !important;
}

.route-help.dark-mode .asset-card .btn.small-btn,
.dark-mode .route-help .asset-card .btn.small-btn {
    border-color: var(--dm-border) !important;
    color: var(--dm-text) !important;
    background: var(--dm-surface-overlay);
}

.route-help.dark-mode .asset-card .btn.small-btn:hover,
.dark-mode .route-help .asset-card .btn.small-btn:hover {
    background: var(--dm-surface-raised);
}

.route-help.dark-mode .color-swatch,
.dark-mode .route-help .color-swatch {
    border-color: rgba(255,255,255,0.1);
}

.route-help .help-search-wrapper {
    margin-bottom: 25px;
    position: relative;
}

.route-help .help-search-input {
    width: 100% !important;
    padding: 12px 20px !important;
    padding-left: 45px !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    font-size: 16px;
    background: #f5f8fa;
    outline: none;
    transition: border-color 0.2s;
}

.route-help .help-search-input:focus {
    border-color: var(--accent-color, #ff8b9d) !important;
}

.route-help.dark-mode .help-search-input,
.dark-mode .route-help .help-search-input {
    background: var(--dm-surface-raised);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

.route-help .help-search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #657786 !important;
    font-size: 18px !important;
    pointer-events: none !important;
    line-height: 1 !important;
    display: block !important;
}

/* typography & layout */
.route-help .help-content h1 { font-size: 28px; margin-bottom: 20px; font-weight: 700; font-family: 'Open Sans', sans-serif; }
.route-help .help-content h2 { font-size: 22px; margin-top: 30px; margin-bottom: 15px; font-weight: 700; font-family: 'Open Sans', sans-serif; }
.route-help .help-content h3 { font-size: 18px; margin-top: 25px; margin-bottom: 10px; font-weight: 700; font-family: 'Open Sans', sans-serif; }
.route-help .help-content p { font-size: 16px; line-height: 1.6; margin-bottom: 15px; font-family: 'Open Sans', sans-serif; }
.route-help .help-content ul { list-style-type: disc !important; margin-left: 20px !important; margin-bottom: 20px; font-size: 16px; line-height: 1.6; }
.route-help .help-content ol { list-style-type: decimal !important; margin-left: 20px !important; margin-bottom: 20px; font-size: 16px; line-height: 1.6; }
.route-help .help-content li { margin-bottom: 8px; font-family: 'Open Sans', sans-serif; display: list-item !important; }
.route-help .help-content a { color: var(--accent-color, #ff8b9d); text-decoration: none; }
.route-help .help-content a:hover { text-decoration: underline; }
.route-help .help-content pre { padding: 15px; border-radius: 8px; overflow-x: auto; margin-bottom: 20px; }
.route-help .help-content code { padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 14px; }
.route-help .help-content blockquote { border-left-width: 4px; border-left-style: solid; padding-left: 15px; margin-bottom: 20px; font-style: italic; }

/* markdown content styling */

.route-help .help-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.route-help .help-content th,
.route-help .help-content td {
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
}

.route-help .help-content th {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.route-help .help-content tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* make table scrollable on mobile */
.route-help .help-content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border-radius: 8px;
}

/* subtle hover highlight */
.route-help .help-content tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

/* table image styling */
.route-help .help-content table img {
    height: 60px;
    width: auto;
    margin: 0;
    padding: 0;
}

/* Dark Mode Overrides */
.route-help.dark-mode .help-content table,
.dark-mode .route-help .help-content table {
    border-color: rgba(255, 255, 255, 0.1);
}

.route-help.dark-mode .help-content th,
.dark-mode .route-help .help-content th,
.route-help.dark-mode .help-content td,
.dark-mode .route-help .help-content td {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--dm-text);
}

.route-help.dark-mode .help-content th,
.dark-mode .route-help .help-content th {
    background-color: rgba(255, 255, 255, 0.1);
}

.route-help.dark-mode .help-content tr:nth-child(even),
.dark-mode .route-help .help-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.route-help.dark-mode .help-content tbody tr:hover,
.dark-mode .route-help .help-content tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.route-help.dark-mode .help-content h1,
.dark-mode .route-help .help-content h1,
.route-help.dark-mode .help-content h2,
.dark-mode .route-help .help-content h2,
.route-help.dark-mode .help-content h3,
.dark-mode .route-help .help-content h3,
.route-help.dark-mode .help-content p,
.dark-mode .route-help .help-content p,
.route-help.dark-mode .help-content ul,
.dark-mode .route-help .help-content ul,
.route-help.dark-mode .help-content ol,
.dark-mode .route-help .help-content ol,
.route-help.dark-mode .help-content li,
.dark-mode .route-help .help-content li,
.route-help.dark-mode .help-center-title,
.dark-mode .route-help .help-center-title,
.route-help.dark-mode .help-article-title,
.dark-mode .route-help .help-article-title {
    color: var(--dm-text) !important;
}

.route-help.dark-mode .help-article-desc,
.dark-mode .route-help .help-article-desc {
    color: var(--dm-text-secondary) !important;
}

.route-help.dark-mode .help-center-title,
.dark-mode .route-help .help-center-title {
    border-bottom-color: var(--dm-border) !important;
}

.route-help.dark-mode .help-article-card,
.dark-mode .route-help .help-article-card {
    background-color: var(--dm-surface-raised) !important;
    border-color: var(--dm-border) !important;
}

.route-help .module {
    background: #fff !important;
    border: 1px solid #e1e8ed !important;
}

.route-help.dark-mode .module,
.dark-mode .route-help .module {
    background: #1e1e1e !important;
    border-color: var(--dm-border) !important;
}

.route-help.dark-mode .help-article-card:hover,
.dark-mode .route-help .help-article-card:hover {
    background-color: var(--dm-surface-overlay) !important;
    border-color: var(--dm-accent) !important;
}

/* Base card style */
.route-help .help-article-card {
    background-color: #f5f8fa;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.route-help .help-article-card:hover {
    background-color: #e1e8ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.route-help .help-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.route-help.dark-mode .help-content blockquote,
.dark-mode .route-help .help-content blockquote {
    border-left-color: var(--dm-border);
    color: var(--dm-text-secondary);
}

.route-help.dark-mode .help-content code,
.dark-mode .route-help .help-content code,
.route-help.dark-mode .help-content pre,
.dark-mode .route-help .help-content pre {
    background: var(--dm-surface-raised);
    color: var(--dm-text);
}

.route-help .about-feature-title {
    color: #14171a;
}

.route-help .about-feature-desc {
    color: #657786;
}

.route-help.dark-mode .about-feature-title,
.dark-mode .route-help .about-feature-title {
    color: var(--dm-text) !important;
}

.route-help.dark-mode .about-feature-desc,
.dark-mode .route-help .about-feature-desc {
    color: var(--dm-text-secondary) !important;
}

.route-help .about-feature-card {
    background: #fcf1f2 !important;
    border: 1px solid #ff8b9d33 !important;
}

.route-help.dark-mode .about-feature-card,
.dark-mode .route-help .about-feature-card {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
}