/* ============================================================
   TROUBLESHOOTING GUIDE CARD COMPONENT
   Card layout for troubleshooting guides
============================================================ */

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-inline: var(--content-padding-inline);
}

.guide-card {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.guide-card:hover {
    border-color: var(--color-link-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .guide-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.guide-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.guide-card-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.guide-card:hover .guide-card-title {
    color: var(--color-link-hover);
}

.guide-difficulty {
    font-size: var(--font-size-small);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.guide-difficulty.beginner {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
}

.guide-difficulty.intermediate {
    background-color: rgba(234, 179, 8, 0.1);
    color: rgb(234, 179, 8);
}

.guide-difficulty.advanced {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
}

.guide-problem {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.guide-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guide-tag {
    font-size: var(--font-size-small);
    padding: 0.125rem 0.5rem;
    background-color: var(--color-code-bg);
    border-radius: 3px;
    color: var(--color-text-muted);
}
