/* =========================================
   Guides Styles (List & Detail)
   ========================================= */

/* --- Common --- */
.guides-page,
.guide-detail-page {
    min-height: 80vh;
    padding: var(--space-06) 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.page-title svg {
    fill: var(--neon-cyan);
}

.page-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Guides Grid (List) --- */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--neon-cyan-glow);
}

.guide-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.guide-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 */
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    overflow: hidden;
}

.guide-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.guide-card:hover .guide-thumbnail img {
    transform: scale(1.05);
}

.guide-thumbnail.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-thumbnail.placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: var(--neon-cyan);
    opacity: 0.3;
}

.guide-content {
    padding: 1.25rem;
}

.guide-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.guide-meta svg {
    fill: var(--text-muted);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    color: var(--neon-cyan);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: 1px solid var(--border-default);
}

.pagination-btn:hover {
    background: var(--bg-glass-strong);
    border-color: var(--neon-cyan-glow);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Detail Page Specifics --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--neon-cyan-bright);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-secondary);
    opacity: 0.8;
}

.guide-article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-default);
    overflow: hidden;
}

.article-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-default);
}

.article-thumbnail {
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    aspect-ratio: 16/9;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-family: var(--font-display);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.language-badge {
    background: var(--bg-glass);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid var(--border-default);
}

.article-content {
    padding: 2.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    font-family: var(--font-display);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem 0;
    font-family: var(--font-display);
}

.article-content p {
    margin: 0 0 1.25rem 0;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.25rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background: rgba(0, 217, 255, 0.1);
    color: var(--neon-cyan-bright);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: var(--font-mono);
}

.article-content pre {
    background: #0d0d12;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-default);
}

.article-content blockquote {
    border-left: 3px solid var(--neon-cyan);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-default);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.guide-navigation {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-default);
    display: flex;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    fill: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-header {
        padding: 1.5rem;
        margin-top: -1.5rem;
    }

    .article-thumbnail {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }
}

/* --- HowTo Steps Section --- */
.guide-steps-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-default);
}

.guide-steps-section h2 {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    font-family: var(--font-display);
    text-align: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.step-card:hover {
    transform: translateX(4px);
    border-color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.05);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--neon-cyan);
    color: #000;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.step-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-display);
}

.step-content {
    padding-left: 4.25rem;
    /* Indent to align with title start */
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .step-header {
        gap: 1rem;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }

    .step-content {
        padding-left: 0;
        margin-top: 0.75rem;
    }
}