/* ============================================================
   Guide / Help Pages
   ============================================================ */

/* --- Header --- */
.guide-header {
    padding-bottom: 1.5rem;
}

.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.guide-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    color: var(--primary);
}

.guide-breadcrumb span {
    color: var(--dark);
    font-weight: 500;
}

/* --- Content Area --- */
.guide-content {
    padding-bottom: 3rem;
}

/* --- Guide Grid (Index) --- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s ease;
}

.guide-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(168, 187, 163, 0.15);
    transform: translateY(-2px);
}

.guide-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.guide-card-icon--features { background: rgba(168, 187, 163, 0.12); color: var(--primary); }
.guide-card-icon--gamification { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }
.guide-card-icon--publish { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.guide-card-icon--community { background: rgba(var(--primary-rgb), 0.08); color: var(--primary-dark); }
.guide-card-icon--marketplace { background: rgba(184, 124, 76, 0.1); color: var(--secondary); }
.guide-card-icon--faq { background: rgba(16, 185, 129, 0.08); color: #10b981; }

.guide-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.guide-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 auto;
    line-height: 1.5;
}

.guide-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.75rem;
    transition: color 0.2s;
}

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

/* --- Guide Section --- */
.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.guide-section > p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* --- Feature Sections --- */
.feature-section {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.feature-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-section-header h2 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
}

.feature-section-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- XP Actions Grid --- */
.xp-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.xp-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1rem;
    background: rgba(168, 187, 163, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.xp-action-points {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.xp-action-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- Levels Table --- */
.levels-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.level-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.level-info {
    flex: 0 0 140px;
}

.level-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.level-xp {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.level-bar-wrapper {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* --- Badges Grid --- */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.badge-card {
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.badge-icon {
    margin-bottom: 0.75rem;
}

.badge-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.375rem;
}

.badge-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Publishing Steps --- */
.publishing-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.pub-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.pub-step-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.375rem;
}

.pub-step-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Content Types Grid --- */
.content-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.content-type-card {
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.content-type-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.375rem;
}

.content-type-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Tips --- */
.tips-card {
    padding: 1.5rem;
    background: rgba(168, 187, 163, 0.06);
    border: 1px solid rgba(168, 187, 163, 0.2);
    border-radius: 10px;
}

.tips-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tips-card li {
    font-size: 0.9375rem;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.tips-card li:last-child {
    margin-bottom: 0;
}

/* --- CTA --- */
.guide-cta {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(168, 187, 163, 0.08);
    border-radius: 12px;
}

.guide-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .xp-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .content-types-grid {
        grid-template-columns: 1fr;
    }

    .level-bar-wrapper {
        display: none;
    }

    .level-info {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .xp-actions-grid {
        grid-template-columns: 1fr;
    }
}
